REPA 直到失效为止:早期停止的整体对齐加速扩散训练
REPA Works Until It Doesn't: Early-Stopped, Holistic Alignment Supercharges Diffusion Training
AI总结:
针对扩散变换器训练后期因教师模型容量不匹配而性能停滞的问题,提出两阶段整体对齐调度 HASTE,早期蒸馏加速收敛,后期终止对齐释放生成能力,实现 28 倍训练加速。
摘要:
扩散变换器(DiTs)实现了最先进的图像质量,但其训练仍然以缓慢著称。最近的补救措施——表示对齐(REPA),将 DiT 的隐藏特征与非生成式教师模型(如 DINO)的特征进行匹配——极大地加速了早期训练阶段,但在后期却趋于平稳甚至性能下降。我们将这一失败归因于容量不匹配:一旦生成式学生模型开始对联合数据分布进行建模,教师模型的低维嵌入和注意力模式就变成了束缚而非指导。我们随后引入了 HASTE(分阶段终止的整体对齐以实现高效训练),这是一种两阶段调度,既保留了帮助,又去除了阻碍。第一阶段应用整体对齐损失,同时将教师模型的注意力图(关系先验)和特征投影(语义锚点)蒸馏到 DiT 的中层,从而实现快速收敛。第二阶段则进行一次性终止,一旦达到简单的触发条件(如固定的迭代次数),就停用对齐损失,使 DiT 能够专注于去噪并利用其生成能力。HASTE 在不改变架构的情况下加速了多种 DiT 的训练。在 ImageNet 256X256 上,它在 50 个 epoch 内达到了 vanilla SiT-XL/2 基线的 FID,并在 500 个 epoch 内匹配了 REPA 的最佳 FID,相当于优化步骤减少了 28 倍。HASTE 还改进了 MS-COCO 上的文本到图像 DiT,证明了其作为一种简单而有效的扩散训练方法的普适性。我们的代码可在 https://github.com/NUS-HPC-AI-Lab/HASTE 获取。
英文摘要:
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. 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 .
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。