TL;DR
Training Diffusion Transformers (DiTs) from scratch is computationally expensive, leading researchers to align their features with pre-trained vision models. This paper introduces sREPA, a framework that shifts from matching individual feature points to explicitly aligning the holistic relational geometry (pairwise token similarities) between student and teacher models. This simple, plug-and-play structural constraint significantly accelerates training convergence and boosts image generation quality with negligible computational overhead.
What Problem Does This Paper Address?
While Diffusion Transformers (DiTs) excel at high-fidelity image synthesis, training them from scratch requires massive computational resources. To speed up training, recent techniques like Representation Alignment (REPA) align the internal features of the student diffusion model with a frozen, pre-trained "teacher" vision foundation model (like DINOv2).
However, existing alignment approaches rely on point-wise matching—forcing individual tokens to match independently. The authors argue that this treats feature maps like an unstructured "bag of vectors," failing to capture the rich spatial topology and relational geometry inherent in vision models. Without explicit structural constraints, the model struggles to internalize how different image regions relate to one another, limiting the efficiency of the feature transfer.
Methods
The authors propose sREPA (structural REPresentation Alignment). Instead of looking at isolated points, sREPA computes a pairwise cosine similarity matrix (Gram matrix) for both the teacher and student feature maps. This matrix explicitly captures the global spatial layout and structural correlations of the image. Diagonal elements are masked out to prevent trivial self-matching solutions.
The framework introduces two practical variants to align these similarity structures:
- sREPA-MSE: A parameter-free approach that directly minimizes the Mean Squared Error (MSE) between the student's and teacher's similarity matrices.
- sREPA-KL: A probabilistic variant that applies a Softmax function to turn the similarity rows into attention distributions, minimizing the Kullback-Leibler (KL) divergence between them.
Crucially, sREPA does not replace point-wise alignment; it acts as a complementary structural loss alongside standard flow matching and point-wise projection objectives.
Datasets
The models were trained and evaluated on the standard ImageNet 256×256 and ImageNet 512×512 benchmarks. Performance was measured using standard generative metrics, including Fréchet Inception Distance (FID), spatial FID (sFID), and Inception Score (IS) over 50,000 generated samples.
Key Insights and Ideas
- Structure over Semantics: Building on recent findings that spatial structure (rather than high-level semantic content) drives alignment success, sREPA proves that explicitly supervising this structure yields much cleaner, more concentrated token relationships than implicit architectural tweaks.
- The Semantic Anchor: Interestingly, trying to train a model using only structural loss fails. Point-wise alignment is still required to act as a "semantic anchor" to ground the features in absolute latent space, making structural supervision a powerful complement rather than a replacement.
- Symmetry Matters: Unlike discriminative tasks (like classification) where asymmetric temperatures help create high-confidence peaks, generative structural alignment requires symmetric temperatures ($\tau_s = \tau_t = 0.2$) in the KL variant to prevent distorting the relative distance ratios between tokens.
Key Results
- Faster Convergence & Better Quality: On ImageNet 256×256, sREPA applied to a SiT-XL/2 model achieved an FID of 7.17 at 400K steps, comfortably beating standard REPA (7.9) and iREPA (7.52). Remarkably, it outperformed a vanilla SiT model trained for 7 million steps (FID 8.3) in just a fraction of the training time.
- Plug-and-Play Compatibility: sREPA is highly orthogonal to other methods. Adding it to existing alignment frameworks like iREPA or REG consistently boosted their performance (e.g., reducing REG's 400K-step FID from 15.2 to 14.4).
- Minimal Overhead: Despite computing quadratic pairwise matrices, sREPA only reduces training throughput by ~1.77% to 2.05% and adds minimal peak GPU memory overhead (0.16% at 256x256 resolution), making it highly practical.
Limitations and Future Work
- Quadratic Complexity: Because sREPA relies on pairwise token matching, its computational complexity scales quadratically ($O(N^2)$) with the number of tokens. This could become a significant bottleneck for very large token grids, high-resolution images, or long video sequences. The authors suggest that future work should explore more scalable local relation matching strategies.
- Scope of Evaluation: The empirical validation is currently limited to ImageNet class-conditional generation. Testing its scalability on large-scale text-to-image or long-video generation remains an open and important direction.
Summary updated