Few-Shot Learner Generalizes Across AI-Generated Image Detection

Shiyu Wu, Jing Liu, Jing Li, Yequan Wang
2/14/2026

Official code: teheperinko541/Few-Shot-AIGI-Detector (9 stars, Apache-2.0, last commit 2025-07-23).

Abstract

Current fake image detectors trained on large synthetic image datasets perform satisfactorily on limited studied generative models. However, these detectors suffer a notable performance decline over unseen models. Besides, collecting adequate training data from online generative models is often expensive or infeasible. To overcome these issues, we propose Few-Shot Detector (FSD), a novel AI-generated image detector which learns a specialized metric space for effectively distinguishing unseen fake images using very few samples. Experiments show that FSD achieves state-of-the-art performance by $+11.6\%$ average accuracy on the GenImage dataset with only $10$ additional samples. More importantly, our method is better capable of capturing the intra-category commonality in unseen images without further training. Our code is available at https://github.com/teheperinko541/Few-Shot-AIGI-Detector.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
91Shell, PythonMay 25, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{wu2026fewshot,
  title  = {Few-Shot Learner Generalizes Across AI-Generated Image Detection},
  author = {Shiyu Wu and Jing Liu and Jing Li and Yequan Wang},
  year   = {2026},
  eprint = {2501.08763},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2501.08763},
  journal = {ICML 2025 2025}
}

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

Discussion