Summary
This paper proposes a new few-shot anomaly detection method based on one-to-normal personalization of query images using a diffusion model and a triplet contrastive inference process. It leverages a diffusion-based generation model to transform a query image into a personalized image towards the distribution of normal images, for use in the triplet contrastive inference. Experimental results on datasets from industrial, medical, and semantic domains demonstrate that the proposed method outperforms existing models.
Strengths
- Unlike common augmentation-based methods that generate pseudo-anomalies for AD, this approach transforms a query image towards the normal distribution, which is interesting and effective. The proposed triplet contrastive inference is compelling.
- Experiments conducted across various domains show its state-of-the-art performance in few-shot scenarios.
Weaknesses
- Details about the experimental settings are not fully provided, which limits reproducibility. For instance, there is no information on the selection of hyperparameters such as alpha and beta for A_score in the implementation details. It raises concerns about the model's performance. If alpha and beta were optimized based on test data, the claim of state-of-the-art performance is questionable. Details about the memory bank M such as its size and sensitivity of the performance to its hyperparameters are also missing.
- The paper lacks theoretical analysis, relying solely on empirical evidence.
- Figure 1 does not provide sufficient information about the overall process. Particularly, it omits the training process of the diffusion model and the composition of the anomaly-free pool, which can cause confusion before reading the detailed explanations in the main text.
- The definition of S_text in Sec 3.4 is unclear. It does not seem logical to apply the softmax function directly to the paired feature of F_q,l and F^T_text.
- The lack of equation numbers in the Method section makes it difficult to follow.
- There is no discussion of Table 3 in the paper.
Questions
- Can you provide visualizations or information about the distribution of the individual anomaly scores (S_n, S_p, S_text)? It would be helpful to understand whether these scores focus on different parts or the same regions.
- The sensitivity of the model to text prompts should be further explored. Specifically, I would like to know the number of selected text prompts when generating personalized image and the rationale or justification for setting physical-level text prompts in the chosen template.
- In Table 4, using all the scores does not always correspond to the highest performance. A discussion on the possible reasons for this would be valuable.
- Could you provide results from InCTRL in Figure 4, and also add lines or bars to compare each performance against the performance of the proposed model?
- Why is the performance on MVTec-AD different in Table 5 (96.8) and Table 4 (96.2)?
Minor issues:
- In Table 4, the top value for AFID is 85.2, not 84.7 as bold-faced.
- Tables 4 and 5 lack information on the few-shot setting.
- Typo: "semantice" should be "semantic" in the caption of Table 3.
Limitations
- As mentioned in the paper, the method is not applicable in zero-shot scenarios.
- The theoretical exploration is lacking; there is only empirical evidence.
- The computational cost is likely to be high, which may not be suitable for real-world scenarios
- The approach depends on the performance of the generative model. And it is limited if the generated images are abnormal (potentially vulnerable to attacks).