Beyond Known Fakes: Generalized Detection of AI-Generated Images via Post-hoc Distribution Alignment
Li Wang, Wenyu Chen, Xiangtao Meng, Zheng Li, Shanqing Guo · 2025
Read Beyond Known Fakes: Generalized Detection of AI-Generated Images via Post-hoc Distribution Alignment by Li Wang, Wenyu Chen, Xiangtao Meng, Zheng Li, Shanqing Guo (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2502-10803.txt.
Introduction
Fake pictures from new generators fool detectors trained on older fakes, since each generator leaves its own fingerprints and the next one differs. Li Wang and co-authors flip the problem in a 2025 paper. Instead of hunting fingerprints, they re-run each test picture through one known generator and watch what changes.
A real photo, once regenerated, picks up the known generator's fingerprints and looks like its fakes. A fake from an unknown source gains a clashing mix and stays off-pattern. That split lets an old detector, never retrained, sort the two with high accuracy across many generators, from research models to commercial tools. The method needs no samples from the new threat, which is the point: the next generator is always unknown.
Catalog record
| CREATOR | Li Wang, Wenyu Chen, Xiangtao Meng, Zheng Li, Shanqing Guo |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 67 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2502-10803
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Beyond Known Fakes: Generalized Detection of AI-Generated Images via Post-hoc Distribution Alignment Li Wang, Wenyu Chen, Xiangtao Meng, Zheng Li, Shanqing Guo Abstract The rapid proliferation of highly realistic AI-generated images poses serious security threats such as misinformation and identity fraud. Detecting generated images in open-world settings is particularly challenging when they originate from unknown generators, as existing methods typically rely on model-specific artifacts and require retraining on new fake data, limiting their generalization and scalability. In this work, we propose Post-hoc Distribution Alignment (PDA) , a generalized and model-agnostic framework for detecting AI-generated images under unknown generative threats. Specifically, PDA reformulates detection as a distribution alignment task by regenerating test images through a known generative model. When real images are regenerated, they inherit model-specific artifacts and align with the known fake distribution. In contrast, regenerated unknown fakes contain incompatible or mixed artifacts and remain misaligned. This difference allows an existing detector, trained on the known generative model, to accurately distinguish real images from unknown fakes without requiring access to unseen data or retraining. Extensive experiments across 16 state-of-the-art generative models, including GANs, diffusion models, and commercial text-to-image APIs (e.g., Midjourney), demonstrate that PDA achieves average detection accuracy of 96.69%, outperforming the best baseline by 10.71%. Comprehensive ablation studies and robustness analyses further confirm PDA’s generalizability and resilience to distribution shifts and image transformations. Overall, our work provides a practical and scalable solution for real-world AI-generated image detection where new generative models emerge continuously. Introduction Recent advances in generative models have fueled the rapid proliferation of AI-generated images [ 55 , 46 , 66 , 56 , 65 , 19 ] , enabling the mass creation of highly realistic synthetic visual content. While these technologies unlock broad applications in design, entertainment, and virtual reality, they simultaneously introduce growing security and privacy risks [ 1 , 28 , 36 , 53 ] . Malicious actors can exploit generative tools to fabricate deceptive imagery or impersonate identities, thereby undermining content authenticity and eroding trust in digital information ecosystems [ 3 , 5 ] . These risks have already manifested in real-world incidents. For example, non-consensual AI-generated explicit images of public figures have circulated widely (e.g., reported by CBS News 1 1 1 https://www.cbsnews.com/news/taylor-swift-deepfakes-online-outrage-artificial-intelligence/ ), and fabricated AI-generated images were used to spread false narratives about the 2025 Bondi Beach shooting, leading to large-scale public misinformation 2 2 2 https://www.abc.net.au/news/verify-disinformation-and-deepfakes-after-bondi-attack/106154250 . Such incidents are further exacerbated by the increasing accessibility and realism of modern generative systems [ 30 , 37 ] . As generative models continue to evolve rapidly and malicious actors can readily adopt new and diverse generators, a central security challenge emerges: developing AI-generated image detectors that remain reliable in open-world settings, where test samples may originate from previously unknown generative models [ 36 , 2 , 13 ] . Figure 1 : High-level illustration of PDA: Reals become distributionally aligned with known fakes through regeneration, while unknown fakes remain misaligned in the feature space. Despite growing research efforts [ 47 , 39 , 6 ] , existing AI-generated image detection paradigms suffer from a fundamental limitation: poor generalization to fake images generated by unknown generative models . Most current detectors are trained on fake images from a limited set of known generators, relying heavily on model-specific artifacts [ 66 , 9 , 59 , 57 ] . As illustrated in Figure 1 (a), these approaches learn clear decision boundaries that effectively separate known fakes from real images. However, modern generative models differ substantially in architecture, training data, and rendering pipelines, resulting in highly diverse and generator-dependent artifacts that do not transfer reliably across models [ 31 , 39 ] . Under this distribution shift, unknown fakes often overlap with real images in the learned feature space, leading to systematic misclassification and undermining detection reliability in realistic open-world deployments [ 33 , 63 ] . A common mitigation strategy is to continuously retrain or fine-tune detectors as new generators emerge [ 17 , 7 , 53 ] . However, retraining-centric strategies assume timely access to labeled fake data and incurs substantial computational overhead, making it impractical in latency-sensitive and rapidly evolving adversarial environments. To address these challenges, we propose Post-hoc Distribution Alignment (PDA) , a novel framework for generalized detection of AI-generated images under unknown generative threats. Instead of modeling the diverse and evolving distributions of fake images , PDA shifts the detection focus to real images : by regenerating real images through a single known generative model, they inherit consistent model-specific artifacts and thus align with the known fake distribution. In contrast, fake images produced by unknown generators already contain generator-dependent traces; when regenerated, these traces interfere with the artifacts introduced by the known model, resulting in hybrid or misaligned patterns and inducing distributional shifts (see Figure 1 (b)). This discrepancy enables existing detectors—trained solely on pure artifacts from the known generator—to reliably distinguish real images from unknown fakes without requiring access to unseen generators or additional retraining. Concretely, PDA adopts a three-step detection strategy (see Section 3.6 ). Step 1 Raw-space Filtering: PDA first evaluates whether a test image aligns with the known fake distribution in the raw feature space, defined by an existing detector. If not—indicating a real or unknown fake—it proceeds to the next step. Step 2 Regeneration : The image is then regenerated using a known generative model to produce a pseudo-fake version. Real images transformed in this way align with known fake distributions, whereas unknown fakes remain misaligned. Step 3 Differentiation : A threshold-based criterion is then used to distinguish real images from unknown fakes in the regenerated feature space. This approach can effectively detect unknown fake images using only one known generative model , making it adaptable and scalable for real-world applications. Extensive experiments on 16 representative generative models—including GANs, diffusion models, and proprietary text-to-image systems—across two benchmark datasets, GenImage [ 69 ] and AIGCDetect [ 67 ] , demonstrate that PDA achieves consistently superior performance. Specifically, PDA achieves an average accuracy of 96.69%, outperforming the strongest baseline (DRCT [ 6 ] : 85.98%) by a margin of +10.71%. For example, on VQDM [ 19 ] —a challenging unseen diffusion model—PDA achieves 97.87% accuracy, whereas ZeroFake [ 47 ] , a prompt-aware method tailored to text-to-image diffusion models, reaches only 69.38% , resulting in a gap of over 28%. These results demonstrate that PDA generalizes effectively to unknown generative models in open-world settings, without requiring retraining, prompt engineering, or access to internal generator parameters. We further conduct ablation studies and in-depth analyses, confirming that PDA provides a robust and generalizable defense against AI-generated image threats under continuously evolving generative models. The main contributions are summarized as follows: • We propose PDA, a novel detection framework that reformulates AI-generated image detection under open-world threats as a post-hoc distribution alignment problem. By aligning real images to the artifact distribution of a single known generator, PDA enables reliable detection of synthetic images from previously unknown generators, without retraining or access to unseen data. • We develop a principled three-step detection strategy: (i) raw-space filtering to identify known fakes, (ii) regeneration through a known generator to induce alignment for real images but not for unknown fakes, and (iii)