TL;DR
This paper introduces "Multilevel Anomaly Detection" (MAD), a new paradigm that goes beyond simply flagging anomalies to assessing their severity. They've created MAD-Bench, a comprehensive benchmark to evaluate how well anomaly scores reflect real-world severity, and found that while traditional methods struggle, large language models show promise in this nuanced task.
What Problem Does This Paper Address?
Traditional anomaly detection (AD) systems are great at telling you if something is an anomaly, but not how bad it is. In many real-world applications, like medical imaging or industrial inspection, anomalies exist on a spectrum of severity. A minor surface scratch on a product is very different from a critical component failure. Current AD models, often trained in a binary "normal vs. anomaly" setting, produce scores based on deviation from normal data, which doesn't necessarily correlate with the practical impact or risk of the anomaly. This gap means critical issues might be overlooked, or resources misallocated. The authors aim to bridge this by developing a framework that explicitly accounts for anomaly severity.
Methods
The core contribution is the Multilevel Anomaly Detection (MAD) setting. Here, data points are categorized not just as normal or anomalous, but into multiple levels of anomaly severity (e.g., L0 for normal, L1 for minor anomaly, L2 for moderate, etc.). The goal is to train models that output anomaly scores where higher scores consistently correspond to higher severity levels.
To evaluate this, they introduce MAD-Bench, a novel benchmark. This benchmark adapts existing datasets and creates new ones to include severity labels. It's designed to assess models on two fronts: their ability to detect anomalies (binary detection) and their effectiveness in assigning severity-aligned scores.
They also explore two types of baselines:
- Conventional Baselines: Standard AD techniques like reconstruction-based models, one-class classifiers, and memory-bank methods.
- Multimodal Large Language Model (MLLM)-based Baselines: Leveraging the power of LLMs, they use few-shot learning (providing a few examples) to enable these models to interpret images and assign severity scores, often with accompanying explanations. This is a key innovation as LLMs can incorporate domain knowledge.
Datasets
MAD-Bench comprises six datasets across various domains:
- One-Class Novelty Detection: MultiDogs-MAD (newly created, using dog breeds with increasing dissimilarity).
- Industrial Inspection: MVTec-MAD and VisA-MAD (adapted from existing datasets, with severity levels assigned based on economic impact).
- Medical Imaging: DRD-MAD (Diabetic Retinopathy Detection, already has severity labels), Covid19-MAD (COVID-19 severity scoring, already has severity labels), and SkinLesion-MAD (skin lesion analysis, adapted with severity levels).
Key Insights and Ideas
- Severity Matters: The core idea is that simply detecting an anomaly isn't enough; understanding its severity is crucial for real-world decision-making.
- LLMs for Nuance: Large Language Models, when prompted correctly, show a strong capability to understand visual context and assign severity scores, often outperforming traditional methods in this specific task. This highlights the value of incorporating domain knowledge.
- Binary vs. Multilevel: While binary AD performance often correlates with multilevel performance, it's not a perfect predictor. Some models excel at severity alignment even if their binary detection isn't top-tier.
- Area Bias: Traditional AD models tend to be biased towards larger anomalous regions, assigning them higher scores. This can be a limitation when small anomalies have high impact. LLMs seem less prone to this bias.
- Robustness Challenges: Data corruption (like noise or brightness changes) negatively impacts most models, especially those requiring fine-grained feature analysis.
Key Results
- MLLM Superiority: For multilevel anomaly detection, MLLM-based baselines generally outperformed conventional methods, achieving higher C-index and Kendall's Tau-b scores, indicating better severity alignment.
- Medical Data Difficulty: Conventional models struggled significantly on medical datasets (DRD-MAD, Covid19-MAD), with C-scores around 65%, suggesting these require more sophisticated approaches.
- Correlation Found: A strong positive correlation (Spearman's rho ~0.97) was found between binary AD performance (AUC) and multilevel performance (C-index/Kendall's Tau-b), but with notable exceptions for certain models.
- Severity Trend: Most models showed an upward trend in detection performance as anomaly severity increased, meaning they were better at spotting more severe anomalies.
- Normal Class Expansion Impact: Expanding the "normal" class to include light anomalies generally decreased performance for most models, except for one MLLM-based model (MMAD-40) which showed more stability.
Limitations and Future Work
- Data Corruption: All models showed a performance drop under data corruption, particularly on datasets requiring fine-grained analysis. This highlights the need for more robust models.
- MLLM Integration: The authors suggest a promising future direction is a hybrid approach combining conventional AD for detection with MLLMs for severity assessment, leveraging the strengths of both.
- Zero-Shot vs. Few-Shot: Zero-shot MLLM performance (without reference images) was significantly lower than few-shot, emphasizing the importance of providing normal examples for context.
Summary updated