跳到正文
arXiv (AI + Vision + Imaging)· Ziyang Huang, Songwei Wu·· 2 天前AI 评分18

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

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

AI 导读

研究测量了固定量化KV-Cache实现中现有检查无法建立保持契约的情形:四比特HQQ轴零在十六个周期下,Qwen3-1.7B与SmolLM3-3B的中位配对相对L2较同形状重编码分别上升7.22和11.59个百分点。

正文 · 原文

arXiv:2611.30720v1 Announce Type: new Abstract: 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.

来源:arXiv (AI + Vision + Imaging) · arxiv.org