REPA Works Until It Doesn't: Early-Stopped, Holistic Alignment Supercharges Diffusion Training

Zi-Qiao Wang, Wang-Bo Zhao, Yuhao Zhou, Ze-Kai Li, Zhi-Yuan Liang +7 more
5/1/2025
45 citations
diffusion-flowtransformer-attention

Official code: NUS-HPC-AI-Lab/HASTE (42 stars, Python, last commit 2025-05-28).

Abstract

Diffusion Transformers (DiTs) deliver state-of-the-art image quality, yet their training remains notoriously slow. A recent remedy -- representation alignment (REPA) that matches DiT hidden features to those of a non-generative teacher (e.g.

Show full abstract

DINO) -- dramatically accelerates the early epochs but plateaus or even degrades performance later. We trace this failure to a capacity mismatch: once the generative student begins modelling the joint data distribution, the teacher's lower-dimensional embeddings and attention patterns become a straitjacket rather than a guide. We then introduce HASTE (Holistic Alignment with Stage-wise Termination for Efficient training), a two-phase schedule that keeps the help and drops the hindrance. Phase I applies a holistic alignment loss that simultaneously distills attention maps (relational priors) and feature projections (semantic anchors) from the teacher into mid-level layers of the DiT, yielding rapid convergence. Phase II then performs one-shot termination that deactivates the alignment loss, once a simple trigger such as a fixed iteration is hit, freeing the DiT to focus on denoising and exploit its generative capacity. HASTE speeds up training of diverse DiTs without architecture changes. On ImageNet 256X256, it reaches the vanilla SiT-XL/2 baseline FID in 50 epochs and matches REPA's best FID in 500 epochs, amounting to a 28X reduction in optimization steps. HASTE also improves text-to-image DiTs on MS-COCO, demonstrating to be a simple yet principled recipe for efficient diffusion training across various tasks. Our code is available at https://github.com/NUS-HPC-AI-Lab/HASTE .

View on arXivView PDF

Code Implementations(1)

422Python, ShellMay 22, 20251 years ago

Similar Papers

Cite this paper

@article{wang2025repa,
  title  = {REPA Works Until It Doesn't: Early-Stopped, Holistic Alignment Supercharges Diffusion Training},
  author = {Zi-Qiao Wang and Wang-Bo Zhao and Yuhao Zhou and Ze-Kai Li and Zhi-Yuan Liang and Ming-Jia Shi and Xuan-Lei Zhao and P. Zhou and Kai-Peng Zhang and Zhang-Yang Wang and Kai Wang and Yang You},
  year   = {2025},
  eprint = {2505.16792},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2505.16792},
  url    = {https://doi.org/10.48550/arXiv.2505.16792},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.16792.svg)](https://codeofpaper.com/paper/2505.16792)

Discussion