Published hybrid-attention comparison [ftip-00KU]
✍️sourceAGENTDRAFTED
Published hybrid-attention comparison [ftip-00KU]
✍️sourceAGENTDRAFTED
Kimi Linear combines recurrent KDA layers with periodic full MLA attention. Its published comparison shows task-dependent score changes and lower long-context decoding times. The selected scores in Example [ftip-00LC], the memory estimate in Example 4, and the discovery calculation in Example 9 connect these observations to a post-training question: when can a cheaper attempt compensate for a possible lower per-attempt success probability?
Example 1. Published Kimi Linear operating point [ftip-00KV]AGENTDRAFTED
Example 1. Published Kimi Linear operating point [ftip-00KV]AGENTDRAFTED
The Kimi Linear report compares experimental models pretrained on 1.4 trillion tokens, each with 48 billion total and 3 billion active parameters. Kimi Linear uses three Kimi Delta Attention layers for each full Multi-head Latent Attention layer, with no positional encoding (NoPE) in its MLA layers; the reference uses full MLA attention [kimi2025linear, Sections 4 and 5.4]. These are properties of the reported hybrid architecture.
These experimental models are distinct from the released Kimi Linear model, pretrained on 5.7 trillion tokens and supporting up to one million tokens of context. Appendix D compares that release with Moonlight, which has 16 billion total and 3 billion active parameters [kimi2025linear, Section 5.4.1 and Appendix D].
Example 2. Published efficiency observations [ftip-00KW]AGENTDRAFTED
Example 2. Published efficiency observations [ftip-00KW]AGENTDRAFTED
For batch size one at one million tokens, Figure 7 labels a \(2.9\times \) prefill speedup and a \(2.2\times \) decoding speedup for Kimi Linear against MLA. Section 6.3 gives \(2.3\times \) for the latter point, so the graphic and prose differ slightly [kimi2025linear, Figure 7 and Sections 5.6 and 6.3].
The larger-batch comparison in Figure 1(b) gives decoding time per output token of 1.84 milliseconds for Kimi Linear and 11.48 milliseconds for MLA, with a reported \(6.3\times \) speedup. Section 6.3 describes this as a theoretical speedup from reallocating saved KV-cache memory to larger batches. It illustrates a different use of the memory saving from the batch-one latency result [kimi2025linear, Figure 1(b) and Section 6.3].
Figure 1(a) reports RULER scores of 84.3 for Kimi Linear and 81.3 for MLA at 128k context, with \(3.98\times \) decoding acceleration [kimi2025linear, Figure 1(a)]. The report also gives a reduction of up to 75 percent in KV-cache use [kimi2025linear, Abstract]. Together these observations motivate studying context length and batch size as separate cost coordinates. The unequal RULER scores and different timing regimes are retained when interpreting those points.
Definition 3. Quality target and cost measurement [ftip-00KX]AGENTDRAFTED
Definition 3. Quality target and cost measurement [ftip-00KX]AGENTDRAFTED
For a reported benchmark score q, use the same task, prompt law, scoring rule, and post-training condition for both systems. The comparison records the smallest measured cost at which each system reaches q, when such a measurement exists. A throughput or cache ratio is not substituted for this iso-quality cost.
Example 4. A cache-memory estimate for hybrid attention [ftip-00KY]AGENTDRAFTED
Example 4. A cache-memory estimate for hybrid attention [ftip-00KY]AGENTDRAFTED
The cited FLA KDA implementation at commit 6b6f546f stores one active recurrent state
per sequence, with dimensions determined by the value heads and key/value
dimensions rather than accumulated context length. Its newly allocated
state uses float32
[⧉].
The optional short-convolution state has one fixed-width kernel buffer per
channel and sequence
[⧉].
This supplies a concrete implementation model for the recurrent part of
the 3:1 mixture in Example 1.
Consider a stylized comparison with \(4\ell \) layers, batch size \(b\), and context length \(T\), where \(\ell ,b,T\) are positive integers. Assume each MLA layer stores \(\kappa T\) bytes per sequence, with the same \(\kappa >0\) in both designs, and each KDA layer stores one terminal recurrent-plus-convolution state of \(\sigma >0\) bytes. The active attention-state memories are
\[ M_{\rm MLA}=4b\ell \kappa T,\qquad M_{\rm hybrid}=b\ell (\kappa T+3\sigma ),\qquad \frac {M_{\rm hybrid}}{M_{\rm MLA}} =\frac {1}{4}+\frac {3\sigma }{4\kappa T}. \]The hybrid uses less active state exactly when \(T>\frac {\sigma }{\kappa }\), and the ratio tends to \(1/4\) as context grows. This explains why replacing three quarters of the growing caches can approach a 75-percent saving, while fixed recurrent-state overhead can erase the advantage at short contexts. The retained MLA layers keep the hybrid's state memory linear in \(T\); the whole model is not a fixed-memory recurrent system.
Weights, training activations, workspaces, allocator padding and saved prefix states are outside this active-state calculation. At a fixed device memory budget, the estimate predicts more room for simultaneous or longer rollouts when attention state dominates. It does not predict a fourfold speedup. Training and decoding also use different execution paths: FLA selects chunk kernels for gradient-enabled computation and fused recurrence for short inference calls [⧉]. The fixed-state estimate is therefore a useful serving hypothesis, not a training-memory or training-speed formula.
Example 5. Common-recipe reading of the Kimi result [ftip-00KZ]AGENTDRAFTED
Example 5. Common-recipe reading of the Kimi result [ftip-00KZ]AGENTDRAFTED
The report holds its stated pretraining and SFT recipes common across the experimental models [kimi2025linear, Sections 5.4--5.5 and Table 4]. The selected observations in Example [ftip-00LC] compare the resulting trained designs, including the hybrid's 3:1 KDA/MLA pattern and NoPE choice. The mixed score directions suggest a task-dependent tradeoff rather than one ordering of the two architectures.
The theoretical mechanism is a change in the cost of maintaining and using the prefix: recurrent layers compress it into state, while the retained MLA layers preserve growing attention caches. The model in Example 4 predicts the largest memory advantage at long contexts. If this advantage reduces the cost of generating useful candidates, Example 9 predicts when more attempts can offset a reduction in per-attempt quality. This is a conditional explanation to test through rollout costs and verified success rates; it does not require attributing the whole result to KDA alone.
Example 6. Measured iso-quality cost ratio [ftip-00L0]AGENTDRAFTED
Example 6. Measured iso-quality cost ratio [ftip-00L0]AGENTDRAFTED
Let \(c_K(q)\) and \(c_T(q)\) be measured inference costs for Kimi Linear and the Transformer reference at the same finite real score \(q\) and context length, under one accounting rule. If \(0\leq c_K(q)<+\infty \) and \(0<c_T(q)<+\infty \), the measured ratio \(\widehat \rho _{K/T}(q)=c_K(q)/c_T(q)\) is reported together with the full cost vectors. These measured costs need not be the inverse frontier infima of Definition [ftip-00JP]. If either threshold is unmeasured or the denominator is zero, the ratio is left undefined rather than inferred from the paper's speedup plot.
Remark 7. Hybrid attention is not pure linear attention [ftip-00L1]AGENTDRAFTED
Remark 7. Hybrid attention is not pure linear attention [ftip-00L1]AGENTDRAFTED
Kimi Linear combines KDA with periodic full-attention layers. A measured advantage therefore identifies the reported hybrid intervention, not a claim that a purely linear recurrent architecture has the same quality or ceiling. The layer pattern belongs in the architecture record.
Remark 8. Demonstrated performance is a lower bound [ftip-00L2]AGENTDRAFTED
Remark 8. Demonstrated performance is a lower bound [ftip-00L2]AGENTDRAFTED
The published benchmark scores demonstrate attainable points for the reported checkpoints and protocol. They do not establish a representational ceiling, a universal scaling law, or a claim that additional cost cannot improve either architecture.
Example 9. When cheaper attempts compensate for lower success [ftip-00L3]AGENTDRAFTED
Example 9. When cheaper attempts compensate for lower success [ftip-00L3]AGENTDRAFTED
Smaller caches can support more concurrent requests or avoid preemption and recomputation. These are actual serving mechanisms in vLLM's memory and scheduling guidance [⧉]. For post-training, the useful prediction is therefore about completed candidate attempts under a budget, including verification and optimization costs, rather than decoding speed alone.
Use the following cost model on the same hardware. One baseline attempt costs \(c>0\); generation accounts for a fraction \(f\in [0,1]\). Suppose generation becomes \(s_{\rm gen}>0\) times as fast while all other cost per attempt stays fixed. The new cost and total attempt-throughput factor are
\[ c_K=c\left (1-f+\frac {f}{s_{\rm gen}}\right ),\qquad S=\frac {c}{c_K} =\frac {1}{1-f+f/s_{\rm gen}}. \]For a fixed budget \(B\geq 0\), this model permits \(N_M=\lfloor B/c\rfloor \) baseline attempts and \(N_K=\lfloor B/c_K\rfloor \) hybrid attempts. Assume \(N_M,N_K\geq 1\) and verified-success events independent within each set of attempts, with respective probabilities \(p_M,p_K\in [0,1]\). Then Theorem [ftip-0078] gives discovery probabilities \(1-(1-p_M)^{N_M}\) and \(1-(1-p_K)^{N_K}\). The hybrid matches or exceeds baseline discovery exactly when
\[ p_K\geq 1-(1-p_M)^{N_M/N_K}. \]This follows by comparing the two failure probabilities and taking the nonnegative \(N_K\)-th root.
For an illustrative estimate, suppose generation consumes 80 percent of the baseline cost and use \(s_{\rm gen}=2.2\), motivated by the batch-one decode figure in Example 2. Applying that decode factor to the whole generation stage is a working approximation, not a measured rollout result. Then \(S\approx 1.774\); a budget of \(B=10c\) buys 10 baseline attempts or 17 hybrid attempts. If \(p_M=0.10\) and \(p_K=0.08\), the discovery probabilities are approximately \(0.651\) and \(0.758\). The break-even hybrid probability is about \(0.0601\). Thus this model predicts that more attempts can outweigh a moderate per-attempt quality loss. The assumed probabilities are illustrative verified-success rates, not conversions of the benchmark scores in Example [ftip-00LC].
The prediction is strongest for long-context, generation-heavy work whose saved memory becomes usable rollout capacity. As verification or optimization dominates, \(f\) shrinks and \(S\) approaches one. Correlated attempts require the joint-law analysis of Convention [ftip-0077] instead of the independent product. Measure completed attempts, verified-success rates and total cost under a fixed prompt, decoding and verifier protocol to test the tradeoff. In the RLVR round of Example [ftip-004M], additional successful candidates can improve the available feedback; whether they produce useful accepted updates is a further optimizer-and-evaluation question, as Example [ftip-0085] demonstrates.