Skip to content
AI.info

Research

Commonality in Few: Few-Shot Multimodal Anomaly Detection via Hypergraph-Enhanced Memory

Overview Research area: Computer vision, specifically few-shot unsupervised multimodal industrial anomaly detection (2D RGB images plus 3D point clouds/depth). Technical level: Advanced. The paper ass

arXiv
2511.05966
Published
2025-11-08
Authors
Yuxuan Lin, Hanjing Yan, Xuan Tong, Yang Chang, Huanzhen Wang, Ziheng Zhou, Shuyong Gao, Yan Wang, Wenqiang Zhang

AI summary

Overview

Research area: Computer vision, specifically few-shot unsupervised multimodal industrial anomaly detection (2D RGB images plus 3D point clouds/depth).

Technical level: Advanced. The paper assumes familiarity with memory-bank anomaly detection, graph neural networks, hypergraph learning, and message passing kernels.

Scope: The paper introduces CIF (Commonality In Few), a memory-bank anomaly detection method that uses hypergraphs to extract intra-class structural commonality from a handful of normal training samples, and evaluates it on MVTec 3D-AD and Eyecandies in 1-shot, 2-shot, and 4-shot settings.

What This Paper Is About

In industrial anomaly detection, normal training samples are abundant but defective samples are scarce and costly, so most methods learn only the distribution of normal data. When only one to four normal samples are available per class (few-shot), the memory bank built from those samples fails to cover the variety of normal patterns appearing at test time, producing a high false positive rate. The authors' goal is to extract the shared structural regularity of same-class industrial objects from very few samples and use it to build, compress, and search the memory bank more effectively.

Key Contributions

  1. CIF, a hypergraph-based few-shot multimodal anomaly detection framework. The authors propose using hypergraphs, which can connect an arbitrary number of nodes per edge, to model higher-order correlations among patch features and capture structural commonality across same-class samples. The method is reported to outperform state-of-the-art methods on MVTec 3D-AD and Eyecandies in few-shot settings.
  2. Semantic-Aware Hypergraph Construction (SAHC). Rather than hard clustering (which cannot assign a node to multiple hyperedges) or fuzzy clustering (which the authors found produces uneven hyperedges on single-semantic industrial images), SAHC generates hyperedge centers with K-Means and assigns nodes to one or more hyperedges by cosine-similarity thresholding, producing more evenly distributed hyperedges.
  3. Structure-Guided Memory Sampling (SGMS) and Bidirectional Training-Free Hypergraph Message Passing (Bi-TF-MP). SGMS uses intra-class structural commonality to build and compress the memory bank, performing greedy coreset sampling within each hyperedge instead of across all nodes. Bi-TF-MP constructs a joint hypergraph of test and memory nodes and applies training-free message passing to narrow the distribution gap between them.
  4. Hyperedge-Guided Memory Search (HGMS). The search between test features and memory bank features is first guided by matching hyperedge features structurally, then refined by patch-level nearest neighbor search, with the goal of reducing the false positive rate.

