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

量化KV缓存维护测试:编码布局与历史恢复

Testing Quantized KV-Cache Maintenance: Encoding Layout and Historical Restoration

Harbin Institute of Technology(哈尔滨工业大学)

Ziyang Huang, Songwei Wu

AI总结:

该研究测试量化KV缓存维护的编码布局与历史恢复,发现固定量化KV缓存实现中存在布局依赖漂移、前缀视图扩展改变历史等问题,同步可恢复契约,陈旧调用者仅改logits不影响贪心token。

摘要:

重复行后选择原始内容会保留依赖布局的漂移,即便编码数量相等。我们测量现有检查在固定量化KV缓存实现中无法建立保存契约的情况。在4位HQQ轴零、16个周期下,Qwen3-1.7B的配对相对L2中位数较同形状重编码增加7.22个百分点,SmolLM3-3B则增加11.59个百分点。匹配的编码状态在每个模型的1个和16个周期下覆盖16个共享问题。轴一与形状保留控制匹配;惰性重排保留初始状态。在一个已知输入上,固定更新次数保留差异;保留组成员可消除差异。我们的前缀视图扩展通过当前前缀检查,但在残差容量4和128的6种模型/编解码器设置中改变历史与下一个logits。公共查找达到该边界,包括4个预提交的project-new GPU输入中的1个;固定查询交换隔离条件性旧历史效应。检查点/密集回滚是精确的。显式延迟查找客户端允许受支持的129-token路径,该路径在一个已知上下文中被原生AR排除。失败的任务危害扩展排除了总体失败率或一般答案退化的主张。原生MLX-LM夹具暴露陈旧的调用者缓存;同步恢复测试的就地契约,同时保留原生计算。在拒绝测试中,陈旧调用者改变logits但不改变贪心token。

英文摘要:

Repeating rows then selecting originals retains layout-dependent drift despite equal encoding counts. We measure when existing checks fail to establish preservation contracts in fixed quantized KV-cache implementations. In four-bit HQQ axis zero at sixteen cycles, median paired relative-L2 increases over same-shape re-encoding are 7.22 percentage points for Qwen3-1.7B and 11.59 for SmolLM3-3B. Matched encoded states cover sixteen shared questions per model at one and sixteen cycles. Axis one matches the shape-preserving control; lazy reorders preserve the initial state. On one known input, fixed update counts retain the difference; preserving group members removes it. Our prefix-view extension passes current-prefix checks yet changes history and next logits in six model/codec settings at residual capacities four and 128. Public lookup reaches this boundary, including one of four precommitted project-new GPU inputs; fixed query swaps isolate a conditional old-history effect. Checkpoint/dense rollback is exact. An explicit delayed lookup client admits a supported 129-token path excluded by native AR on one known context. Failed task-harm expansion precludes population failure-rate or general answer-degradation claims. Native MLX-LM fixtures expose stale caller caches; synchronization restores the tested in-place contract with native computations preserved. In rejection tests, stale callers change logits but not greedy tokens.

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

↑