SpecKCast:用于扩散加速的谱卡尔曼预测

·

研究论文 · 2026/10/21

扩散Transformer(DiTs)在高质量图像和视频生成中表现出色,但推理成本高昂,因为需要在多个去噪步骤中重复评估Transformer。特征缓存通过跨去噪步骤重用特征来降低成本,而最近的预测方法则通过外推特征到跳过的步骤来扩展这一思路。然而,现有预测方法均匀地外推预测的特征,忽略了这些特征的空间频率分量在去噪不同阶段变化最大,也忽略了去噪进展不均匀,因此相等的步骤间隔可能对应非常不同的变化量。这些不匹配随着跳过步骤增多而放大预测误差,限制了可实现的加速。我们提出SpecKCast,一种无需训练的方法,在频域中预测模型输出。SpecKCast对输出应用二维离散余弦变换(DCT),并使用轻量级卡尔曼滤波器沿从噪声调度导出的频带特定时间坐标跟踪每个系数。滤波器跟踪每个系数的值及其变化率,仅当滤波器的预测不确定性超过阈值时才评估Transformer。在FLUX.1-dev、Qwen-Image、Wan2.1-14B和HunyuanVideo上的实验表明,SpecKCast在加速与保真度之间取得了比现有缓存和预测方法更好的权衡,实现了高达6倍的加速,额外内存小于0.05 GiB。

该论文针对扩散模型推理成本高的问题,提出了一种创新的频域预测加速方法,无需训练即可在多个主流模型上实现显著加速且保持高保真度,具有很高的实用价值。

Diffusion Transformers (DiTs) achieve high-fidelity image and video generation, but they suffer from substantial inference costs due to repeated transformer evaluations across many denoising steps. Feature caching reduces this cost by reusing features across denoising steps. Recent forecasting methods extend this idea by extrapolating features to skipped steps instead of reusing them. However, existing forecasting methods extrapolate the features they predict uniformly, even though the spatial-frequency components of these features change most at different stages of denoising. They also overlook that denoising progresses nonuniformly, so equal step intervals can correspond to very different amounts of change. These mismatches amplify forecast errors as more steps are skipped, limiting the achievable acceleration. We propose SpecKCast, a training-free method that forecasts the model output in the frequency domain. SpecKCast applies a 2D discrete cosine transform (DCT) to the output and tracks each coefficient with a lightweight Kalman filter along a band-specific time coordinate derived from the noise schedule. The filter tracks each coefficient's value and rate of change, and the transformer is evaluated only when the filter's forecast uncertainty exceeds a threshold. Experiments on FLUX.1-dev, Qwen-Image, Wan2.1-14B, and HunyuanVideo show that SpecKCast achieves a better trade-off between acceleration and fidelity than existing caching and forecasting methods, reaching up to 6x speedup with less than 0.05 GiB of additional memory.

阅读原文

参与讨论