PACE: Periodic and Channel-Aligned Encoding of Four-Bit Recurrent States
Abstract
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. 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.
Create a lesson
Metadata
- Comments
- 11 pages, 6 tables, 7 figures
Related papers
Ontology-Compiled 2D Clinical State Fields with Bidirectional Diffusion Encoders for Zero-Training Cross-Ontology Medical Coding
Shared title terminologycs.CLZeqiang Wang
ModernELECTRA: Replaced-Token Detection with Boundary-Window Reconstruction for Compact Encoders that Classify and Embed
Shared title terminologycs.CLMykhailo Shtopko, Ihor Stepanov, Dmytro Vodianytskyi et al.
LeanReviewBench: Semantic Alignment Review in Mathematical Lean Projects
Shared title terminologycs.CLRuichen Qiu, Hao Shen, Lihong Zhi et al.
PCC: Pivotal Channel Compensation for Layer Pruning of Large Language Models
Shared title terminologycs.CLXiangqian Wang, Yucheng Zhang, Zhaohong Jia et al.
Parameter-Efficient Vocabulary Expansion via Cross-Lingual Embedding Alignment
Shared title terminologycs.CLAndrew Ivan Soegeng, Muhammad Reza Qorib, Weishi Wang et al.
The Answer Is Not the State: Trajectory-Level Corrigibility in Diffusion Language Models
Shared title terminologycs.CLJunchi Liao, Wentao Li