Abstract
In modern industrial manufacturing, the "cold start" problem—where a production line must quickly adapt to new products with minimal training data—remains a significant hurdle for automated inspection. Traditional anomaly detection (AD) models require extensive datasets of "normal" samples, which are often unavailable during rapid product changeovers. This paper presents GraphCore, a novel few-shot anomaly detection (FSAD) framework that leverages Graph Neural Networks (GNNs) to extract rotation-invariant features. By shifting from standard convolutional grids to Vision Isometric Invariant Features (VIIF), GraphCore achieves state-of-the-art accuracy with as few as one to eight samples. Our results demonstrate a significant reduction in memory footprint and a dramatic increase in detection performance, particularly in challenging environments where parts are captured at varying orientations.
1. Introduction
Industrial anomaly detection is moving toward high-mix, low-volume production, necessitating models that can learn from very few examples. Existing few-shot approaches often rely on complex meta-learning or massive memory-bank methods like PatchCore. However, these methods frequently suffer from "feature redundancy." Because standard convolutional neural networks (CNNs) are not inherently rotation-invariant, they must store multiple variations of the same structural feature to account for different orientations. This leads to bloated memory requirements and slower inference speeds, which are impractical for high-speed production lines.
GraphCore addresses these limitations by introducing a graph-based representation of visual features that treats industrial parts as rigid, isometric structures. By ensuring that a feature remains the same regardless of its rotation or translation, GraphCore maximizes the utility of every single training image.
2. Methodology
2.1 Vision Isometric Invariant Features (VIIF)
The core innovation of GraphCore is the transition from grid-based convolutional features to Vision Isometric Invariant Features (VIIF). Instead of treating an image as a static pixel grid, GraphCore represents image patches as nodes within a graph. Edges are established between a patch and its $K$ nearest neighbors based on spatial and feature similarity.
2.2 GNN Feature Extraction
To process this graph, the framework employs a Graph Convolutional Network (GCN) utilizing a "max-relative" graph convolution operator. This operator allows the model to aggregate local structural information in a way that is naturally invariant to rotations and translations (isomorphism). This ensures that the "essence" of a part—its geometry and texture—is captured independently of its pose in the frame.
2.3 Efficient Memory Bank
Following the extraction of VIIFs, GraphCore stores these features in a memory bank ($M$). Unlike previous methods that store redundant features for every possible orientation, GraphCore’s rotation invariance allows for a much leaner memory bank. This sparsity leads to faster nearest-neighbor searches during the inference phase, facilitating real-time inspection.
2.4 Augmentation Baseline
In addition to the GNN architecture, the authors propose Aug.(R), a simplified version of the PatchCore baseline enhanced with rotation-based data augmentation. This serves to demonstrate that while basic rotation awareness helps, the structural invariance provided by GNNs is superior for few-shot generalization.
3. Experimental Evaluation
3.1 Datasets
GraphCore was evaluated against three primary industrial benchmarks:
- MVTec AD: The industry standard for defect detection, covering 15 categories of objects and textures.
- MPDD (Metal Parts Defect Dataset): A challenging dataset featuring metal parts at various angles and distances against non-uniform backgrounds.
- MVTec LOCO AD: A dataset designed to test "logical" anomalies, such as incorrect counts or arrangements, rather than simple structural defects.
3.2 Performance Results
GraphCore significantly outperformed existing state-of-the-art (SOTA) models, particularly in the most constrained 1-shot and 2-shot scenarios:
- MVTec AD Accuracy: GraphCore achieved a 5.8% average increase in Area Under the Curve (AUC) for 1-shot cases compared to previous benchmarks.
- MPDD Performance: On the more complex MPDD dataset, where rotation is a frequent factor, GraphCore saw a dramatic 25.5% increase in average AUC for 1-shot detection.
- Efficiency: The model maintained high inference speeds (approx. 0.029s per image) while utilizing a smaller memory bank (1.2M vs 1.6M for PatchCore in 1-shot settings).
4. Discussion and Conclusion
The success of GraphCore highlights that rotation invariance is a critical component for industrial vision. By treating industrial parts as rigid bodies and utilizing GNNs to capture their structural relationships, GraphCore learns the underlying distribution of "normal" samples much faster than traditional CNN-based methods.
While the current framework excels at structural and textural anomalies, future work will focus on extending these invariant features to handle "logical" anomalies where the defect lies in the arrangement of multiple components. Additionally, the authors aim to explore zero-human-intervention adaptation to further push the limits of unsupervised industrial inspection.
Summary updated