dKV Forcing:用可微分KV Cache分离生成与记忆表征
dKV Forcing: Separating Generation and Memory Representations through a Differentiable KV Cache
dKV Forcing为因果视频生成器的KV Cache写入单独分配低秩残差参数,并用后续片段读取该缓存的梯度训练,从而把“写入”与“生成”两种角色分开。该方法将缓存作为持久可微分页、在一次时间遍历中精确计算梯度,内存峰值降低11%、常驻内存减少28%。在5s片段上训练后,其在60s和240s的VBench-Long质量得分最高,美学质量分别比SGF高3.6和6.1分。
arXiv:2611.01648v2 Announce Type: replace Abstract: 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org