Skip to main content
QUICK REVIEW

[Paper Review] Representation Alignment for Generation: Training Diffusion Transformers Is Easier Than You Think

Sihyun Yu, Sangkyung Kwak|arXiv (Cornell University)|Oct 9, 2024
Reinforcement Learning in RoboticsComputer Science4 citations
TL;DR

This paper introduces Representation Alignment (REPA), a simple regularization technique that aligns noisy latent representations in diffusion transformers with high-quality external visual features from pretrained self-supervised encoders like DINOv2. By distilling these external representations into the diffusion model's early layers, REPA accelerates training by over 17.5× and achieves state-of-the-art FID=1.42 with classifier-free guidance, significantly improving both training efficiency and generation quality.

ABSTRACT

Recent studies have shown that the denoising process in (generative) diffusion models can induce meaningful (discriminative) representations inside the model, though the quality of these representations still lags behind those learned through recent self-supervised learning methods. We argue that one main bottleneck in training large-scale diffusion models for generation lies in effectively learning these representations. Moreover, training can be made easier by incorporating high-quality external visual representations, rather than relying solely on the diffusion models to learn them independently. We study this by introducing a straightforward regularization called REPresentation Alignment (REPA), which aligns the projections of noisy input hidden states in denoising networks with clean image representations obtained from external, pretrained visual encoders. The results are striking: our simple strategy yields significant improvements in both training efficiency and generation quality when applied to popular diffusion and flow-based transformers, such as DiTs and SiTs. For instance, our method can speed up SiT training by over 17.5$ imes$, matching the performance (without classifier-free guidance) of a SiT-XL model trained for 7M steps in less than 400K steps. In terms of final generation quality, our approach achieves state-of-the-art results of FID=1.42 using classifier-free guidance with the guidance interval.

Motivation & Objective

  • To address the challenge of slow and inefficient training in large-scale diffusion transformers due to poor internal representation learning.
  • To investigate whether incorporating high-quality external visual representations can significantly improve training efficiency and generation quality in diffusion models.
  • To overcome the input mismatch between noisy diffusion inputs and clean-image pretraining of visual encoders through a simple, effective regularization strategy.
  • To demonstrate that representation alignment with strong self-supervised encoders like DINOv2 leads to faster convergence and superior generation performance.
  • To provide a practical, plug-and-play method that enhances diffusion transformer training without architectural changes.

Proposed method

  • REPA introduces a regularization loss that aligns the projection of noisy latent hidden states in the diffusion transformer with the corresponding features from a pretrained visual encoder (e.g., DINOv2) applied to the clean image.
  • The method uses a linear projection head to map the diffusion model's hidden states to the same feature space as the external visual encoder, enabling feature matching.
  • The alignment loss is computed during training and applied only to early layers of the diffusion transformer, ensuring minimal computational overhead.
  • The approach is compatible with both diffusion and flow-based transformers, including DiT and SiT architectures, and works with latent diffusion frameworks using VAE-embedded inputs.
  • The method does not require fine-tuning the external encoder or modifying the diffusion model’s architecture, making it easily deployable.
  • The training process leverages classifier-free guidance and is evaluated on standard text-to-image benchmarks with FID and user studies.
Figure 1: Representation alignment makes diffusion transformer training significantly easier. Our framework, REPA, explicitly aligns the diffusion model representation with powerful pretrained visual representation through a simple regularization. Notably, model training becomes significantly more e
Figure 1: Representation alignment makes diffusion transformer training significantly easier. Our framework, REPA, explicitly aligns the diffusion model representation with powerful pretrained visual representation through a simple regularization. Notably, model training becomes significantly more e

Experimental results

Research questions

  • RQ1Can aligning diffusion transformer representations with high-quality external visual features significantly accelerate training convergence?
  • RQ2Does representation alignment with pretrained self-supervised encoders like DINOv2 improve the quality of generated images compared to standard diffusion training?
  • RQ3How does the alignment between diffusion model features and external visual features evolve during training, and can it be accelerated via explicit regularization?
  • RQ4Is the proposed REPA method effective across different diffusion transformer architectures, such as DiT and SiT?
  • RQ5Can REPA achieve state-of-the-art generation quality with substantially fewer training steps than baseline models?

Key findings

  • REPA reduces the training steps required for SiT-XL/2 to match the performance of a 7M-step baseline to under 400K steps, achieving a 17.5× speedup in convergence.
  • The method achieves a state-of-the-art FID score of 1.42 using classifier-free guidance with a guidance scale of 4.0, outperforming previous methods.
  • Linear probing accuracy on downstream classification tasks improves significantly when using REPA, indicating better semantic representation learning.
  • Representation alignment with DINOv2 improves progressively with longer training and larger model scale, confirming the value of external supervision.
  • The alignment loss effectively reduces the semantic gap between diffusion model features and those of strong self-supervised encoders, even with noisy inputs.
  • Qualitative results show high-fidelity, diverse, and prompt-aligned generations across diverse classes such as 'fire truck', 'laptop', 'space shuttle', and 'coral reef'.
(a) Semantic gap: Linear probing
(a) Semantic gap: Linear probing

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.