Main Findings

  • Best I-AUROC among training-free methods on MVTec 3D-AD. CIF reaches mean I-AUROC/AUPRO of 72.0/86.1 in 1-shot, 73.2/87.2 in 2-shot, and 77.6/89.6 in 4-shot. The authors report it outperforms Patchcore+FPFH by 20.2%, 19.2%, and 20.6% in I-AUROC for the 1-shot, 2-shot, and 4-shot settings respectively.
  • Close to the best training-based methods on MVTec 3D-AD. Although CIF does not attain the highest I-AUROC overall, the gap to the best method is reported as only 2.6%, 4.5%, and 3.2% lower in the 1-shot, 2-shot, and 4-shot settings.
  • Best I-AUROC on Eyecandies. Compared against M3DM and CFM (the two best-performing training-based methods on MVTec 3D-AD), CIF achieves mean I-AUROC/AUPRO of 69.5/69.2 in 1-shot, 73.6/71.3 in 2-shot, and 75.1/75.6 in 4-shot, exceeding the second-best method by 8.4%, 7.8%, and 2.0% in I-AUROC respectively.
  • Strongest advantage with the fewest samples. On both datasets, CIF performs better in the 1-shot setting than in the 2-shot and 4-shot settings, which the authors interpret as evidence that the structural information extracted by hypergraphs is effective when training data is scarce.
  • Localization is the weaker side. On both datasets, CIF does not achieve the highest AUPRO score in any setting, which the authors state indicates relatively limited anomaly localization ability. The visual comparison in the paper (multimodal, 1-shot) is described as showing reduced false positive rates.
  • Ablation results (multimodal 1-shot, MVTec 3D-AD). No SGMS/HGMS/Bi-TF-MP: 68.6 I-AUROC and 76.1 AUPRO. Adding SGMS: 71.2 and 85.0 (a gain of 3.8% I-AUROC and 11.7% AUPRO). Adding HGMS on top: 71.7 and 86.0 (0.7% I-AUROC, 1.2% AUPRO). Full model with Bi-TF-MP: 72.0 and 86.1 (0.4% I-AUROC, 0.1% AUPRO).
  • Hyperedge count trade-off. On MVTec 3D-AD in the multimodal 1-shot setting, I-AUROC is highest when the number of hyperedges is 4, while P-AUROC and AUPRO are highest when it is 8. Fewer hyperedges help detection; more hyperedges help localization.
  • Message passing parameters. When the retention coefficient α = 0.9, both I-AUROC and AUPRO are highest. With α = 0.9, performance is best at L = 1 layer of message passing and becomes stable as L increases, which the authors read as evidence that slight message passing is enough to alleviate the distribution gap.
  • Hypergraphs from RGB, not point clouds. The authors observed that hypergraphs built from RGB image features of industrial samples are more balanced and reliable, while those from 3D point cloud features are significantly imbalanced; they therefore use RGB-derived hypergraphs to support later modules in both the 2D and 3D modalities.

Methodology in Plain English

The approach has four stages.

First, features are extracted with two pretrained models: DINO for 2D image features and PointMAE for 3D point cloud features. Each image is treated as a set of patch features (nodes). To keep background noise out, the 3D point cloud is used to build a foreground mask that filters the node set.

Second, SAHC builds the hypergraph. K-Means finds a fixed number of cluster centers among the foreground nodes; these centers become hyperedge centers. Each node is then connected to a hyperedge when the cosine similarity between the node and the center, after min-max normalization, passes a threshold. This allows a single node to belong to several hyperedges, and produces a more even distribution of hyperedges than fuzzy clustering. A separate "hard" incidence matrix records the single best hyperedge for each node.

Third, SGMS builds and compresses the memory bank. The first training sample initializes it. For each new normal sample, hyperedge features are compared by distance to find the closest memory hyperedge, nodes are merged accordingly, hyperedge features are updated, and greedy coreset sampling is applied within each hyperedge individually. If a hyperedge ends up with fewer than one node, a single representative node is chosen to minimize the maximum distance to the other nodes in that hyperedge.

Fourth, at test time, Bi-TF-MP builds a joint hypergraph. For each test node, its top-k most similar memory nodes form a cross-domain hyperedge, and symmetrically for each memory node; these are padded and concatenated with the test and memory hypergraphs into one joint incidence matrix. A training-free message passing kernel — with a retention coefficient α that controls how much a node keeps its own information versus absorbing neighbors, and L layers that set the neighborhood range — updates the test node features so they align better with the memory features. HGMS then compares test hyperedge features with memory hyperedge features, selects the top-k most similar memory hyperedges, gathers their nodes, and runs patch-level nearest neighbor search within that restricted subset. A conventional direct patch-level search is also retained, and the two score sets are multiplied element-wise to produce the final anomaly scores.

Implementation settings reported: number of clusters |ℰ| = 4 for MVTec 3D-AD and 8 for Eyecandies; L = 1; α = 0.9; memory bank sampling rate 0.1; all experiments on a single NVIDIA A100 40GB GPU with PyTorch-1.13.1.

Why This Matters

