TL;DR
This paper introduces "Kaputt," a massive new dataset for visual defect detection in retail logistics, addressing the limitations of existing benchmarks that are saturated and don't reflect real-world variability. They demonstrate that current state-of-the-art anomaly detection methods struggle significantly on this dataset, achieving only ~57% AUROC, highlighting the need for more robust approaches.
What Problem Does This Paper Address?
Automated visual defect detection is crucial for quality control in industries, especially in large-scale retail operations. However, existing benchmarks for this task, like MVTec-AD and VisA, are primarily focused on manufacturing scenarios with controlled object poses and limited categories. These benchmarks have reached a point where state-of-the-art methods achieve near-perfect scores (up to 99.9% AUROC).
The reality of retail logistics, however, is far more complex. Items come in vast diversity, with significant variations in appearance and pose. Defects can be subtle, and training data for defective items is inherently rare and costly to collect, leading to highly imbalanced datasets. This necessitates unsupervised or anomaly detection (AD) approaches. Yet, current AD methods, while excelling in controlled environments, falter when faced with the sheer variability of retail items, leading to false positives and missed defects. This paper aims to bridge this gap by introducing a dataset that captures these real-world challenges and evaluating existing methods against them.
Methods
The paper's primary contribution is the Kaputt dataset itself. The dataset was collected using a specialized station with controlled lighting and a top-down camera. They employed a two-stage collection strategy: first, collecting items flagged by human operators, and second, using an iterative mining process with a binary classifier to identify potential defect candidates for further annotation.
The dataset is structured into query and reference sets. Query images are annotated with item identifiers, defect severity (no defect, minor, major), defect types (penetration, deformation, etc.), item material, and segmentation masks. Reference images, typically 1-3 per item, are primarily non-defective but not guaranteed to be perfect, mimicking real-world scenarios.
To evaluate the dataset's challenge, they benchmarked various state-of-the-art methods across four scenarios:
- No training, no references: Testing zero-shot capabilities of large vision-language models (VLMs).
- No training, with references: Few-shot anomaly detection using unlabeled reference images.
- With training, no references: Purely supervised methods trained on the annotated defect data.
- With training, with references: Combining supervised training with reference images.
Datasets
The paper introduces the Kaputt dataset, a novel benchmark for visual defect detection in retail logistics.
- Size: Over 230,000 images, with more than 29,000 defective instances, covering over 48,000 distinct items. This is significantly larger (40x) than existing benchmarks like MVTec-AD.
- Diversity: Features a wide range of product categories, seven distinct defect types, and high-resolution images.
- Challenges: Emphasizes significant pose and appearance variability, and a rarity of defects, making it more representative of real-world retail logistics.
They also reference existing datasets for comparison:
- MVTec-AD [6]: A well-known benchmark for industrial anomaly detection, but with much less data and variability.
- VisA [33]: Another industrial defect detection dataset.
- ARMBench [18]: A dataset targeting a similar domain but with fewer defective samples and defect types.
Key Insights and Ideas
- Real-world variability is a major hurdle: The sheer diversity of items and their poses in retail logistics is a much harder problem than controlled manufacturing settings. Current methods, even powerful VLMs, struggle to generalize.
- Naive use of reference images can hurt: Surprisingly, supervised methods that used both training data and reference images performed worse than those using only training data. This suggests that simply averaging features from potentially imperfect reference images can confuse the model.
- Defect rarity is a core challenge: The paper highlights that supervised methods perform well when given ample defective data, but performance plummets when only a small percentage of defective samples are available for training.
- Subtle defects are easily missed: Even with extensive training, models struggle with subtle anomalies, rare defect types, and items with "damage-like" designs that can be confused with natural variations.
- VLMs show promise but aren't a silver bullet: While VLMs can identify egregious defects, they often fail to capture the nuances of subtle anomalies and can be misled by text on product packaging.
Key Results
- State-of-the-art methods fail: The most striking result is that even the best-performing methods on the Kaputt dataset, including advanced VLMs and anomaly detection techniques, could not surpass 56.96% AUROC. This is a stark contrast to the near-perfect scores on existing benchmarks.
- Supervised learning upper bound: When provided with a large training set of defective instances, supervised methods like ViT-S achieved up to 90.67% APany. However, this performance drops significantly to 57.7% APany when the training data is limited to a 1% defect rate.
- Zero-shot/Few-shot limitations: Methods without access to training data (zero-shot/few-shot) performed only slightly above chance, with Claude-icl achieving the highest at 36.57% APany.
- PatchCore performance: PatchCore, a strong AD method, showed some improvement when fine-tuned on defective data, but still struggled with subtle defects and reference image variability.
Limitations and Future Work
- Dataset limitations: The authors acknowledge that despite best efforts, the dataset may still contain some mislabeled samples due to the inherent subjectivity of defect assessment and the subtlety of some defects.
- Future work directions:
- Developing anomaly detection methods that are more robust to significant item and pose variability.
- Investigating more effective ways for methods to leverage both training data and reference images.
- Creating methods that can not only detect defects but also provide explanations for their reasoning.
- Exploring how to create methods that can generalize across a vast number of item categories.
Summary updated