DMAD:分布匹配作为对抗蒸馏用于快速视觉生成
研究论文 · 2026/10/08
分布匹配蒸馏(DMD)通过分别估计的目标分数与学生分数之差来训练少步学生模型,因此必须保持一个辅助扩散模型拟合学生不断变化的分布,带来额外的内存和计算成本。我们提出 DMAD(Distribution Matching as Adversarial Distillation),将分布匹配重新表述为分类问题,直接学习所需的对数密度比。共享主干上的两个判别器头区分真实数据和教师样本与学生样本,其 logits 上的线性损失无需辅助分数拟合即可训练学生。我们证明,在判别器最优时,这些损失通过判别器 logits 与对数密度比之间的经典恒等式,恢复出 DMD 所依据的分布匹配梯度。我们进一步引入基于差距的重加权,根据真实数据头在真实与教师样本之间的经验 logit 差距,跨噪声水平自适应调整教师监督。DMAD 在 ImageNet-64x64 上以一步生成达到 FID 1.04,在 COCO-10K 上以四步 SDXL 达到 14.47,在四步 Wan2.1-T2V-14B 上达到 VBench 总分 85.15,为所比较的少步方法和多步教师中的最佳值。在 MiniMax-H3-33B 上,我们的四步学生在联合音视频生成中,相对于 DMD2 的总体人类偏好率为 79.1%,相对于 rCM 为 84.6%(排除平局)。我们的代码、模型和演示见 https://yzmblog.github.io/projects/DMAD。
DMAD 在无需辅助扩散模型的情况下实现了与 DMD 等价的分布匹配梯度,显著降低内存和计算成本,并在图像和视频生成任务上取得了少步方法中的最佳性能,具有重要的实用价值。
Distribution Matching Distillation (DMD) trains a few-step student from the difference between separately estimated target and student scores, so it must keep an auxiliary diffusion model fitted to the student's evolving distribution at extra memory and computation cost. We introduce DMAD, Distribution Matching as Adversarial Distillation, which recasts distribution matching as classification and learns the required log-density ratios directly. Two discriminator heads on a shared backbone distinguish real data and teacher samples from the student's, and linear losses on their logits train the student without auxiliary score fitting. We prove that at the discriminator optimum these losses recover the distribution-matching gradient underlying DMD, through the classical identity linking discriminator logits to log-density ratios. We further introduce gap-based reweighting, which adapts teacher supervision across noise levels from the real-data head's empirical logit gap between real and teacher samples. DMAD reaches a Fréchet Inception Distance (FID) of 1.04 with one-step generation on ImageNet-64x64, 14.47 with four-step SDXL on COCO-10K, and a VBench total score of 85.15 with four-step Wan2.1-T2V-14B, the best values among the compared few-step methods and the multi-step teachers. On MiniMax-H3-33B, our four-step student achieves overall human preference rates of 79.1% over DMD2 and 84.6% over rCM for joint audio-video generation, excluding ties. Our code, models and demos are available at https://yzmblog.github.io/projects/DMAD.