分数衰减KV缓存:面向对话系统推理相关性的所有权感知内存管理 Fractional Decay KV-Cache: Ownership-Aware Memory Management for Improved Inference Relevancy in Dialog Systems 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-06-09
👁️ 预览文献
💡 AI 中文简介
对话系统推理时,KV缓存管理常忽略话题变化。本文提出FD-KVC算法,为每个缓存条目维护双通道评分:累积注意力通道记录历史重要性,近期加权相关通道通过时间衰减和强化更新快速适应话题切换。算法完全在CPU运行,开销极小。在五个多轮对话场景(各600段对话)中,FD-KVC在后期对齐上比H2O提升6.7%,话题切换提升127%,渐进演化提升87%,混合话题提升30%,适应新话题速度快3.6倍,话题多样性达80.6%。
领域自然语言处理/对话系统
适合谁读需要一定专业背景
核心贡献提出双通道评分机制,结合累积注意力与近期加权相关,实现历史重要信息保留与话题快速适应;设计所有权损失驱动的自适应学习率,确保收敛无振荡。
关键数据在五个多轮对话场景(各600段对话)中,后期对齐比H2O提升6.7%,话题切换提升127%,渐进演化提升87%,混合话题提升30%;适应新话题速度快3.6倍;话题多样性80.6%;CPU运行,开销可忽略。
推荐理由如果你在优化对话系统的推理效率,这篇论文用巧妙的双通道评分让KV缓存既记住重要历史又能快速跟上话题切换,效果显著且几乎不增加开销,值得一读。
关键词["KV缓存", "对话系统", "内存管理", "注意力机制", "话题适应", "推理优化"]

原文摘要

查看英文原文摘要

Key-value (KV) caching is essential for efficient autoregressive inference in transformer based dialog systems, yet existing strategies treat all cached entries uniformly or apply coarse eviction heuristics that fail to adapt as dialog topics evolve. We propose Fractional Decay KV-Cache (FD-KVC), a novel algorithm that maintains a dual-channel scoring mechanism for each cached KV pair: a cumulative attention channel that tracks aggregate importance (akin to H2O), and a recency-weighted relevance channel governed by temporal decay and reinforcement-inspired updates. The combination enables FD-KVC to both preserve historically important tokens and rapidly adapt when dialog topics shift. An adaptive learning rate driven by an ownership loss function ensures convergence without oscillation. FD-KVC operates entirely on CPU with negligible overhead. Across five diverse multi-turn dialog scenarios with 600 dialogs each, FD-KVC outperforms H2O, the state-of-the-art heavy-hitter baseline, by +6.7% on composite late-turn alignment, with improvements of +127% on topic-shift, +87% on gradual evolution, and +30% on mixed-topic dialogs. FD-KVC adapts to new topics 3.6X faster than H2O and achieves the highest topic diversity (80.6%) across all methods. Ablation studies confirm the contribution of each component.