TaRo:用于高效流式视频-语言模型的排名靠前KV缓存条目的时间复用
TaRo: Temporal Reuse of Top-Ranked KV Cache Entries for Efficient Streaming Video-Language Models
AI总结:
TaRo是一种无需训练的KV缓存时间复用方法,通过复用跨帧对应视觉标记位置的KV候选库提升流式视频-语言模型效率,在多个基准上实现了速度提升且延迟增长更小。
摘要:
选择性注意力可减少流式视频-语言模型使用的键值(KV)条目数量,但查找这些条目仍需对不断增长的历史进行重复搜索。随着帧的累积,绝对延迟及其随历史长度的增长对流式处理效率都很重要。我们提出TaRo,一种无需训练的方法,该方法在各帧对应视觉标记位置复用KV候选库,同时保留完整的KV历史。当前查询会与当前帧的因果键一起对库候选进行重新评分,以选择注意力的前k个条目。当查询相似度低于阈值或库达到使用期限时,全历史搜索会刷新该库。在使用OVO-Bench和StreamingBench子集的两个模型上进行评估,TaRo相比ReKV实现了1.37倍至3.58倍的大语言模型预填充速度提升,准确率变化范围为-4.60至+6.59个百分点;与精确前k方法相比,TaRo在KV历史增长时表现出更小的延迟增长。
英文摘要:
Selective attention reduces the number of key-value (KV) entries used by streaming video-language models, but finding those entries can still require repeated search over a growing history. As frames accumulate, both absolute latency and its increase with history length matter for streaming efficiency. We propose TaRo, a training-free method that reuses KV candidate banks at corresponding visual-token positions across frames while retaining the complete KV history. The current query rescores bank candidates together with the current frame's causal keys to select the top-k entries for attention. Full-history search refreshes a bank when query similarity falls below a threshold or the bank reaches an age limit. Evaluated on two models using subsets of OVO-Bench and StreamingBench, TaRo achieves 1.37x to 3.58x LLM-prefill speedups over ReKV, with accuracy changes ranging from -4.60 to +6.59 percentage points. Compared with Exact Top-k, TaRo also exhibits smaller latency growth as KV history increases.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。