NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SD-DiT: Unleashing the Power of Self-supervised Discrimination in Diffusion Transformer

Rui Zhu, Yingwei Pan, Yehao Li, Ting Yao, Zhenglong Sun, Tao Mei, Chang Wen Chen

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:

  1. 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.
  2. 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.

Figure 1. Conceptual comparison between (a) our SD-DiT and (b) MaskDiT. MaskDiT integrates generative diffusion process with mask reconstruction auxiliary task, and the whole DiT encoder plus decoder are jointly optimized for the two tasks. In contrast, our SD-DiT frames mask modeling on the basis of discrimina- tion knowledge distilling in a self-supervised manner, pursuing the inter-image alignment in the joint embedding space of teacher and student encoder. DiT encoder and decoder are decoupled to sepa- rately tackle discriminative and generative diffusion objectives.

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.
Figure 2. The overview of our SD-DiT. During training, the stu- dent view is diffused with regular noise as in EDM formulation, while the teacher view is derived from fixed minimum noise of the consistency function that is close to real data distribution. SD-DiT feeds the discriminative pair into teacher and student DiT encoders to perform self-supervised discriminative process within the joint embedding space. Meanwhile, only the student DiT encoder and DiT decoder undertake the generative diffusion process. At infer- ence, all patches are fed into student branch for sampling.

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
Figure 3. Training speed (training steps per second) vs. gener- ative performance (FID-50K score) for our SD-DiT, MDT, DiT, and MaskDiT on 8 × A100 GPUs. We also label each run with the number of input patches.

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

BibTeX
@inproceedings{zhu2024sd,
  author = {Rui Zhu and Yingwei Pan and Yehao Li and Ting Yao and Zhenglong Sun and Tao Mei and Chang Wen Chen},
  title = {{SD-DiT: Unleashing the Power of Self-supervised Discrimination in Diffusion Transformer}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  url = {https://openreview.net/forum?id=1yo1HXtG4R},
}
Figure