
Kimi Delta Attention
Kimi Delta Attention is a method that allows large language models to process very long texts more efficiently by only recalculating the truly relevant spots in the text at each computational step. It was developed by the Chinese AI lab Moonshot AI and deployed in the Kimi model.
Kimi Delta Attention is a technique that allows a language model – that is, a system like ChatGPT or Kimi that understands and generates text – to handle very long texts without consuming excessive amounts of compute time. The problem: normal language models have to keep track of all previous positions in the text at every new text position. The longer the text, the more expensive this becomes. Kimi Delta Attention solves this problem by only recalculating, at each step, the change relative to the previous step – the “delta,” i.e., the difference. The method comes from Moonshot AI, the Chinese company behind the Kimi model, and was developed specifically for extremely long context windows.
Why long texts push models to their limits
At the core of many modern language models is a mechanism called attention. It determines which parts of a text are relevant to each other. When a model reads the word “he,” attention checks which person in the entire preceding text this pronoun refers to. That’s useful – but expensive.
The problem grows quadratically: if you double the text length, the computational effort quadruples. A model tasked with processing a 100,000-word novel quickly hits technical and economic limits with conventional attention. Kimi was designed from the outset for very large context windows – that is, the amount of text a model can “see” at once. For this, the team needed a more efficient solution.
The delta principle inside the model
The basic idea is simple: if the text is extended by just a single new word, the overall picture usually changes only minimally. Most of the calculations the model performed for the previous word remain largely valid. Instead of recalculating everything, Kimi Delta Attention determines only the difference – precisely the delta – and updates the result in a targeted way.
Technically speaking, the so-called key-value cache, an intermediate store that holds the computed attention values for earlier parts of the text, is not completely refilled. Instead, it is adjusted incrementally: new computational effort only flows in where something has actually changed. This saves a particularly large amount when models work through very long inputs step by step – for example, an extensive document or a long conversation.
What matters here is that the quality of the results is meant to stay the same. Kimi Delta Attention is not a compromise in which the model understands less. It is a computational shortcut that leads to the same answer – just faster.
Where Kimi Delta Attention appears in practice
The most visible use is in the Kimi model itself. Moonshot AI designed the system for a context window of one million tokens – roughly equivalent to the content of several long novels at once. Without a technique like Delta Attention, this would be hardly economically viable in normal operation, because server costs for each user would explode.
In the trade press and in AI discussions, the term comes up whenever the so-called long-context problem is discussed: how do you get models to process entire codebases, long legal contracts, or hours-long transcripts all at once? Kimi Delta Attention is a concrete solution approach in this regard, not a theoretical concept.
There is a risk of confusion with the more general term “delta updates” or with other attention variants such as Flash Attention or Sparse Attention. These pursue similar goals – reducing computational effort – but via different routes. Flash Attention, for instance, optimizes how data flows between the memory levels of the graphics card, while Kimi Delta Attention operates on the content level: what has actually changed compared to the last step?