arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.01648cs.CVcs.AI
收藏

dKV Forcing:通过可微分KV缓存分离生成与记忆表示

dKV Forcing: Separating Generation and Memory Representations through a Differentiable KV Cache

Georgia Institute of Technology(佐治亚理工学院)

Zhiqi Li, Bo Zhu

AI总结:

该研究提出dKV Forcing方法,通过可微分KV缓存分离视频生成的生成与记忆表示,提升了视频生成的审美质量、一致性并降低了内存开销与训练周期。

摘要:

因果视频生成器会为每个片段生成两个键值(KV)状态:去噪该片段时使用的KV,以及写入缓存供后续片段读取的KV。在预训练生成器中,这两者已存在显著差异,后续片段对它们的注意力不同,且将写入的KV替换为生成KV会降低生成延续效果。我们提出dKV Forcing(dKV表示可微分KV),通过其未来使用学习专用记忆表示:共享主干上的特定写入者低秩残差将记忆写入与生成分开,并通过所写入内容的未来读取进行训练。从未来使用中学习写入需要通过缓存的梯度,而常用的可变缓存无法提供此类梯度。dKV Forcing用带局部重计算的持久可微分页面替换训练时的缓存,在一次时间遍历中,精确计算出与同一目标的两次遍历重建所计算的梯度相同。一次遍历计算完整记忆梯度的生成器更新开销比分离写入训练高7%,驻留内存减少28%,训练周期缩短20.8%,优于两次遍历重建。与Self Gradient Forcing(SGF,即采用相同遍历训练同一目标的方法)相比,写入者适配在60秒时将VBench-Long审美质量提升6.6个百分点,在240秒时提升8.5个百分点,同时保持最高的主体与背景一致性,且残差的展开弃权(不执行)在恢复无写入梯度训练的运动的同时保留了大部分增益。

英文摘要:

A causal video generator writes every segment it produces into a key--value (KV) cache, and later segments know the past only through it. Self-rollout training stops the gradient at this cache, and Self Gradient Forcing (SGF) restores it, but applies it to the same weights that generate the current segment. We find that writing and generating are different roles: in a pretrained generator the written KV already differs from the KV used for denoising, and on shared weights the gradient from future reads is negatively aligned with the gradient of generation. We propose dKV Forcing (dKV denotes differentiable KV), which gives the write its own parameters, a low-rank residual used only when a segment enters the cache, and trains them with the gradient of the later segments that read what they wrote. Opening this gradient through the cache in common use exhausts GPU memory. We trace this to checkpoint replay re-writing the cache, not to the gradient path, which removes the need for the second reconstruction pass of SGF. dKV Forcing keeps the cache as persistent differentiable pages and computes the exact gradient in one temporal traversal, with an $11\%$ lower memory peak and $28\%$ less resident memory. With pages that store hidden states, it trains 15\,s clips on which the two-pass reconstruction runs out of memory. Trained on 5\,s clips, dKV Forcing reaches the highest VBench-Long quality score at 60\,s and 240\,s and outperforms SGF by $3.6$ and $6.1$ points of aesthetic quality, with a higher dynamic degree.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