arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.05755cs.CVcs.GR
收藏

分解蒸馏:扩散模型的可解释单遍引导

Decompose the Distillation: Interpretable Single-Pass Guidance for Diffusion Models

Northeastern University(东北大学)

Wuyang Zhang, Xiaolin Xu

AI总结:

本研究提出CtrlFlow单遍引导方法,保留扩散模型CFG的可分离基础流与引导方向,通过LoRA适配器和多尺度蒸馏损失降低推理误差,实现可调整的高效条件图像生成。

摘要:

无分类器引导(Classifier-Free Guidance,CFG)是扩散模型条件图像生成中广泛使用的推理时引导规则,它提供了一个引导尺度,用于在训练后调整条件强度。这种灵活性要求在每个采样步骤进行条件和无条件模型评估,因此N步轨迹需要2N次前向传播。单遍替代方法降低了此类成本,但大多数将CFG的两个组件合并为一个不透明的引导预测,丢失了支持每步控制和诊断的可分离基础流与引导方向,即使尺度仍可调整。本研究提出CtrlFlow,一种单遍引导方法,它保留了CFG的可分离基础流和引导方向接口。为了以单遍成本保留两个组件,CtrlFlow在冻结的主干网络上附加了两个轻量级LoRA适配器,每个适配器增加2.5%的参数,通过共享冻结主干的一次前向传播预测基础流和引导方向。由于引导尺度仅在前向传播后乘以引导方向,一次评估即可得到任意尺度下的引导速度,因此单个训练好的检查点在推理时无需重新训练即可保持可调整性。保留两个输出会引入训练不匹配:推理时会通过所选尺度放大引导方向误差,而朴素的组件式损失会同等加权两个输出。为了使训练与这种组合的推理时误差对齐,CtrlFlow使用了统一的多尺度蒸馏损失。在极端尺度下,残余引导误差仍可能存在,此时即使微小的引导方向误差也会被引导尺度放大。为了减少这种推理时误差,CtrlFlow应用了尺度自适应调制以抑制速度场误差,并应用时间网格扭曲以在轨迹变化最剧烈的地方集中求解器评估。

英文摘要:

Classifier-Free Guidance is a widely used inference-time guidance rule for conditional image generation with diffusion models, which exposes a guidance scale that adjusts conditioning strength after training. This flexibility requires conditional and unconditional model evaluations at every sampling step, so an N-step trajectory takes 2N forward passes. Single-pass alternatives reduce such cost, yet most collapse CFG's two components into one opaque guided prediction, losing the separable base flow and guidance direction that support per-step control and diagnostics, even when the scale remains adjustable. This work introduces CtrlFlow, a single-pass guidance method that preserves CFG's separable base-flow and guidance-direction interface. To preserve both components at one-pass cost, CtrlFlow attaches two lightweight LoRA adapters to a frozen backbone, each adding 2.5% parameters, and predicts the base flow and guidance direction from one pass of the shared frozen backbone. Because the guidance scale multiplies the guidance direction only after the forward pass, one evaluation yields the guided velocity at any scale, so a single trained checkpoint remains adjustable at inference without retraining. Preserving two outputs introduces a training mismatch: inference amplifies guidance-direction errors by the chosen scale, while naive component-wise losses weight both outputs equally. To align training with this composed inference-time error, CtrlFlow uses a unified multi-scale distillation loss. Residual guidance errors can still persist at extreme scales, where even small guidance-direction errors are amplified by the guidance scale. To reduce this inference-time error, CtrlFlow applies scale-adaptive modulation to damp velocity-field errors and time-grid warping to concentrate solver evaluations where the trajectory changes most rapidly.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