arXiv:2608.29107cs.LGstat.ML2026-08

动态调整生成模型的引导参数,让输出更精准。

PathGuide: Dynamic Classifier-Free Guidance via On-Policy Transport Alignment

论文配图:PathGuide: Dynamic Classifier-Free Guidance via On-Policy Transport Alignment
图 1 · 摘自论文原文
  • 将引导参数选择转为路径优化问题,实现在线动态调节
  • 推导出严格二次的局部目标函数,每步可闭式求解
  • 在图像生成中提升路径对齐与样本质量,适合高精度控制场景

尽管现代生成模型能有效建模复杂数据,但在条件生成中实现精确的推理阶段控制仍具挑战。分类器无关引导(CFG)是主要调控机制,但通常作为静态超参数处理。在基于流的模型中,引导尺度本质上决定了速度场和生成概率路径,使引导选择成为动态路径优化问题。本文提出PathGuide,将标量CFG选择重构为一种在线策略运输问题。利用连续性方程的弱形式,我们推导出具有直接路径正确性解释的选择准则:若引导场在生成轨迹上弱等价于精确条件场,则采样路径与目标条件分布一致。对于标量CFG,该准则产生严格二次的局部目标,且在每个求解区间有高效闭式选择器。PathGuide支持在生成过程中在线计算最优引导尺度,或离线拟合为可复用的分段常数调度。我们在低分辨率图像流形和多种连续时间流结构的受控设置下验证方法,结果表明,该基于运输的选择器在路径对齐和样本保真度上均优于固定及当前最先进的自适应引导基线。

原文摘要 · Abstract (English)

While modern generative models excel at modeling complex data, precise inference-time control in conditional generation remains a critical challenge. Classifier-free guidance (CFG) is a primary mechanism for such control, yet it is typically treated as a static tuning parameter. In flow-based models, however, the guidance scale fundamentally dictates the velocity field and the resulting probability path, making guidance selection a dynamic path-optimization problem. We introduce PathGuide, a framework that reformulates scalar CFG selection as an on-policy transport problem. Leveraging the weak form of the continuity equation, we derive a selection criterion with a direct path-correctness interpretation: we prove that if the guided field is weakly equivalent to the exact conditional field along the generated rollout, the sampler's path coincides with the target conditional law. For scalar CFG, this criterion yields a strictly quadratic local objective with an efficient, closed-form selector for each solver interval. PathGuide enables optimal guidance scales to be computed and used online during generation or fitted offline as a reusable piecewise-constant schedule. We validate our method on low-resolution image manifolds and controlled settings across various continuous-time flow constructions, demonstrating that this transport-based selector improves path alignment and sample fidelity over both fixed and state-of-the-art adaptive guidance baselines.

生成模型条件生成动态引导流模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。