TL;DR
Conventional wisdom suggests that the best "teacher" models for training diffusion models are those with the highest global semantic accuracy (like top-tier ImageNet classifiers). This paper flips that assumption on its head, proving that spatial structure—how image patches relate to their neighbors—is a far more critical predictor of generation quality than classification accuracy. By making two tiny, 4-line code changes to emphasize these spatial relationships (a method called iREPA), the authors significantly accelerate the training of state-of-the-art generative models.
The Problem: What Makes a Good Teacher?
Training large-scale diffusion models is notoriously expensive and slow. A popular shortcut is Representation Alignment (REPA): during training, you force the diffusion model's internal features to "align" with or mimic the features of a strong, frozen, pretrained vision encoder (the "teacher").
Until now, researchers assumed that a "smarter" teacher (one with higher ImageNet-1K accuracy) would naturally lead to a better student. However, some high-accuracy models surprisingly make terrible teachers. This paper investigates the "missing link": what specific quality in a teacher model actually helps a diffusion model learn to generate high-quality images?
The Accuracy Paradox
The authors conducted a massive empirical study, testing 27 different vision encoders (including DINOv2, CLIP, and SAM2) as teachers for a Diffusion Transformer (SiT). They measured two things for each teacher:
- Global Performance: Standard linear probing accuracy on ImageNet.
- Spatial Structure: A metric measuring the "contrast" or self-similarity between different patches of an image.
The results revealed an "Accuracy Paradox." A model like SAM2 has very low classification accuracy but makes an excellent teacher for generation. Conversely, some models with >80% accuracy perform poorly. The correlation between a teacher's spatial structure and the resulting generation quality is incredibly high ($|r| = -0.852$), while the correlation with classification accuracy is nearly non-existent ($|r| = -0.260$).
Diffusion models don't need to know what an object is as much as they need to know where its boundaries and textures are. In fact, injecting global semantic information can actually hurt generation by washing out local details, making the features too uniform for the diffusion model to learn effective spatial reconstruction.
Visualizing Spatial Structure
To understand why spatial structure is so vital, we can look at spatial self-similarity visualizations. Models with better global accuracy often produce "mushy" spatial maps where the subject blends into the background. In contrast, models with strong spatial structure clearly delineate object boundaries, providing a much richer signal for the diffusion model to learn from.
iREPA: A Simple, Powerful Fix
Based on these findings, the authors proposed iREPA (Improved REPA), which introduces two lightweight modifications to specifically accentuate the transfer of spatial information:
- Convolutional Projection: Standard REPA uses a point-wise MLP to map features. iREPA replaces this with a simple 3x3 convolution, which naturally preserves and emphasizes local spatial relationships.
- Spatial Normalization: They add a layer that subtracts the global mean from the teacher's features. This "sacrifices" global semantic information to boost the local contrast between patches, making the spatial signal much clearer for the student model.
Key Results
- Massive Speedup: iREPA consistently reaches better image quality (lower gFID) in 100K training steps than standard REPA does in 400K steps.
- Universal Improvement: As seen in the charts above, the method works across the board, regardless of the teacher model used (DINOv3, WebSSL, MoCoV3, etc.) or the generative architecture.
- Quantitative Gains: On ImageNet-256, using a DINOv2 teacher, iREPA improved the FID from 19.3 to 16.9 at 100K steps. When using a "weaker" classifier like SAM2, the gains were even more pronounced, proving that spatial integrity is the dominant factor.
Limitations and Future Work
While tested extensively on ImageNet, the impact of iREPA on "web-scale" uncurated datasets remains to be seen. Furthermore, while the spatial structure metric is effective, there may be even more sophisticated ways to quantify "useful" spatial information for generative tasks. Future work could dive deeper into the information-theoretic reasons why diffusion models prioritize local spatial contrast over global semantics during the early stages of training.
Summary updated