TL;DR
SpeeDiff introduces a scalable, end-to-end training paradigm for latent diffusion models (LDMs) that jointly trains the VAE tokenizer and the diffusion model from scratch. By utilizing a novel Tweedie Pixel Reconstruction (TPR) loss to prevent latent space collapse, SpeeDiff achieves up to 140× faster training convergence and sets a new state-of-the-art in text-to-image generation quality.
What Problem Does This Paper Address?
Conventional Latent Diffusion Models (like Stable Diffusion) rely on a rigid, two-stage pipeline: first, a Variational Autoencoder (VAE) is trained to compress images into a compact latent space; then, the VAE is frozen, and a diffusion model is trained entirely within this static latent domain.
The drawback? The VAE is optimized purely for pixel reconstruction, not for the downstream generation process, resulting in a suboptimal latent space. While training both components jointly from scratch seems like the obvious solution, naive end-to-end implementations completely fail. Without restrictions, the diffusion loss backpropagates into the VAE encoder and causes latent collapse—a degenerate state where the latent space loses its variance, exhibits massive channel-wise bias, and discards the essential semantic information required for faithful image reconstruction.
Methods
SpeeDiff overcomes latent collapse through a fully transformer-based architecture optimized end-to-end via three key components:
- Tweedie Pixel Reconstruction (TPR) Loss: This is the core technical innovation. During the diffusion process, the model uses Tweedie’s formula to mathematically estimate the clean, denoised latent ($\hat{z}_0$) from any intermediate noisy state ($z_t$). This predicted clean latent is immediately passed through the VAE decoder to reconstruct the image in pixel space. By penalizing pixel-level discrepancies against the ground truth, the TPR loss anchors the VAE encoder and prevents the latent space from collapsing.
- Fully Transformer Backbone: The authors replace traditional convolutional VAEs with a Vision Transformer-based VAE (ViT-VAE) and pair it with a modernized Diffusion Transformer (Refined-DiT) featuring SwiGLU activations, RMSNorm, and 2D Rotary Position Embeddings (RoPE).
- REPA++ (Representation Alignment): To further accelerate convergence, SpeeDiff incorporates an enhanced alignment mechanism that supervises both the latent representations and intermediate diffusion features using semantic features from a pretrained Vision Foundation Model (DINOv3).
Datasets
The model was trained and evaluated on the standard ImageNet benchmark at two resolutions:
- ImageNet $256 \times 256$
- ImageNet $512 \times 512$ (utilizing a highly efficient $32\times$ spatial compression VAE setup)
Key Insights and Ideas
- An Exploitable Latent Space: The authors discovered that vanilla end-to-end training fails because the diffusion model finds a "shortcut." Without pixel-space constraints, it minimizes its objective by forcing the VAE to output highly peaked, non-Gaussian latent distributions where the diffusion model can easily predict nearly constant mean values.
- Automatic Semantic Improvement: Allowing diffusion gradients to flow directly back into the VAE encoder naturally smooths the latent space and strengthens its semantic organization. Without any explicit class labels or semantic losses, end-to-end training automatically boosted latent linear probing accuracy by 9.45%.
- A "Generation-Friendly" Tokenizer: A VAE trained via SpeeDiff can be frozen and used to train an entirely new diffusion model from scratch, yielding the same rapid convergence. This proves that SpeeDiff fundamentally alters the VAE to create a latent space inherently optimized for generative modeling.
Key Results
- Massive Training Speedups: On ImageNet $256 \times 256$, the SpeeDiff-XL model achieves convergence over 140× faster than Vanilla SiT and 61× faster than REPA.
- State-of-the-Art Generation: SpeeDiff-XL achieves an exceptional generative Fréchet Inception Distance (gFID) of 1.50 without classifier-free guidance on ImageNet $256 \times 256$.
- High-Resolution Efficiency: When scaling to ImageNet $512 \times 512$, SpeeDiff leverages a $32\times$ compressed VAE to drastically reduce GFLOPs while maintaining a stellar gFID of 1.53 without guidance, demonstrating superior scaling behavior compared to traditional convolutional LDM baselines.
Limitations and Future Work
Not discussed in the paper.
Summary updated