PACE:四比特循环状态的周期性与通道对齐编码

·

研究论文 · 2026/10/22

PACE 是一种针对线性注意力语言模型的后处理四比特状态量化器。它每隔几个生成的 token 才对循环状态进行一次舍入(而非每个 token 后都舍入),并将中间 token 保留在小缓冲区中,从而减少状态中累积的误差。此外,PACE 发现门控增量状态的大条目按列聚集,因此在同一列内共享量化尺度,并将保留舍入误差最久的头保持为八比特。在四个 4B 到 35B 参数的混合模型上,PACE 的混合四/八比特头版本在三个较大模型上以约三分之二的内存达到与八比特 DAMP 相当的性能;全四比特头的 PACE 在同等内存下得分高于 Q-Mamba,且每隔几个 token 舍入一次保持了缓冲区的解码加速。

PACE 通过降低舍入频率和利用状态结构,实现了高效的四比特状态量化,在显著减少内存占用的同时保持模型精度和解码速度,对部署长上下文语言模型具有实用价值。

Linear-attention language models keep their context in a recurrent state of fixed size, where an inference system stores one copy of this state for every sequence it decodes at the same time. Storing the state at lower precision therefore lets more sequences share an accelerator. Existing state quantizers round the state after every generated token and report that four bits lose accuracy unless the bit width is raised or the model is fine-tuned.\par We introduce PACE, a post-hoc four-bit state quantizer. PACE rounds the state only once every few generated tokens, as chunked kernels already do once per chunk during prefill, and keeps the tokens generated in between in a small buffer. Rounding less often reduces the error that accumulates in the state. Additionally, we find that the large entries of the gated-delta state gather in columns, because some channels of the update written at each token remain large across many tokens. PACE therefore shares each quantization scale within one column. It also keeps the heads that retain rounding error longest at eight bits. On four hybrid models from 4B to 35B parameters, PACE with mixed four- and eight-bit heads is competitive with eight-bit DAMP on the three larger models at about two thirds of its memory, PACE with four-bit heads throughout scores higher than Q-Mamba at equal memory, and rounding every few tokens preserves the decoding speedup of the buffer.

阅读原文

参与讨论