面向更快自回归视频扩散的带干净锚点的飞行中KV缓存

·

研究论文 · 2026/09/29

少步自回归视频扩散通过将视频分成时间块并逐块生成来生成长视频,每个块经过短暂的降噪阶段序列。以往方法通过额外前向传播重建干净或较少噪声的键值(KV)缓存来记忆已生成的块,而不推进输出潜在变量。然而,每次降噪前向传播本身已经计算了当前块的飞行中KV。我们提出FlashForward,直接重用该缓存,避免仅用于缓存更新的繁重模型前向传播。当前块完成一个降噪阶段后,其阶段特定缓存已可用于下一个块。因此,为每个阶段分配一个GPU,可以让不同块同时占用不同阶段。这种早期可用性带来质量代价:由此产生的阶段匹配历史是嘈杂的,导致块间外观和运动漂移。作为补充,FlashForward在相应区域生成之前产生稀疏的辅助干净锚点潜在变量,从而通过这种双边条件稳定生成轨迹。两种记忆在不同时间尺度上运作:稀疏干净锚点KV提供粗略的、长程的双边结构指导,而密集的阶段匹配历史保留精细的近期演变。在最多四个GPU的情况下,FlashForward在1.3B和14B骨干规模、480p和720p下,对于20秒或更长的16 FPS视频,比HiAR快1.16-1.69倍,比Self-Forcing快1.42-2.92倍。在VBench上,对于480p的1.3B模型,它获得更高分数,并在更长持续时间下保持稳定,表明FlashForward在20秒、35秒和65秒的持续时间下以更快的生成速度生成高质量且时间一致的视频。

该工作通过重用飞行中KV缓存和引入干净锚点,显著加速了自回归视频扩散的生成,同时保持了长视频的时序一致性和高质量,为高效长视频生成提供了新思路。

Few-step autoregressive video diffusion generates a long video by splitting the video into temporal chunks and generating chunk-by-chunk, each through a short sequence of denoising stages. To memorize chunks that are already generated, previous methods reconstruct a clean or less-noisy key--value (KV) cache by additional forwards to build the cache without advancing an output latent. However, every denoising forward itself already computes the in-flight KV of the current chunk. We introduce FlashForward, which directly reuses this cache to avoid the heavy cache-update-only model forwards. After the current chunk completes one denoising stage, its stage-specific cache is already available for the next chunk. Assigning one GPU to each stage therefore lets different chunks occupy different stages concurrently. This early availability has a quality cost: the resulting stage-matched history is noisy, causing appearance and motion drift among chunks. To complement it, FlashForward produces sparse auxiliary clean anchor latents before the corresponding region is generated so the generation trajectories can be stabilized by this two-sided conditioning. The two memories operate at different temporal scales: sparse clean anchor KV supplies coarse, long-range two-sided structural guidance, while dense stage-matched history preserves fine, recent evolution. With up to four GPUs, FlashForward runs 1.16--1.69times faster than HiAR and 1.42--2.92times faster than Self-Forcing for 16 FPS videos of 20 seconds or longer across 1.3B and 14B backbone scales at 480p and 720p. On VBench, for the 1.3B model at 480p, it achieves higher scores and remains stable at longer durations, demonstrating that FlashForward generates high-quality and temporally consistent videos across durations of 20s, 35s and 65s at a much faster generation speed.

阅读原文

参与讨论