DraftKV:通过分层流检索保护持久世界
DraftKV: Protecting Persistent Worlds through Hierarchical Streaming Retrieval
AI总结:
DraftKV是一种无需训练的框架,通过分层流检索历史KV缓存,结合CPU卸载与分块流式注意力,在提升交互式视频世界模型生成质量与一致性的同时,实现了3.27倍端到端加速及42.2%峰值GPU内存减少。
摘要:
交互式视频世界模型支持基于动作和相机控制的探索,但在重新访问先前探索过的位置时,难以维持一致的空间几何结构和外观。历史KV缓存有助于自回归视频扩散模型维持长期一致性,但随着历史增长,其检索和注意力计算会引入大量延迟。我们提出DraftKV,这是一种无需训练的框架,它基于几何定位和查询条件相关性检索历史KV缓存,同时结合CPU卸载和分块流式注意力以减少GPU内存使用和推理延迟。理论上,我们证明 draft 相关性精确复现了全分辨率块相关性的均值分支,因此其偏差被限制在β加权的最大分支中,我们根据测得的Top-K选择重叠来界定检索效用损失。我们进一步证明,无论相机姿态如何,draft 相关性无法区分具有相似池化描述符的块,这促使在细化前进行几何定位。然后,我们引入流式CG-Attention,它通过分块流式将CPU到GPU的KV传输与注意力计算重叠,在维持有界GPU内存使用的同时隐藏传输延迟。在不同模型系列上的实验表明,DraftKV实现了更优的生成质量和一致性,相比其他CPU卸载的KV缓存检索方法,实现了3.27倍的端到端加速和42.2%的峰值GPU内存减少。值得注意的是,DraftKV可在单个H100 GPU上使用SolarWM-33B实现基于历史KV检索的高质量交互式世界生成。
英文摘要:
Interactive video world models enable action- and camera-controlled exploration, yet struggle to maintain consistent spatial geometry and appearance when revisiting previously explored locations. Historical KV caches help auto-regressive video diffusion models maintain long-term consistency, but their retrieval and attention computation introduce substantial latency as history grows. We propose DraftKV, a training-free framework that retrieves historical KV caches based on geometric grounding and query-conditioned relevance, while combining CPU offloading with tile-wise streaming attention to reduce GPU memory usage and inference latency. Theoretically, we show that draft relevance reproduces the mean branch of full-resolution block relevance exactly, so its deviation is confined to the $β$-weighted max branch, and we bound retrieval utility loss in terms of the measured Top-K selection overlap. We further show that draft relevance cannot distinguish blocks with similar pooled descriptors regardless of camera pose, motivating geometric grounding before refinement. Then, we introduce streaming CG-Attention, which overlaps CPU-to-GPU KV transfers with attention computation through tile-wise streaming, hiding transfer latency while maintaining bounded GPU memory usage. Experiments across diverse model families show that DraftKV achieves superior generation quality and consistency while achieving $3.27\times$ end-to-end speedup and 42.2% peak GPU memory reduction over other CPU-offloaded KV cache retrieval methods. Notably, DraftKV enables high-quality interactive world generation with historical KV retrieval on a single H100 GPU using SolarWM-33B.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。