Images as Tables: In-Context Learning with TabPFN for Low-Data Detection of AI-Generated Images

Jan Philip Walter, Shashank Agnihotri, Margret Keuper
5/30/2026
1 citation
cs.CV

Official code: jpwalter30/Towards-Generalizable-Detection-of-AI-Generated-Images (0 stars, Python, last commit 2025-12-19).

Abstract

AI-generated image detection is a moving-target problem: detectors trained on one generator often fail when a new generator appears, and only a few labeled examples are available. We study a simple image-to-table formulation for this regime, where each image is encoded by a frozen DINOv3 backbone, its CLS feature is reduced to a 500-dimensional structured row with PCA, and TabPFN performs real/fake classification by in-context tabular inference rather than task-specific classifier training.

Show full abstract

This turns fake-image detection into low-data structured prediction over learned visual features, making detector adaptation depend on the labeled context set instead of gradient-based fine-tuning. On GenImage, LATTE, a recent state-of-the-art detector, remains stronger when many labeled samples from all generators are available, by 7.4% in the largest pooled setting, but DINOv3-PCA-TabPFN is stronger in the practically important low-data regime, outperforming LATTE by up to 8.2%, and in transfer settings where the detector must generalize from one generator to another. These results position tabular foundation models as a strong complementary adaptation mechanism for image forensics, shifting adaptation from detector retraining to lightweight in-context updates with a small labeled set of examples. Code URL: https://github.com/jpwalter30/Towards-Generalizable-Detection-of-AI-Generated-Images

View on arXivView PDF

Code Implementations(1)

01Python, ShellDec 16, 202511 months ago

Similar Papers

Cite this paper

@article{walter2026images,
  title  = {Images as Tables: In-Context Learning with TabPFN for Low-Data Detection of AI-Generated Images},
  author = {Jan Philip Walter and Shashank Agnihotri and Margret Keuper},
  year   = {2026},
  eprint = {2606.00872},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.00872v1}
}

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

Discussion