Linear attention models eliminate the quadratic prefix computation and context-growing KV cache of softmax attention by replacing pairwise token interactions with recurrent state updates. However, existing decoding implementations often materialize and write back the full recurrent state after every generated token, making state maintenance a major source of memory traffic, especially for models with large states and many heads. This paper presents DeltaLog, a recurrent-state decoding scheme that reduces this overhead without changing the model semantics. Specifically, DeltaLog represents the recurrent state as a dense base state together with a bounded log of recent compact updates. Most decode steps append only compact update factors to this log, while periodic merge steps fold the accumulated updates back into the dense base state. Thus, the model observes the same dense state as in eager decoding, but most full-state write-backs are replaced by lightweight append operations. We implement DeltaLog for GDN, KDA, and RWKV6 and integrate it into a prototype serving stack. Across these models, DeltaLog accelerates the recurrent-state update kernel by up to 1.86×, reduces profiled recurrent-state write traffic by up to 7.83×, and achieves 1.05--1.20× end-to-end serving speedups over dense recurrent baselines.
Figures & tables
Figure 1. The state-update tax. A token contributes compact factors with O(BH(dk+dv)) values, but eager materialization writes back the full [B,H,dk,dv] recurrent state, touching O(BHdkdv) elements per token.
Model
State Transform
Update Pair (at,bt)
Decay Form
Linear Attention
St−1
(ϕ(kt),vt)
none
RetNet
γtSt−1
(kt,vt)
scalar
GLA
D(λt)St−1
(kt,vt)
diagonal
RWKV6
D(λt)St−1
(kt,vt)
diagonal
GDN
D(λt)St−1
(kt,βt(vt−kt⊤St−1))
scalar
KDA
D(λt)St−1
(kt,βt(vt−kt⊤St−1))
diagonal
Table 1. Representative recurrent formulations written in the components used by our systems analysis. The columns list the model-specific ingredients that instantiate Eq. 3 .
Figure 2. Recurrent-state materialization occupies a growing share of full-model decode latency.
Figure 3. Roofline view of eager dense recurrent-state updates. Their arithmetic intensity is far below machine balance, making them strongly memory-bound.
Figure 4. DeltaLog overview. Eager recurrent decoding materializes the state at every token. DeltaLog instead stores a base plus a bounded compact update log, appends while L<C , and materializes the logical state into the dense base when L=C .
Figure 5. The append–merge kernel ownership path comprises three stages: shared replay preparation, parallel append decode across value tiles, and single-writer metadata commit. The merge path uses the same structure but writes back dense-base tiles.
Figure 6. Single-token decode performance on H200. Bars show TPOT, and lines show DeltaLog speedup over FLA.
Figure 7. Single-token decode performance on RTX 4090. Bars show TPOT, and lines show DeltaLog speedup over FLA.
GPU
Deployment
Memory
Peak Memory
Peak Tensor
Class
Bandwidth
Throughput
RTX 4090
commodity
24 GB
1008 GB/s
165.2 TFLOPS
H200 NVL
data-center
141 GB
4.8 TB/s
1671 TFLOPS
Table 2. Hardware configuration.
Operator
Shape
State
Log (K/U)
M
GDN
32/128/128
FP32
BF16/FP32
8
KDA
32/128/128
FP32
BF16/FP32
4
RWKV6
32/128/128
FP32
BF16/BF16
4
Table 3. Recurrent-kernel configurations. Shape reports H/dk/dv ; log-decay metadata is FP32 for all operators.
Figure 8. Latency and profiled DRAM traffic for GDN at B=128 and M=8 . (a) reports dense decoding, append latency by log size, merge latency, and the amortized result. (b) reports the corresponding DRAM-traffic breakdown.
Figure 9. Split-replay ablation on H200 with CUDA Graph replay. Latencies are amortized over one merge cycle; GDN, KDA, and RWKV6 are shown at M=4 and M=8 .
Figure 10. Interval sweep for DeltaLog at B=128 . (a) Amortized per-token latency. (b) Speedup over FLA.
Figure 11. Scaling with total recurrent-state size on H200.
LLM inference acceleration develops algorithms and systems that reduce language-model latency, memory use, and serving cost while preserving output quality.
School of Mathematics and Statistics Xi’an Jiaotong University Xi’an, China · Gaoling School of Artificial Intelligence Renmin University of China Beijing, China