DeltaLog: Deferred Materialization of Recurrent States for Linear Attention Decoding
DeltaLog is a recurrent-state decoding scheme that accelerates linear attention models by deferring full state materialization in favor of appending compact updates to a bounded log and periodically merging them, thereby significantly reducing memory traffic and improving end-to-end serving speed.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Modern artificial intelligence systems that generate text, from chatbots to creative writing assistants, rely on a fundamental process called autoregressive decoding. In this process, the computer predicts the next word in a sentence one at a time, using the words it has already generated to inform its next guess. For years, the most powerful models have used a mechanism known as attention to decide which previous words matter most for the current prediction. While this approach is incredibly effective, it creates a growing bottleneck: as the conversation gets longer, the system must constantly store and retrieve an ever-expanding list of every word seen so far, consuming vast amounts of computer memory and slowing down the response time. To solve this, researchers have developed a newer class of models that replace the expanding list with a fixed-size summary, or state, that updates with every new word. This change eliminates the need to remember every single past token, but it introduces a different problem: the system must still constantly rewrite this entire summary every time a new word is added, creating a heavy traffic jam in the computer's memory.
A team of researchers at the University of Science and Technology of China has identified this constant rewriting as a major inefficiency and has devised a solution they call DeltaLog. Instead of forcing the computer to rewrite the entire summary of the conversation after every single word, DeltaLog allows the system to keep a stable, complete version of the summary and simply attach a small, compact note describing the most recent change. The system only rewrites the full summary occasionally, after it has accumulated a certain number of these small notes. This approach is like keeping a master ledger and a stack of sticky notes; rather than rewriting the entire ledger every time a new transaction occurs, you just add the transaction to the stack and update the ledger only when the stack gets too high. By doing this, the researchers found they could drastically reduce the amount of data the computer needs to move around, which is often the slowest part of the process.
The researchers tested this method on several different types of modern language models, including Gated DeltaNet, Kimi Delta Attention, and RWKV6. In their experiments, they measured how long it took for the computer to generate a single word and how much memory traffic was involved. They discovered that by deferring the full rewrite of the summary, they could speed up the core calculation that updates the model's memory by up to 1.86 times on high-end graphics cards. More importantly, they observed that the amount of data written to the computer's high-speed memory dropped by as much as 7.83 times. This reduction in traffic is significant because, in these types of models, the speed is often limited not by how fast the computer can calculate, but by how fast it can move data in and out of its memory.
When the researchers integrated this method into a full system designed to serve many users at once, the benefits translated into faster response times for the end user. In tests with large models containing tens of billions of parameters, the system generated words between 5% and 20% faster than before. The improvement was most noticeable when the system was handling many requests simultaneously, a common scenario for real-world applications. The researchers confirmed that this speedup did not come at the cost of accuracy; the text generated by the modified system remained mathematically equivalent to the original, meaning the quality of the output was preserved while the delivery became much more efficient.
The key insight behind this work is that the way a computer physically stores and updates information does not always need to match the logical steps the model takes. While the model logically updates its state with every word, the physical hardware does not need to immediately rewrite the entire state to reflect that change. By separating the stable history from the recent changes and only merging them periodically, DeltaLog reduces the "state-update tax," a term the authors use to describe the excessive memory traffic caused by eager, immediate updates. This strategy does not change the underlying model or its weights; it simply changes the schedule of how the computer handles the data. The results suggest that for large-scale language models, optimizing the physical movement of data is just as critical as improving the mathematical algorithms themselves, offering a clear path to faster and more efficient artificial intelligence.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.