T-BGMP: An Empirical Characterization of Key-Layer Protection for KV-Cache Quantization Failure Recovery
Long-context large language model inference is increasingly constrained by key–value (KV) cache growth. Quantizing the cache reduces memory use, but aggressive low-bit policies can corrupt retrieval that succeeds with 16-bit floating-point (FP16) storage. Raising precision uniformly can restore quality while sacrificing much of the intended saving. It is therefore important to determine whether these failures concentrate in a small set of sensitive key layers and how much selective protection is required. T-BGMP provides a recovery-oriented characterization based on empirical key-layer distortion risk. It ranks layers and applies a first-success Top-k sweep to measure the minimum protection budget for each conditional failure. Across four core evaluation models, this diagnostic recovers all 183 FP16-correct failures induced by aggressive quantization. On Qwen3-4B and Qwen2.5-3B, risk-ranked protection recovers all 72 failures per model, whereas same-budget Random-k and Bottom-k recover at most 2.7% and 1.4%, respectively. Proactive and broader-task evaluations show that calibration-derived protection can transfer to unseen requests and related retrieval tasks, while additional model-family evaluations reveal model-dependent boundaries. Ziqi Zhao and Zhenghao Jiang contributed equally. Corresponding author: Pascal Lefevre.
Authors
- Pascal Lefevre
- Ziqi Zhao
- Zhenghao Jiang
Institutions
- Xi’an Jiaotong-Liverpool University (CN)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-29
- DOI
- https://doi.org/10.5281/zenodo.24649107
- Primary Topic
- Advanced Neural Network Applications
- Type
- preprint