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

Yuxuan Lin, Hanjing Yan, Xuan Tong, Yang Chang, Huanzhen Wang +4 more
11/8/2025
cs.CV

Official code: Sunny5250/CIF (26 stars, MIT, last commit 2025-11-13).

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.

View on arXivView PDF

Code Implementations(1)

Sunny5250/CIFOfficial100%
MIT

[AAAI 2026] Offical implementation of "Commonality in Few: Few-Shot Multimodal Anomaly Detection via Hypergraph-Enhanced Memory".

265Shell, PythonMay 16, 202511 months agoMIT
anomaly-detectionfew-shothypergraphindustrial-imagemultimodal

Similar Papers

Cite this paper

@article{lin2025commonality,
  title  = {Commonality in Few: Few-Shot Multimodal Anomaly Detection via Hypergraph-Enhanced Memory},
  author = {Yuxuan Lin and Hanjing Yan and Xuan Tong and Yang Chang and Huanzhen Wang and Ziheng Zhou and Shuyong Gao and Yan Wang and Wenqiang Zhang},
  year   = {2025},
  eprint = {2511.05966},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.05966v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.05966.svg)](https://codeofpaper.com/paper/2511.05966)

Discussion