DeltaLog: Deferred Materialization of Recurrent States for Linear Attention Decoding

📅 2026-08-16
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This study addresses the memory bottleneck caused by frequent recurrent state write-backs during linear attention decoding. We propose DeltaLog, a method that decomposes the state into a dense base and a compact update log. By employing deferred materialization, this approach replaces full write-backs with lightweight appends, supplemented by periodic merging and kernel optimizations, thereby significantly reducing memory overhead while preserving model semantics. Experimental results demonstrate that DeltaLog accelerates state updates by 1.86× and reduces write traffic by 7.83×. Furthermore, it achieves end-to-end inference speedups ranging from 1.05× to 1.20×, effectively enhancing the deployment efficiency of linear attention models.
📝 Abstract
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\times$, reduces profiled recurrent-state write traffic by up to $7.83\times$, and achieves $1.05$--$1.20\times$ end-to-end serving speedups over dense recurrent baselines.
Problem

Research questions and friction points this paper is trying to address.

Linear Attention
Recurrent State
Memory Traffic
Decoding
State Maintenance
Innovation

Methods, ideas, or system contributions that make the work stand out.

Linear Attention
Deferred Materialization
Recurrent State Decoding
Memory Traffic Optimization
DeltaLog
🔎 Similar Papers