← All stories
● Covered by 1 source · 1 reportLow impact1 neutral

Deriving Kimi Delta Attention from basic linear attention principles

🔄 Updated 1d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Kimi Delta Attention (KDA) is a complex linear attention variant.
  • The derivation starts from softmax attention and progresses to KDA.
  • DeltaNet variants are used in Qwen and Kimi model families.
  • The article aims to demystify advanced attention mechanisms.

Understanding Complex Attention Variants

Modern linear attention variants, such as Kimi Delta Attention (KDA), often appear complex and difficult to understand at first glance. These variants have evolved over several years, leading to increased complexity that can make them inaccessible to those unfamiliar with their development history.

Derivation Path to KDA

The article outlines a step-by-step derivation process, starting from fundamental softmax attention and progressing through linear attention, DeltaNet, Gated DeltaNet, and finally to KDA. This approach aims to show how these advanced equations can be reached by asserting simple principles about hidden states.

The derivation begins by examining ordinary causal softmax attention, which involves scalar attention weights measuring similarity between keys and queries, followed by a softmax function and a weighted sum of value vectors. The challenge with softmax attention in autoregressive inference is that its denominator depends on the current query and all previous keys, making it difficult to rearrange for efficiency.

Simplifying Attention for Linearization

To simplify the computation and move towards linear attention, the softmax function is removed. By absorbing a constant scale into the query, a bare version of attention is presented, where the scalar inner product can be rearranged. This allows for the collection of all past-dependent elements into a single matrix, a crucial step in developing linear attention mechanisms.

Relevance to Modern AI Models

The DeltaNet family of linear attention variants, including those derived in this explanation, are utilized by contemporary AI models such as the Qwen and Kimi model families. Understanding their underlying mechanics provides insight into the architectural choices of these advanced language models.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~7 min · 6 stories · Aug 15

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

This article explains the derivation of Kimi Delta Attention (KDA) and other DeltaNet linear attention variants, which are used in models like Qwen and Kimi. It simplifies the understanding of these complex attention mechanisms by tracing their evolution from basic softmax attention.