TL;DR
AEDR (AutoEncoder Double-Reconstruction) is a novel, training-free method for AI image attribution that identifies which generative model created an image by reconstructing it twice through the model's own autoencoder. By analyzing the ratio of these reconstruction losses and calibrating for image complexity, AEDR achieves a 25.5% accuracy boost over state-of-the-art methods while running 100x faster.
What Problem Does This Paper Address?
As AI-generated images become indistinguishable from reality, the ability to "attribute" an image—identifying exactly which model (e.g., Stable Diffusion vs. FLUX) produced it—is critical for intellectual property protection and safety.
Existing attribution methods usually fall into two camps:
- Active Methods: Embedding watermarks or "fingerprints" during generation. These require modifying the model and can degrade image quality.
- Passive Methods: Analyzing images after the fact. Most passive methods rely on "reconstruction loss"—the idea that a model can perfectly reconstruct its own images but struggles with others.
However, modern "State-of-the-Art" (SOTA) models like FLUX are so powerful that their autoencoders can reconstruct almost anything with very low error. This causes the reconstruction loss distributions of "belonging" and "non-belonging" images to overlap, making traditional attribution fail. Furthermore, existing passive methods often require expensive gradient-based optimizations, taking minutes per image.
Methods
The authors propose AEDR, which moves away from looking at a single reconstruction loss value and instead looks at the trend of loss over two passes.
- Double-Reconstruction: The system takes an input image $x$ and passes it through the target model's autoencoder to get $x^*$. Then, it passes $x^*$ through the same autoencoder again to get $x^{**}$.
- The Loss Ratio: It calculates two losses: $L_1$ (between $x$ and $x^*$) and $L_2$ (between $x^*$ and $x^{**}$). The core attribution signal is the ratio $t = L_1 / L_2$.
- Homogeneity Calibration: To prevent "texture bias" (where complex images naturally have higher loss than simple ones), they multiply the ratio by a homogeneity metric ($H$). This ensures that a simple blue sky and a complex forest are treated fairly.
- Adaptive Thresholding: Using Kernel Density Estimation (KDE), the system automatically determines the best "cutoff" point to decide if an image belongs to the model or not, requiring no prior knowledge of the data distribution.
Datasets
The researchers evaluated AEDR using a dataset of 9,000 images:
- Real Images: 1,000 samples from LAION-5B, with prompts extracted via CLIP Interrogator.
- AI Images: 8,000 images generated by eight SOTA or widely used models: Stable Diffusion (v1.5, v2.1, v2-base, XL, v3.5), FLUX.1-dev, VQDM, and Kandinsky 2.1.
This variety allowed them to test the method against different autoencoder architectures, including standard VAEs and quantized versions (VQ-VAE).
Key Insights and Ideas
- The "Distribution Projection" Effect: This is the "aha" moment of the paper. When a model reconstructs an image it didn't create, the first pass effectively "projects" that image into the model's known distribution. Consequently, the second reconstruction pass is much easier, leading to a much lower $L_2$ compared to $L_1$. For images the model did create, the image is already in-distribution, so $L_1$ and $L_2$ are nearly identical.
- Ratios over Absolute Values: By using the ratio ($L_1/L_2$), the method becomes invariant to the absolute performance of the autoencoder. This is why it works on models like FLUX where absolute loss is tiny.
- Efficiency via Forward Passes: Unlike previous methods (like LatentTracer) that require iterative gradient descent to "find" the best reconstruction, AEDR uses two simple forward passes. This is what enables the massive speedup.
Key Results
- Superior Accuracy: AEDR achieved an average attribution accuracy of 95.1%, compared to 50.3% for RONAN and 70.4% for LatentTracer.
- Massive Speedup: The method is approximately 100x faster than the previous best baseline. For example, on SDXL, AEDR takes 1.25 seconds per image, while LatentTracer takes over 162 seconds.
- Robustness: It successfully distinguished AI images from real images with 96.9% accuracy, significantly outperforming existing forensic tools.
- Generalization: The method proved effective across different types of autoencoders (VAE, VQ-VAE, MoVQ), though performance varied slightly based on the "discreteness" of the latent space.
Limitations and Future Work
- Quantized Latent Spaces: The authors noted that models using discrete latent spaces (like MoVQ in Kandinsky 2.1) showed lower accuracy (82.93%). The "jumping" to the nearest latent code during quantization introduces noise that interferes with the fine-grained loss ratio.
- White-Box Requirement: AEDR requires access to the target model's autoencoder. While this is easier than requiring the full diffusion model or training data, it still assumes a "gray-box" or "white-box" scenario.
- Future Directions: The authors suggest that improving attribution for quantized models is a primary goal for future research. They also see potential in applying this double-reconstruction logic to other generative tasks beyond images.
Summary updated