Manuscript Offprint

arXiv:2610.29545

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

Patrick Haller, Filipe Laitenberger, Alan Akbik

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

Date: October 22, 2026

Correspondence: patrick.haller.1@hu-berlin.de

Humboldt-Universität zu Berlin

Figure

Figure 1: Mean performance of MMLU-Pro, IFEval and RULER-32k against resident bits per value on Qwen3.5-9B. Arrows join per-token and dP=8dP=8 rounding variants.

1 Introduction

Linear-attention language models replace the key-value cache of a Transformer with a recurrent state of fixed size and have become competitive with Transformers [31, 32]. Every recurrent layer holds one state matrix per head, and a server stores one copy for every sequence it decodes at the same time. At 64 concurrent sequences, the fp32 states take between 10 and 41% of the memory that weights and states occupy together. Storing the state at lower precision lets more sequences fit on the same accelerator. Existing state quantizers [4, 5, 21, 33] differ in how they scale and round the state, and all of them round it after every generated token. With per-token rounding, the methods that evaluate a four-bit state report a loss in accuracy (Figure 1). The published remedies either raise the bit width to eight bits or fine-tune part of the model weights. NVIDIA et al. [20] round the state less often, but only with eight or more bits per value.

During prefill, chunked kernels process 64 to 1,024 tokens at a time and write the state only at the end of each chunk, so every published quantizer already rounds the prefill state once per chunk. During decoding the kernel is called once per generated token, so the state is written, and rounded, after every token (Figure 2a).

In this work, we introduce PACE (Periodic And Channel-aligned state Encoding), a post-hoc four-bit state quantizer that requires no training (Figure 2). During decoding, PACE rounds the state once every dP generated tokens (the decode period) instead of after every token (A). The tokens generated in between are held in a decode buffer, a small store of recent keys and values from which the state is advanced in one step. Recent serving work uses such buffers to speed up decoding [15, 16, 36]. The buffer occupies memory, and every memory total we report counts it together with the state (B).

The gated-delta state has one row per key dimension and one column per channel of the delta value, the vector the recurrence writes into the state at each token. Channels that stay large across many tokens produce columns of large entries, and when the channels are permuted at every token, the large entries no longer form columns (Section 4). PACE therefore forms each scale group from the entries of one column, that is, along the key axis (©). PACE has two variants: PACE-4 keeps all heads at four bits, and PACE-4/8 keeps the quarter of heads in each layer that retain rounding error longest at eight bits (D).

Our contributions are:

  • A bound on the rounding error a head retains as a function of the rounding period and the head's decay (Section 3), together with a memory accounting that includes the decode buffer (Section 5.1). On four backbones, rounding every eight generated tokens reduces the accuracy loss at every bit width below eight (Section 7.1).

  • The observation that the large entries of the gated-delta state form columns, explained by channels of the delta value that stay large across tokens and confirmed by permuting those channels (Section 4).

  • PACE, a four-bit state quantizer with channel-aligned scale groups and head-level precision allocation (Section 5), compared with DAMP and Q-Mamba on four hybrid models from 4B to 35B parameters (Section 7.2).

  • Triton kernels for periodic decoding with a packed four-bit state, with which we show that rounding every few tokens keeps the decoding speedup of the decode buffer (Section 7.5).

(a) Periodic rounding

Figure

(b) PACE at each flush

Figure

Figure 2: Overview of PACE. (a) Prior state quantizers round the recurrent state after every generated token; PACE rounds it once every dP tokens (A), as prefill already does at each kernel chunk boundary. (b) At each flush, the packed state is dequantized, advanced over the tokens held in the decode buffer (B), and requantized in channel-aligned scale groups (C). PACE-4/8 also holds a quarter of the heads in each layer at eight bits, selected once per checkpoint (D).