TL;DR
This paper introduces MINT-AD, a novel unified model for multi-class anomaly detection that leverages class labels to significantly reduce "inter-class interference." By employing Implicit Neural Representations (INR) to generate class-aware queries, MINT-AD achieves state-of-the-art performance on several benchmarks, outperforming existing unified approaches.
What Problem Does This Paper Address?
Anomaly detection (AD) is crucial for applications like industrial quality inspection and medical diagnosis. While single-class AD models are well-established, real-world scenarios often involve multiple product types or categories, necessitating multi-class AD. Existing unified models aim to handle multiple classes with a single network, but they struggle with "inter-class interference"—where the model's learned decision boundaries for one class bleed into another, hindering accurate detection. This interference is particularly problematic in domains with fine-grained distinctions between classes. The paper argues that class labels, readily available in many industrial settings, are an underutilized tool for mitigating this interference.
Methods
The core of MINT-AD is a Transformer-based reconstruction network enhanced with class-aware query generation. Key components include:
- Implicit Neural Representation (INR): Used to map category information and positional encodings into a class-aware query embedding. This INR network has a dual-path structure: a Synthesis Network for mapping positional encodings to features and a Modulation Network for adjusting these features based on category information.
- Class-aware Query Generation: The INR outputs a query that encodes both category and positional information, allowing the Transformer decoder to focus on class-specific reconstruction.
- Classification Loss: A standard cross-entropy loss is used to supervise a classifier that predicts the category of input features, providing fine-grained category prompts.
- Prior Loss: This loss function encourages the model to learn the distribution of normal features for each class, further regularizing the reconstruction process and reducing inter-class overlap.
- Feature Extractor: An EfficientNet-b4 backbone is used, with a feature adaptor to align features to the specific domain.
Datasets
The paper evaluates MINT-AD on several standard datasets:
- MVTec AD: A widely used dataset for unsupervised anomaly detection.
- VisA: A dataset with multiple instances and complex structures.
- BTAD: Another dataset for anomaly detection.
- CIFAR-10: Used for semantic anomaly detection experiments.
The authors also mention combining MVTec, VisA, and BTAD to create a larger merged dataset for evaluating performance with an increased number of categories.
Key Insights and Ideas
- "Inter-class Interference" is the primary challenge: The paper clearly articulates that beyond the "identical shortcut" problem, the main hurdle for unified multi-class AD is the interference between different classes' learned representations.
- Class labels are powerful: The core insight is that readily available class labels can be effectively leveraged to disentangle class-specific features and mitigate inter-class interference.
- INR for class-aware queries: Using INR to generate class-aware queries is a novel approach that allows the model to learn richer, class-specific representations compared to simpler methods like concatenating class tokens.
- Unified training can outperform separate models: The results suggest that a well-designed unified model can achieve performance comparable to or even better than training separate models for each class, especially in complex scenarios.
Key Results
- State-of-the-art performance: MINT-AD consistently outperforms existing unified anomaly detection methods on MVTec AD, VisA, and a combined dataset, often achieving performance comparable to or better than the best separate models.
- Improved localization: On MVTec AD, MINT-AD achieves competitive P-AUPR scores for anomaly localization, surpassing many other methods.
- Robustness to class increase: MINT-AD shows better robustness than UniAD when dealing with a larger number of combined categories.
- Efficiency: While MINT-AD has slightly higher computational requirements than UniAD, its FLOPs and parameters remain relatively low due to the EfficientNet backbone, making it computationally efficient compared to some other methods.
Limitations and Future Work
- No explicit connections between relevant classes: The authors acknowledge that their work does not establish connections between relevant classes in anomaly detection, suggesting this as a direction for future improvements.
- Data and label security: The paper notes that the security of data and labels has not been fully studied, and the model might be vulnerable to backdoor attacks, leading to privacy leaks.
- Improving output resolution: For anomaly localization, the authors believe that improving the output resolution could further enhance performance.
- Exploring segmentation networks: Incorporating additional segmentation networks for localization is mentioned as a future exploration area.
Summary updated