RoLaQ:多头潜在注意力中2比特KV缓存的联合旋转与范围校准 RoLaQ: Joint Rotation and Range Calibration for 2-Bit KV Caches in Multi-Head Latent Attention 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-14
⬇️ 1 次下载
👁️ 预览文献
💡 AI 中文简介
多头潜在注意力(MLA)将键值缓存压缩为每token的共享潜在表示,使得低比特存储对长上下文推理很有吸引力。但在2比特下,表示误差会同时干扰注意力匹配和值读取。本文提出RoLaQ,一种离线联合旋转与范围校准方法:在冻结的键值投影定义的子空间内优化共享旋转,并联合学习量化范围,使阈值与重建增益耦合以控制共享信号响应。在三个MLA模型和六个基准上,RoLaQ在2比特方法中平均准确率最高。在DeepSeek-V2-Lite上,相同内存预算下KV容量提升至BF16的3.96倍,256K输入时解码吞吐提升2.51倍。
领域深度学习模型压缩与高效推理
适合谁读需要一定专业背景(了解Transformer注意力机制和量化基础)
核心贡献1. 提出离线联合旋转与范围校准方法RoLaQ,在冻结投影定义的子空间内优化共享旋转并耦合学习量化范围与重建增益;2. 在多个MLA模型和基准上实现2比特KV缓存下的最高平均准确率,并在DeepSeek-V2-Lite上显著提升KV容量和解码吞吐。
关键数据在三个MLA模型和六个基准上,2比特方法中平均准确率最高;DeepSeek-V2-Lite上,相同内存预算下KV容量为BF16的3.96倍,256K输入时解码吞吐为BF16的2.51倍。
推荐理由如果你关注大模型长上下文推理的显存瓶颈,这篇工作用2比特KV缓存实现了近4倍容量和2.5倍吞吐,值得一读。
关键词["多头潜在注意力", "KV缓存量化", "2比特量化", "旋转校准", "长上下文推理", "低比特存储"]

原文摘要

查看英文原文摘要

Multi-head latent attention (MLA) compresses the content of a key-value cache into a shared latent per token, making low-bit storage attractive for long-context inference. At two bits, errors in this representation perturb both attention matching and value readout, with effects that depend on error direction and reconstruction scale. We introduce RoLaQ (Rotation-calibrated Latent Quantization), an offline method for joint rotation and range calibration. RoLaQ refines a shared rotation within subspaces defined by the frozen key and value projections, and jointly learns quantization ranges whose thresholds and reconstruction gains are coupled to control the shared signal's response. Prediction matching and attention-output supervision guide calibration with model weights frozen. Across three MLA models and six benchmarks, RoLaQ achieves the highest average accuracy among the compared 2-bit methods both without and with token protection. On DeepSeek-V2-Lite, an SGLang implementation provides 3.96 times the BF16 KV capacity under the same memory budget and 2.51 times its decode throughput with 256K input tokens.