Who Made This? Fake Detection and Source Attribution with Diffusion Features
Simone Bonechi, Paolo Andreini, Barbara Toniella Corradini
TL;DR
FRIDA introduces a training-free framework that leverages internal diffusion-model activations to detect synthetic images and attribute them to their source generators. It uses a $k$-NN on diffusion features for robust cross-generator fake detection and a compact MLP for attribution, both trained on latent representations extracted from a pre-trained Stable Diffusion Model. On GenImage, FRIDA achieves state-of-the-art detection performance with strong generalization to unseen generators and demonstrates generator-specific patterns in diffusion features via SHAP explanations. The approach is data-efficient, fast at inference, and highlights diffusion representations as a universal, interpretable basis for synthetic image forensics with practical deployment benefits. Overall, FRIDA provides a scalable alternative to retraining detectors as generators evolve, bridging diffusion modeling and authenticity analysis.
Abstract
The rapid progress of generative diffusion models has enabled the creation of synthetic images that are increasingly difficult to distinguish from real ones, raising concerns about authenticity, copyright, and misinformation. Existing supervised detectors often struggle to generalize across unseen generators, requiring extensive labeled data and frequent retraining. We introduce FRIDA (Fake-image Recognition and source Identification via Diffusion-features Analysis), a lightweight framework that leverages internal activations from a pre-trained diffusion model for deepfake detection and source generator attribution. A k-nearest-neighbor classifier applied to diffusion features achieves state-of-the-art cross-generator performance without fine-tuning, while a compact neural model enables accurate source attribution. These results show that diffusion representations inherently encode generator-specific patterns, providing a simple and interpretable foundation for synthetic image forensics.
