GATE-AD: Graph Attention Network Encoding for Few-Shot Industrial Visual Anomaly Detection
Aggelos Psiris, Yannis Panagakis, Maria Vakalopoulou, Georgios Th. Papadopoulos
NeurIPS page · Open on the map
Category: Graphs, OOD Detection & Medical Imaging › Industrial Anomaly Detection · Type: new method · Keywords: few-shot visual anomaly detection, graph attention network, masked graph reconstruction, self-supervised ViT patch tokens, industrial inspection
Areas: Model Architectures & Sequence Modeling › Scientific and Medical Architectures › Cross-Modal Fusion; Computer Vision & 3D › Visual Multimodal Perception › Anomaly Detection; Graph Learning › Graph Learning Paradigms › Anomaly Detection
Summary
GATE-AD is a reconstruction-based framework that models few-shot industrial visual anomaly detection as a masked graph reconstruction problem using a Graph Attention Network encoder on frozen self-supervised ViT patch tokens.
Explained to a 5-year-old
In factories, they need to spot broken toys. They only have a few pictures of good toys. The system looks at little pieces of pictures and connects them like a puzzle. It pays attention to nearby pieces to see if something looks weird. If a piece doesn't fit, it says there is a problem.
Explained to a 5-year-old, longer
Factories make lots of things like phones and cars. Sometimes a tiny defect can make a product not work. It is hard to teach a computer to spot these defects because there are very few examples of good products. The researchers gave the computer only a handful of pictures of perfect items. They cut each picture into small patches and treat each patch as a dot. These dots are linked together based on how close they are to each other, forming a network. The computer then looks at each dot and pays special attention to its neighbors, like looking around. It tries to rebuild the original picture from these connections, checking if everything fits. If a patch does not match its neighbors, the system notices something is wrong. The system uses a simple score to measure how badly the pieces do not match. This way, even with only a few good examples, the system can spot unusual patches that indicate defects. The result is a fast checker that works even when the number of good examples is very small.
For a technical reader
GATE-AD tackles few-shot visual anomaly detection by turning patch tokens from a frozen vision transformer into a graph where each node represents a local image region. A Graph Attention Network then computes anisotropic attention over each node’s spatial neighbors, preserving fine-grained contextual relationships. The graph is trained to reconstruct the original token layout using a latent space alignment and a Scaled Cosine Error loss that measures reconstruction inconsistency. This formulation allows the model to detect defects that break the expected consistency between neighboring patches, even when only a few normal examples are available. Evaluation on MVTec AD, VisA, and MPDD shows state-of-the-art AUROC across 1- to 8-shot settings with inference cost that does not grow with the support set size.
Problem
Few-shot industrial visual anomaly detection requires identifying rare defects when only a few normal samples are available, making it challenging to capture contextual consistency among image patches with limited data.
Method
The approach builds a k-nearest-neighbor graph from frozen self-supervised ViT patch tokens, then uses a Graph Attention Network encoder to attend anisotropically to local neighborhoods, aligning encoder outputs with input tokens via a latent space and scoring reconstruction errors with a Scaled Cosine Error objective.
Results
The approach achieves state-of-the-art image-level AUROC on MVTec AD, VisA, and MPDD across most 1- to 8-shot settings while keeping inference cost low and independent of support set size.
Contributions
It formulates few-shot normality modeling as a masked graph reconstruction problem, leverages Graph Attention Networks to capture local spatial context, and introduces a Scaled Cosine Error objective to align reconstruction with input tokens.
Practical relevance
The approach enables reliable defect detection in manufacturing with limited labeled data, supporting automated inspection systems.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction