LATTE: Latent Trajectory Embedding for Diffusion-Generated Image Detection

Ana Vasilcoiu, Ivona Najdenkoska, Zeno Geradts, Marcel Worring · DOI

Introduction

As diffusion-based generators like Stable Diffusion, Midjourney, and DALL-E reach new heights of realism, distinguishing synthetic images from real ones has become a critical challenge. Traditional detection methods often rely on "reconstruction errors," assuming generative models reconstruct synthetic images more accurately than real ones. However, these methods typically analyze errors at a single denoising step, overlooking the sequential nature of the diffusion process.

LATTE (Latent Trajectory Embedding) addresses this by analyzing how an image "evolves" across multiple steps of the diffusion denoising process. By capturing the sequential trajectory of latent representations, LATTE identifies subtle, self-consistent signatures unique to synthetic images, achieving state-of-the-art performance across diverse generators.

Methodology

LATTE utilizes a two-stage architecture to capture temporal signatures within the diffusion process:

  1. Latent Trajectory Extraction: The input image is encoded into a latent space via a VAE. The system then simulates the diffusion process by adding noise and performing single-step denoising reconstructions at several evenly spaced timesteps (typically 5). This generates a sequence of latent states, forming a "trajectory."
Figure 1: The Latent Trajectory Extraction process, showing how an input image is converted into a sequence of denoised latent states.
  1. Latent-Visual Fusion: To ground the trajectory in actual image content, LATTE employs transformer decoders. Each latent state in the trajectory attends to visual features from a pretrained backbone (e.g., ConvNeXt), allowing the model to correlate specific image regions with latent state changes.
  2. Classification: The enriched sequence is aggregated and combined with a global image token for final classification by a linear layer.

Key Results and Generalization

The researchers evaluated LATTE on major benchmarks including GenImage, Chameleon, and Diffusion Forensics. LATTE demonstrated significant improvements in both absolute accuracy and cross-generator generalization.

On the GenImage benchmark, LATTE achieved an average accuracy of 91.0%, outperforming previous state-of-the-art methods. Notably, LATTE excels at detecting images from "unseen" generators. For instance, when trained on Stable Diffusion but tested on BigGAN, it outperformed baselines by 9.5%.

Figure 2: Cross-generator performance comparison between DIRE, LaRE, and LATTE. LATTE shows significantly higher consistency and accuracy across different training and testing sets.

Insights and Limitations

The success of LATTE stems from the "Smoothness Hypothesis": synthetic images follow a predictable, smooth path back to the data manifold they were created from, while real images produce "jittery" trajectories. Furthermore, spatial analysis reveals that diffusion models prioritize central content, creating a "center-focused" signature in fake images that LATTE effectively captures.

Despite its strengths, LATTE faces challenges common to the field. Its performance can degrade under heavy post-processing like extreme JPEG compression. Additionally, as a global detector, identifying small, localized "inpainted" forgeries remains a target for future research. While extracting multiple latent states adds computational overhead, the use of single-step reconstructions keeps the process efficient.

Summary updated

BibTeX
@misc{vasilcoiu2025latte,
  author = {Ana Vasilcoiu and Ivona Najdenkoska and Zeno Geradts and Marcel Worring},
  title = {{LATTE: Latent Trajectory Embedding for Diffusion-Generated Image Detection}},
  year = {2025},
  eprint = {2507.03054},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.03054},
}
Figure