SoftCap: 扩散Transformer加速的软预算控制
BeCARE: Budgeted Cache Refresh for Diffusion Transformer Acceleration
AI总结:
提出一种无需训练的软预算控制层SoftCap,通过轨迹漂移观测器和软预算PI控制器动态调整全步触发阈值,在保持计算预算软上限的同时提升图像质量。
摘要:
扩散Transformer(DiTs)实现了强大的视觉质量,但其迭代去噪过程需要大量昂贵的Transformer评估。无训练加速方法通过缓存、预测或验证中间特征来降低这一成本,然而何时执行全步的运行时决策通常由固定调度或手动调整的阈值驱动。我们提出 extbf{SoftCap},一种用于基于缓存的DiT推理的无训练控制层。SoftCap将轨迹漂移观测器(通过轻量级隐藏状态统计估计局部缓存风险)与软预算PI控制器(根据相对于固定参考配置的实际计算调整全步触发阈值)相结合。预算是软上限:它塑造阈值,但不要求运行消耗预定数量的全步评估。在FLUX.1-dev上,在可比的中等计算操作点下,SoftCap优于SpeCa,在几乎相同的FLOPs下将ImageReward从0.967提升至0.981,并将LPIPS-Full从0.518降至0.498,而目标扫描诊断显示随着预算放宽,预期的软上限行为得以实现。
英文摘要:
Training-free feature caching accelerates diffusion transformer (DiT) inference by reusing or forecasting intermediate features. However, fixed schedules make compute predictable but ignore prompt- and timestep-dependent risk, whereas hand-tuned error thresholds adapt locally but leave realized compute difficult to control. To address these limitations, we present Budgeted Cache Refresh (BeCARE), a training-free framework that, given a user-specified cap on full computations, adaptively determines when to refresh the cache during accelerated inference. Specifically, we first derive an error-amplification profile from the sampler's noise schedule to characterize the varying impact of approximation errors across denoising timesteps. We then combine this profile with prompt-specific extrapolation residuals and cache age to form an accumulated risk score, triggering a refresh when continued caching becomes harmful. Meanwhile, we use the same profile to construct an analytic spending reference and adjust the refresh threshold through feedback, thereby distributing the limited refresh budget over the sampling trajectory. Finally, structural safeguards (a fixed warmup, a budget-derived late-stage reserve, and a maximum cache-reuse length) prevent unreliable extrapolation and premature budget exhaustion. These designs enable prompt-adaptive refresh placement and allow a single calibration to transfer across budget tiers without per-tier tuning. Experiments on FLUX.1-dev with 200 prompts and measured FLOPs show that our method consistently outperforms representative training-free caching baselines across speedups from 3x to 6x. At the main operating point (3.3x acceleration), it improves paired PSNR by 2.7 dB over the strongest baseline using no more compute. On SD3.5 Large, it also substantially improves the same Taylor cache engine over fixed-interval scheduling at matched compute.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。