Skip to content
AI Learning Ground Start learning

Research ·

PACE: Periodic and Channel-Aligned Encoding of Four-Bit Recurrent States

PACE is a post-hoc four-bit quantizer for linear-attention recurrent states that rounds less frequently and uses column-wise scales, cutting state memory without fine-tuning while staying competitive with eight-bit methods.

PACE: Periodic and Channel-Aligned Encoding of Four-Bit Recurrent States
Image: Hugging Face

Researchers introduced PACE, a post-hoc quantizer that stores the recurrent state of linear-attention language models at four bits. Existing state quantizers round after every generated token and report accuracy loss at four bits unless the bit width is raised or the model is fine-tuned. PACE instead rounds the state only once every few tokens, aligning with chunked kernels that already materialize the state once per chunk during prefill, and keeps tokens generated in between in a small buffer. Less frequent rounding reduces error accumulation in the state.

PACE also exploits a structural observation: large entries of the gated-delta state gather in columns because some channels of the per-token update stay large across many tokens. It therefore shares each quantization scale within one column and keeps the heads that retain rounding error longest at eight bits. On four hybrid models from 4B to 35B parameters, mixed four- and eight-bit PACE is competitive with eight-bit DAMP on the three larger models at about two thirds of its memory, and all-four-bit PACE scores higher than Q-Mamba at equal memory. The authors settled on an eight-token buffer as the best trade-off, with the 4B model scoring 79.1 and 79.6 average accuracy versus 80.8 at full precision.

For builders, the benefit is mainly memory per sequence rather than speed: at batch size 1 weights dominate traffic, so a four-bit state buys little. But since inference systems store one state copy per concurrently decoded sequence, lower-precision states let more sequences share an accelerator, and the approach aligns with existing KV buffering methods during decoding.

References

Read the full story at Hugging Face ↗Like, save or discuss on Buzz

#research