FastRef:Fast Prototype Refinement for Few-Shot Industrial Anomaly Detection

Long Tian, Yufei Li, Yuyang Dai, Wenchao Chen, Xiyang Liu +1 more
6/26/2025
cs.CV

No confident code implementation found for this paper.

Abstract

Few-shot industrial anomaly detection (FS-IAD) presents a critical challenge for practical automated inspection systems operating in data-scarce environments. While existing approaches predominantly focus on deriving prototypes from limited normal samples, they typically neglect to systematically incorporate query image statistics to enhance prototype representativeness.

Show full abstract

To address this issue, we propose FastRef, a novel and efficient prototype refinement framework for FS-IAD. Our method operates through an iterative two-stage process: (1) characteristic transfer from query features to prototypes via an optimizable transformation matrix, and (2) anomaly suppression through prototype alignment. The characteristic transfer is achieved through linear reconstruction of query features from prototypes, while the anomaly suppression addresses a key observation in FS-IAD that unlike conventional IAD with abundant normal prototypes, the limited-sample setting makes anomaly reconstruction more probable. Therefore, we employ optimal transport (OT) for non-Gaussian sampled features to measure and minimize the gap between prototypes and their refined counterparts for anomaly suppression. For comprehensive evaluation, we integrate FastRef with three competitive prototype-based FS-IAD methods: PatchCore, FastRecon, WinCLIP, and AnomalyDINO. Extensive experiments across four benchmark datasets of MVTec, ViSA, MPDD and RealIAD demonstrate both the effectiveness and computational efficiency of our approach under 1/2/4-shots.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{tian2025fastreffast,
  title  = {FastRef:Fast Prototype Refinement for Few-Shot Industrial Anomaly Detection},
  author = {Long Tian and Yufei Li and Yuyang Dai and Wenchao Chen and Xiyang Liu and Bo Chen},
  year   = {2025},
  eprint = {2506.21398},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.21398v1}
}

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/2506.21398.svg)](https://codeofpaper.com/paper/2506.21398)

Discussion