Impact on research. The paper argues that structural commonality is an underexploited signal in few-shot industrial anomaly detection. Where PatchCore samples and searches patch features directly and GraphCore uses GNNs to aggregate neighborhood information for vision-isometric-invariant features, CIF replaces pairwise graph edges with hyperedges that connect many nodes at once, modeling higher-order correlations. It also adds to a line of work on hypergraph neural networks for vision (HGNN, HGNN+, ViHGNN, DVHGNN) by adapting hypergraph construction to single-semantic industrial data.

Real-world applications (implied by the paper's framing of industrial quality assurance).

  • Automated defect inspection on manufacturing lines, where scratches, dents, and contamination must be detected on real objects.
  • Rapid deployment of inspection systems in new production environments, where labeling many normal samples is impractical but one to four sample objects are easy to collect.
  • Multimodal inspection stations that combine RGB cameras with 3D scanners or depth sensors, since CIF operates on both modalities.
  • Reducing manual quality-control labor, which the paper describes as inefficient and easily affected by human factors.

Industry relevance. The method is training-free in its message passing stage and requires only a handful of normal samples per class, which suits production lines where defects are extremely scarce and costly to obtain and where models must adapt quickly to new product types. The authors note that CIF's advantage is largest in the 1-shot setting, the regime closest to a factory that has almost no labeled data for a new part. Its weaker AUPRO performance means localization, not just flagging, remains a caveat for downstream uses. Code is released at https://github.com/Sunny5250/CIF.

Future Directions

  • Improve anomaly localization. CIF did not achieve the highest AUPRO in any setting on either dataset, and the authors explicitly identify localization as a limitation. Raising the number of hyperedges improved P-AUROC and AUPRO in their parameter study, suggesting this axis is worth pursuing.
  • Handle hypergraph construction imbalance in 3D. The authors observed that hypergraphs built from 3D point cloud features are significantly imbalanced compared with those from RGB features, and worked around this by using RGB-derived hypergraphs for both modalities. A construction method suited to point cloud features is an open problem.
  • Adapt hypergraph construction to industrial data generally. The paper notes that existing hypergraph learning methods are generalizable but require adjustment to fit industrial data, and that using hypergraphs for industrial anomaly detection remains a challenge.
  • Balance the number of hyperedges per objective. Detection and localization prefer different hyperedge counts (4 versus 8 on MVTec 3D-AD), so a construction that satisfies both simultaneously is unresolved.

Target Audience

Researchers and practitioners in industrial anomaly detection and multimodal computer vision who already understand memory-bank methods such as PatchCore and graph-based methods such as GraphCore and want to see how hypergraph learning can be applied to few-shot settings. It is also relevant to engineers building visual inspection systems who need methods that work with one to four normal samples per class. Readers without a background in hypergraphs or message passing will find the method section demanding.

Authors’ abstract

Few-shot multimodal industrial anomaly detection is a critical yet underexplored task, offering the ability to quickly adapt to complex industrial scenarios. In few-shot settings, insufficient training samples often fail to cover the diverse patterns present in test samples. This challenge can be mitigated by extracting structural commonality from a small number of training samples. In this paper, we propose a novel few-shot unsupervised multimodal industrial anomaly detection method based on structural commonality, CIF (Commonality In Few). To extract intra-class structural information, we employ hypergraphs, which are capable of modeling higher-order correlations, to capture the structural commonality within training samples, and use a memory bank to store this intra-class structural prior. Firstly, we design a semantic-aware hypergraph construction module tailored for single-semantic industrial images, from which we extract common structures to guide the construction of the memory bank. Secondly, we use a training-free hypergraph message passing module to update the visual features of test samples, reducing the distribution gap between test features and features in the memory bank. We further propose a hyperedge-guided memory search module, which utilizes structural information to assist the memory search process and reduce the false positive rate. Experimental results on the MVTec 3D-AD dataset and the Eyecandies dataset show that our method outperforms the state-of-the-art (SOTA) methods in few-shot settings. Code is available at https://github.com/Sunny5250/CIF.

Read the original paper