Papers › Manifold Induced Biases for Zero-shot and Few-shot Detection of Generated Images

Manifold Induced Biases for Zero-shot and Few-shot Detection of Generated Images

21 Apr 2025arXiv:2504.15470archive 2025-07-28

Jonathan Brokman, Amit Giloni, Omer Hofman, Roman Vainshtein, Hisashi Kojima, Guy Gilboa

Distinguishing between real and AI-generated images, commonly referred to as 'image detection', presents a timely and significant challenge. Despite extensive research in the (semi-)supervised regime, zero-shot and few-shot solutions have only recently emerged as promising alternatives. Their main advantage is in alleviating the ongoing data maintenance, which quickly becomes outdated due to advances in generative technologies. We identify two main gaps: (1) a lack of theoretical grounding for the methods, and (2) significant room for performance improvements in zero-shot and few-shot regimes. Our approach is founded on understanding and quantifying the biases inherent in generated content, where we use these quantities as criteria for characterizing generated images. Specifically, we explore the biases of the implicit probability manifold, captured by a pre-trained diffusion model. Through score-function analysis, we approximate the curvature, gradient, and bias towards points on the probability manifold, establishing criteria for detection in the zero-shot regime. We further extend our contribution to the few-shot setting by employing a mixture-of-experts methodology. Empirical results across 20 generative models demonstrate that our method outperforms current approaches in both zero-shot and few-shot settings. This work advances the theoretical understanding and practical usage of generated content biases through the lens of manifold analysis.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2504.15470")

Code

Syntology Ran 7 of 7 code samples harvested from 1 repository linked to this paper; 0 have no recorded run. Of those that ran: 1 ran · honoured contract; 5 ran · our draft was wrong; 1 ran · fixture could not drive it.

By repository: official repository: 7 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

7 samples harvested; 7 ran; 1 honoured the contract we drafted; 0 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
5ran · our draft was wrong
1ran · fixture could not drive it

Licence: 7 of the 7 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from jonathanbrok/manifold-induced-biases-for-zero-shot-and-few-shot-detection-of-generated-images. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

factory_sdv14_based_criterion jonathanbrok/manifold-induced-biases-for-zero-shot-and-few-shot-detection-of-generated-images/manifold_bias_criteria.py official repository ran · our draft was wrong no licence file found · pointer only · d5d7ab9f6ad32854 · report
my_flat jonathanbrok/manifold-induced-biases-for-zero-shot-and-few-shot-detection-of-generated-images/manifold_bias_criteria.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 2b7972538db74246 · report
my_resize jonathanbrok/manifold-induced-biases-for-zero-shot-and-few-shot-detection-of-generated-images/manifold_bias_criteria.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · fd09abeb34ba227a · report
normalize_batch jonathanbrok/manifold-induced-biases-for-zero-shot-and-few-shot-detection-of-generated-images/manifold_bias_criteria.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · 08f764cd3913f27c · report
numpy_chunk jonathanbrok/manifold-induced-biases-for-zero-shot-and-few-shot-detection-of-generated-images/manifold_bias_criteria.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 85344d5637989af1 · report
postprocess_image jonathanbrok/manifold-induced-biases-for-zero-shot-and-few-shot-detection-of-generated-images/manifold_bias_criteria.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · de555a9024321407 · report
preprocess_image_batch jonathanbrok/manifold-induced-biases-for-zero-shot-and-few-shot-detection-of-generated-images/manifold_bias_criteria.py official repository ran · our draft was wrong no licence file found · pointer only · 70f788c6789d6219 · report

Tasks

Mixture-of-Experts

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections