Abstract
MetaUAS is a visual foundation model designed for universal anomaly segmentation. By reframing anomaly detection as a change segmentation task, MetaUAS leverages a single "normal" image as a prompt to identify defects in unseen objects or textures. The model utilizes a novel Soft Feature Alignment Module (FAM) and is trained on large-scale synthetic data. MetaUAS achieves state-of-the-art performance on major benchmarks like MVTec-AD and VisA, outperforming large vision-language models while being significantly more efficient.
Introduction
Visual Anomaly Segmentation (AS) aims to precisely locate defects at the pixel level. Traditional methods often require extensive training on normal samples for each specific object category. Recent attempts to create "universal" models have relied on Vision-Language Models (VLMs) like CLIP, using text prompts to guide detection. However, language is often insufficient for describing the intricate textures and shapes of physical defects. MetaUAS addresses this by operating purely in the visual domain, treating anomalies as deviations from a provided reference image.
Methodology
The core of MetaUAS is the conceptualization of anomaly detection as Change Segmentation. Given a "normal" prompt image ($X^p$) and a "query" test image ($X^q$), the goal is to segment the differences.
Architecture
The architecture consists of three main components:
- Encoder: A frozen EfficientNet-b4 backbone extracts multi-scale features from both the prompt and query images.
- Soft Feature Alignment Module (FAM): To account for differences in pose or orientation between the prompt and query, the FAM employs a cross-similarity mechanism. It "softly" aligns features by computing a weighted combination of prompt features for each query pixel, ensuring spatial correspondence.
- Decoder: A UNet-style decoder processes the aligned features to generate a pixel-level anomaly heatmap.
One-Prompt Meta-Learning
MetaUAS is trained using a meta-learning strategy where it learns to compare arbitrary image pairs to identify changes. This allows the model to generalize to entirely new object categories at inference time using only a single reference image, without any further parameter updates.
Synthetic Training Data
To overcome the scarcity of large-scale anomaly datasets, the authors generated a synthetic dataset of 60,000 pairs using MS-COCO. Changes were simulated through inpainting (removal), random pasting (addition), and object exchange, providing a rich variety of "anomalies" for the model to learn from.
Experiments and Results
MetaUAS was evaluated on three industrial benchmarks: MVTec-AD, VisA, and the large-scale Goods dataset.
Performance and Efficiency
MetaUAS⋆+ achieved a Pixel-level ROC (P-ROC) of 97.6% on MVTec-AD, surpassing both specialized full-shot models like UniAD and zero-shot VLM-based methods like AnomalyCLIP. Notably, MetaUAS maintains a significantly smaller footprint, with 10x fewer parameters and 100x faster inference speeds compared to WinCLIP+.
Qualitative Analysis
The model demonstrates robust generalization across diverse categories, from industrial components to supermarket goods. The Soft Feature Alignment Module effectively handles geometric variations, producing precise localization of defects.
Discussion and Conclusion
By shifting the paradigm to change segmentation, MetaUAS proves that visual-only models can achieve "universal" capabilities in anomaly detection. While the model is sensitive to prompt quality and complex backgrounds, its efficiency and zero-shot performance make it a strong candidate for real-world industrial inspection. Future work may involve integrating class-agnostic classification to better handle open-world scenarios with unknown object categories.
Summary updated