[论文解读] Accelerating Diffusion via Hybrid Data-Pipeline Parallelism Based on Conditional Guidance Scheduling
论文提出一种将条件分区数据切片与自适应并行切换相结合的扩散推理混合数据管线并行性,在去噪失配引导下实现显著的低延迟,同时在 U-Net 与 DiT 架构上保持图像质量。
Diffusion models have achieved remarkable progress in high-fidelity image, video, and audio generation, yet inference remains computationally expensive. Nevertheless, current diffusion acceleration methods based on distributed parallelism suffer from noticeable generation artifacts and fail to achieve substantial acceleration proportional to the number of GPUs. Therefore, we propose a hybrid parallelism framework that combines a novel data parallel strategy, condition-based partitioning, with an optimal pipeline scheduling method, adaptive parallelism switching, to reduce generation latency and achieve high generation quality in conditional diffusion models. The key ideas are to (i) leverage the conditional and unconditional denoising paths as a new data-partitioning perspective and (ii) adaptively enable optimal pipeline parallelism according to the denoising discrepancy between these two paths. Our framework achieves $2.31 imes$ and $2.07 imes$ latency reductions on SDXL and SD3, respectively, using two NVIDIA RTX~3090 GPUs, while preserving image quality. This result confirms the generality of our approach across U-Net-based diffusion models and DiT-based flow-matching architectures. Our approach also outperforms existing methods in acceleration under high-resolution synthesis settings. Code is available at https://github.com/kaist-dmlab/Hybridiff.
研究动机与目标
- 在不重新训练或不降低质量的前提下,加速扩散推理的动机。
- 解决基于块的数据并行和静态流水线并行的局限性。
- 提出使用条件引导和自适应调度机制的双路径数据分区方法。
- 在不同架构(U-Net 与 DiT)及高分辨率设置下展示鲁棒性。
提出的方法
- 引入基于条件的分区,让条件与无条件扩散路径在多 GPU 上并行处理,以提升全局一致性。
- 定义去噪失配度量(rel-MAE_t(ε_c, ε_u)),量化条件预测与无条件预测之间的差异。
- 将推理分为三个阶段(热身、并行、全连接),并依据失配在串行与并行执行之间切换。
- 在去噪过程中通过计算的失配和安全上限自动确定切换点 τ1 和 τ2,实现自适应混合并行。
- 对失配提供理论解释,基于分数分解,与条件信息强度对比无条件数据先验相关。
- 显示通过批量级或逐层扩展实现对更多 GPU 的扩展性。

实验结果
研究问题
- RQ1条件分区是否能够在保持全局图像连贯性的同时降低边界伪影?
- RQ2在去噪失配引导的自适应切换下,是否能在不降低生成质量的前提下提升加速比?
- RQ3在不同扩散骨干(U-Net、DiT)和高分辨率合成下,这一方法的通用性有多高?
- RQ4在实际中改变并行间隔 k(或 τ1、τ2)时,速度-精度权衡如何?
主要发现
- 在使用两张 GPU 的情况下,SDXL 上实现了 2.31× 的延迟降低、SD3 上实现了 2.07×,且保持图像保真度。
- 在速度-精度权衡方面优于现有分布式推理方法,并显著降低通信成本。
- 在架构(U-Net、DiT)和高分辨率合成任务上展示鲁棒性。
- 消融实验表明,混合框架(基于条件分区 + 自适应切换)优于单纯的基于条件分区。
- 在使用 H200 GPU 的 SDXL 高分辨率实验中,速度提升在1024×1024 到 2560×2560之间保持一致。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。