JOURNAL ARTICLE

Few-Shot Anomaly Detection via Personalization

Sangkyung KwakJongheon JeongHankook LeeW. KimDongho SeoWoo-Seong YunWon Jin LeeJinwoo Shin

Year: 2024 Journal:   IEEE Access Vol: 12 Pages: 11035-11051   Publisher: Institute of Electrical and Electronics Engineers

Abstract

Even with a plenty amount of normal samples, anomaly detection has been considered as a challenging machine learning task due to its one-class nature, i. e., the lack of anomalous samples in training time. It is only recently that a few-shot regime of anomaly detection became feasible in this regard, e. g., with a help from large vision-language pre-trained models such as CLIP, despite its wide applicability. In this paper, we explore the potential of large text-to-image generative models in performing few-shot industrial anomaly detection. Specifically, recent text-to-image models have shown unprecedented ability to generalize from few images to extract their common and unique concepts, and even encode them into a textual token to “personalize” the model: so-called textual inversion. Here, we question whether this personalization is specific enough to discriminate the given images from their potential anomalies, which are often, e. g., open-ended, local, and hard-to-detect. We observe that standard textual inversion exhibits a weaker understanding in localized details within objects, which is not enough for detecting industrial anomalies accurately. Thus, we explore the utilization of model personalization to address anomaly detection and propose Anomaly Detection via Personalization (ADP). ADP enables extracting fine-grained local details shared in the images with simple-yet an effective regularization scheme from the zero-shot transferability of CLIP. We also propose a self-tuning scheme to further optimize the performance of our detection pipeline, leveraging synthetic data generated from the personalized generative model. Our experiments show that the proposed inversion scheme could achieve state-of-the-art results on two industrial anomaly benchmarks, MVTec-AD and VisA, in the regime of few normal samples.

Keywords:
Computer science Artificial intelligence Security token Anomaly detection Information retrieval Machine learning

Metrics

6
Cited By
3.83
FWCI (Field Weighted Citation Impact)
50
Refs
0.89
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Anomaly Detection Techniques and Applications
Physical Sciences →  Computer Science →  Artificial Intelligence
Bacillus and Francisella bacterial research
Life Sciences →  Biochemistry, Genetics and Molecular Biology →  Molecular Biology
Domain Adaptation and Few-Shot Learning
Physical Sciences →  Computer Science →  Artificial Intelligence

Related Documents

BOOK-CHAPTER

Few-Shot Scene-Adaptive Anomaly Detection

Yiwei LuFrank YuMahesh Kumar Krishna ReddyYang Wang

Lecture notes in computer science Year: 2020 Pages: 125-141
JOURNAL ARTICLE

Anomalous Samples for Few-Shot Anomaly Detection

Aymane AbdaliBartosz BoguslawskiLucas DrumetzVincent Gripon

Journal:   Procedia Computer Science Year: 2025 Vol: 264 Pages: 104-114
JOURNAL ARTICLE

Few-shot online anomaly detection and segmentation

Shenxing WeiWei XingZhiheng MaSonglin DongShaochen ZhangYihong Gong

Journal:   Knowledge-Based Systems Year: 2024 Vol: 300 Pages: 112168-112168
© 2026 ScienceGate Book Chapters — All rights reserved.