Anomalous Samples for Few-Shot Anomaly Detection

Aymane Abdali, Bartosz Boguslawski, Lucas Drumetz, Vincent Gripon
7/31/2025
cs.LG

No confident code implementation found for this paper.

Abstract

Several anomaly detection and classification methods rely on large amounts of non-anomalous or "normal" samples under the assump- tion that anomalous data is typically harder to acquire. This hypothesis becomes questionable in Few-Shot settings, where as little as one anno- tated sample can make a significant difference. In this paper, we tackle the question of utilizing anomalous samples in training a model for bi- nary anomaly classification. We propose a methodology that incorporates anomalous samples in a multi-score anomaly detection score leveraging recent Zero-Shot and memory-based techniques. We compare the utility of anomalous samples to that of regular samples and study the benefits and limitations of each. In addition, we propose an augmentation-based validation technique to optimize the aggregation of the different anomaly scores and demonstrate its effectiveness on popular industrial anomaly detection datasets.

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{abdali2025anomalous,
  title  = {Anomalous Samples for Few-Shot Anomaly Detection},
  author = {Aymane Abdali and Bartosz Boguslawski and Lucas Drumetz and Vincent Gripon},
  year   = {2025},
  eprint = {2507.23712},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.23712v1}
}

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

Discussion