TL;DR
SD-DiT accelerates Diffusion Transformer (DiT) training by replacing standard mask reconstruction tasks with a self-supervised teacher-student discrimination objective. By decoupling the encoder and decoder, it eliminates training-inference discrepancies and achieves up to a 5x speedup in convergence while simultaneously improving image generation quality.
What Problem Does This Paper Address?
Diffusion Transformers (DiTs) have become the state-of-the-art architecture for generative diffusion models, but they are notoriously slow to converge, requiring massive computational resources.
To speed up training, recent methods have integrated masking strategies (like MaskDiT or MDT) borrowed from self-supervised learning. These methods mask out parts of the input image and force the network to reconstruct the missing patches alongside the standard diffusion task. However, the authors point out two inherent limitations with this approach:
- Training-Inference Discrepancy: Masking strategies rely on learnable "mask tokens" during training to represent missing data. These artificial tokens are completely absent during inference, creating a gap that limits the model's ultimate generative capacity.
- Fuzzy Relations: Mask reconstruction is an intra-image task (predicting pixels from neighboring pixels), whereas generative diffusion is an inter-image translation task (mapping noise distributions to data distributions). Jointly training both tasks in the same decoder causes them to compete, with the reconstruction task often overwhelming the generative task in later training stages.
Methods
The authors introduce SD-DiT (Self-supervised Discrimination Diffusion Transformer), which reframes mask modeling as a teacher-student discrimination task rather than a pixel reconstruction task.
Key components of the architecture include:
- Teacher-Student Framework: The model consists of a student encoder-decoder and a teacher encoder. The teacher encoder's weights are updated as an Exponential Moving Average (EMA) of the student encoder, requiring no gradient backpropagation.
- Decoupled Architecture: The encoder and decoder are separated to handle different objectives. The encoders handle the discriminative task, while the decoder solely handles the generative diffusion task.
- Discriminative Pairs & Masking: The student encoder receives a heavily noised image ($X_{\sigma_S}$) with a random mask applied, processing only the visible patches. The teacher encoder receives the same image but with a fixed minimum noise level ($X_{\sigma_{min}}$) and no mask.
- Self-Supervised Discrimination Loss: Instead of using a decoder to fill in missing pixels, a discriminative loss (inspired by DINO and iBOT) directly aligns the embedding distributions of the visible tokens between the student and teacher encoders.
- Clean Generative Pipeline: To feed the student tokens into the decoder for the standard diffusion loss, the missing patches are simply filled back in using the original noised invisible patches—completely bypassing the need for artificial mask tokens.
Datasets
The model was trained and evaluated on the standard ImageNet-1K dataset at a $256 \times 256$ resolution for class-conditional image generation.
Key Insights and Ideas
- Inter-Image Alignment over Intra-Image Reconstruction: Aligning a highly noised student view with a clean teacher view forces the encoder to learn semantic, inter-image translations. This aligns much better with the core objective of diffusion models than localized pixel patching.
- Eliminating the Mask Token: By re-inserting the actual noised invisible patches back into the token stream before the decoder, the architecture completely eliminates the training-inference discrepancy. The decoder sees the exact same token structure during both training and inference.
- The InfoMin Principle for Noise: The authors discovered that the teacher network performs best when its input noise is kept at a fixed minimum ($\sigma_{min} = 0.002$). If the teacher's noise distribution matches the student's, the performance degrades significantly because the mutual information gap between the two views becomes too narrow for effective self-supervised learning.
Key Results
SD-DiT achieves an exceptional trade-off between training speed and generative performance (measured by Frechet Inception Distance, or FID).
- 5x Convergence Speedup: On the large-scale backbone (DiT-XL/2), SD-DiT trained for 1,300k steps achieved an FID of 9.01, outperforming the standard DiT trained for 7,000k steps (FID: 9.62).
- Superior Performance Across Scales: Under fair comparison conditions (same batch size of 256), SD-DiT consistently outperformed competing acceleration methods like MDT and MaskDiT across Small, Base, and XL model sizes.
| Method (Small Backbone) | Training Steps | FID-50K ↓ |
|---|---|---|
| DiT-S/2 | 400k | 68.40 |
| MDT-S/2 | 400k | 53.46 |
| SD-DiT-S/2 (Ours) | 400k | 48.39 |
Limitations and Future Work
The authors do not explicitly detail limitations in the text. However, based on the experimental setup, the method has currently only been validated on class-conditional image generation using ImageNet. Promising future directions implicitly include scaling this self-supervised discrimination framework to large-scale text-to-image generation and video synthesis models.
Summary updated