TL;DR
Imagine you are a digital detective handed a flash drive containing thousands of AI-generated faces from a disinformation campaign—no labels, brand-new models, and no clue how many different generators were used. EchoTrace solves this exact "blind" forensic puzzle, automatically sorting synthetic images by their creator without ever seeing a single training label. By listening to the subtle mathematical "echoes" that generators leave behind in latent space, it accurately groups images by source and estimates how many distinct AI models are in the room.
What Problem Does This Paper Address?
In synthetic media forensics, simply asking "is this image real or fake?" is no longer enough. Analysts need source attribution—knowing which specific model produced an image to link fake profiles, trace coordinated campaigns, or hold platforms accountable.
Historically, attribution has been treated like a multiple-choice test over a closed set of known, labeled generators. Even recent "open-world" methods still require a starter pack of labeled images from known models to get their bearings, or require someone to tell them the exact number of unknown generators ($K$) in advance. Real-world investigations break all these assumptions: seized collections are completely unlabeled, contain brand-new commercial or open-source models, and the number of sources is unknown. Furthermore, if all the images are portraits (faces), standard vision models like DINOv2 or CLIP are useless because they group images by semantic content (e.g., "smiling person with glasses") rather than who made them.
The authors tackle label-free open-world source attribution: taking an unlabeled pile of synthetic faces and partitioning them by generator, completely from scratch.
Methods
EchoTrace operates like a five-stage forensic pipeline, using zero source labels for training, stopping, or tuning:
- Latent Encoding: Images are center-cropped at native resolution (avoiding resampling blur) and passed into the frozen VAE encoder of Stable Diffusion 2.1. This compresses visual content while preserving the statistical quirks latent generators leave behind.
- Masked Residual Extraction (Novel): Think of this as isolating a camera's sensor noise. A small, locally-constrained transformer predicts masked-out patches of the latent representation based only on their immediate $5 \times 5$ neighborhood. Because local context explains the visual content, what the predictor gets wrong—the residual—isolates the generator's unique fingerprint.
- Trace Encoder: A lightweight convolutional network trained via self-supervised learning (VICReg) embeds crops of these residual maps into a compact 64-dimensional vector.
- Transductive Label-Free Adaptation (Novel): Because the collection itself is available during an investigation, EchoTrace adapts directly to it. First, it pulls mutual nearest neighbors closer together (since an image's closest neighbor in residual space usually shares its generator). Next, it runs a self-training loop: it samples subsets of images, forms provisional groups, applies within-group whitening (mathematically squashing leftover content variation), and promotes recurring, tight groups into "pseudo-classes" to retrain the encoder.
- Source Partitioning: To figure out how many clusters ($K$) actually exist without collapsing or over-splitting, EchoTrace builds an identity catalog using persistence-based density clustering across random halves of the data, and uses those stable identities to anchor a silhouette-score search on hierarchical clustering.
Datasets
To evaluate the system fairly against methods that do require labeled data, the authors collected 20,000 synthetic face images across 20 generators (1,000 each), splitting them into two disjoint 10-generator benchmarks:
- Diffusion-10: Ten modern commercial and open diffusion services (including DALL-E 3, Midjourney, Flux.1, Flux.1.1 Pro, SD 3.5, and Adobe Firefly) all rendering the exact same portrait prompts, ensuring zero content leakage between splits.
- Mixed-10: A diverse mix of diffusion, autoregressive, and GAN architectures (including DALL-E 1, Sana-PAG, Stable Cascade, and StyleGAN 1, 2, and 3).
Key Insights and Ideas
- Residuals survive where raw latents fail: Predicting local structure and keeping only the error (residual) acts like a forensic high-pass filter. Feeding raw latents instead of residuals drops clean clustering performance and cuts robustness to heavy post-processing in half.
- Flipping the similarity script: On Diffusion-10, where different generators render the exact same text prompts, foundation models like DINOv2 group images by prompt. EchoTrace achieves the exact opposite: same prompt + different generator = unrelated; different prompt + same generator = close neighbors.
- Nearest neighbors know best, even when global clusters don't: Prior forensic descriptors (like FSD) actually achieve great 1-nearest-neighbor accuracy (>90%), meaning the local signal is there—they just collapse into 2 or 3 giant blobs when clustered globally. EchoTrace's transductive adaptation bridges that local-to-global gap.
Key Results
Evaluated on 20 random test sets of 100 images (true $K=10$), EchoTrace dominates all existing label-free methods:
- Doubling Clustering Quality: EchoTrace achieves an Adjusted Rand Index (ARI, where 1.0 is perfect grouping and 0 is random) of 0.535 on Diffusion-10 and 0.590 on Mixed-10—roughly doubling the strongest prior label-free method, FSD (0.258 and 0.304, respectively).
- Nailing the Generator Count: While prior label-free methods collapse to ~2.8–6.1 clusters, EchoTrace estimates $\hat{K} = \mathbf{9.35}$ on Diffusion-10 and $\mathbf{9.73}$ on Mixed-10—within less than one generator of the truth on average.
- Beating Supervised Rivals: Remarkably, EchoTrace outperforms semi-supervised open-world methods (CDAL and CAL, which were given 10 labeled generators!) on Diffusion-10, and only trails CDAL on Mixed-10 when CDAL is explicitly handed the true number of clusters $K$.
Limitations and Future Work
The authors are refreshingly candid about where EchoTrace hits its limits:
- Heavy Post-Processing: While it is the most robust label-free method tested, chaining three aggressive edits (like cropping, blurring, and JPEG/WebP compression) drops Diffusion-10 ARI from 0.55 down to 0.08.
- Tightly Related Model Families: Distinguishing siblings like StyleGAN, StyleGAN2, and StyleGAN3 remains tough—they tend to merge into a single family cluster.
- Overestimating Small $K$: Because the final cluster search window starts slightly above the count of catalog identities (to avoid merging similar models), EchoTrace overestimates $K$ when a collection actually only comes from 2 generators (predicting ~3.6–4.5). Deriving $K$ directly from the identities is left for future work.
- Single Semantic Class & Transductive Scope: EchoTrace is designed specifically for faces and needs an unlabeled pool from the target generators to adapt. Tested out-of-scope on GenImage (1,000 diverse object classes), ARI drops to 0.08—separating traces from wildly varying scene content will require a new architectural design.
Summary updated