U-REPA: Aligning Diffusion U-Nets to ViTs

Yu-Chuan Tian, Han-Ting Chen, Meng-Yu Zheng, Yuchen Liang, Chao Xu +1 more
3/1/2025
36 citations
diffusion-flowtransformer-attention

Official code: YuchuanTian/U-REPA (44 stars).

Abstract

Representation Alignment (REPA) that aligns Diffusion Transformer (DiT) hidden-states with ViT visual encoders has proven highly effective in DiT training, demonstrating superior convergence properties, but it has not been validated on the canonical diffusion U-Net architecture that shows faster convergence compared to DiTs. However, adapting REPA to U-Net architectures presents unique challenges: (1) different block functionalities necessitate revised alignment strategies; (2) spatial-dimension inconsistencies emerge from U-Net's spatial downsampling operations; (3) space gaps between U-Net and ViT hinder the effectiveness of tokenwise alignment.

Show full abstract

To encounter these challenges, we propose \textbf{U-REPA}, a representation alignment paradigm that bridges U-Net hidden states and ViT features as follows: Firstly, we propose via observation that due to skip connection, the middle stage of U-Net is the best alignment option. Secondly, we propose upsampling of U-Net features after passing them through MLPs. Thirdly, we observe difficulty when performing tokenwise similarity alignment, and further introduces a manifold loss that regularizes the relative similarity between samples. Experiments indicate that the resulting U-REPA could achieve excellent generation quality and greatly accelerates the convergence speed. With CFG guidance interval, U-REPA could reach $FID<1.5$ in 200 epochs or 1M iterations on ImageNet 256 $\times$ 256, and needs only half the total epochs to perform better than REPA under sd-vae-ft-ema. Codes: https://github.com/YuchuanTian/U-REPA

View on arXivView PDF

Code Implementations(1)

YuchuanTian/U-REPAOfficial100%

[NeurIPS 2025] U-REPA: Aligning Diffusion U-Nets to ViTs

441

Similar Papers

Cite this paper

@article{tian2025urepa,
  title  = {U-REPA: Aligning Diffusion U-Nets to ViTs},
  author = {Yu-Chuan Tian and Han-Ting Chen and Meng-Yu Zheng and Yuchen Liang and Chao Xu and Yunhe Wang},
  year   = {2025},
  eprint = {2503.18414},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2503.18414},
  url    = {https://doi.org/10.48550/arXiv.2503.18414},
  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/2503.18414.svg)](https://codeofpaper.com/paper/2503.18414)

Discussion