Summary (Overview)
- Core contribution: The paper introduces Complex KDA (CKDA), an extension of Kimi Delta Attention (KDA) that combines two existing range extensions—signed channel-wise gates and delta-rule coefficient —to enable 2D rotations and complex eigenvalues within a single diagonal-plus-rank-one (DPR1) transition.
- Key theoretical result: Every orthogonal diagonal-plus-rank-one matrix is exactly a CKDA transition matrix (Theorem 1), and a single CKDA layer can track every finite group isomorphic to a subgroup of SO(3), including , , and (Theorem 3).
- Expressivity improvement: CKDA achieves state-tracking expressivity comparable to DeltaProduct₂ but with a single delta-rule update per token, using one fewer layer than (Gated) DeltaNet for many state-tracking results.
- Empirical findings: CKDA demonstrates the strongest length extrapolation among tested KDA range settings on , , and periodic audio continuation; at 1.3B parameters, it performs on par with KDA while outperforming Transformers and other linear RNNs.
- Efficiency: The implementation retains approximately 96–97% of standard KDA's throughput, requiring only minor modifications to existing KDA recurrence kernels.
Introduction and Theoretical Foundation
Background
Linear recurrent neural networks (RNNs) offer efficient sequence modeling with linear scaling in sequence length and fixed-size recurrent states. Their expressivity depends critically on the structure of their state-transition matrices:
- Diagonal transitions (Mamba-1/2, GLA, mLSTM) support fast computation
- Non-diagonal transitions using the delta-rule introduce a rank-one correction that mixes information across state coordinates
The state-transition matrix for gated delta-rule models takes the form:
Two main variants exist:
- Gated DeltaNet (GDN): uses a scalar gate
- Kimi Delta Attention (KDA): allows a separate gate value per channel
Motivation: From Symmetry to Rotation
The paper identifies a fundamental mechanism: signed channel-wise gates combined with Householder reflections produce rotations.
Symmetry analysis: A KDA transition (product of two symmetric matrices) is symmetric iff the factors commute:
- Scalar gate (GDN): always satisfies this condition → real spectrum only
- Channel-wise gate (KDA): noncommutation possible when and gate values differ
However, strictly positive gates still yield real spectra (the matrix is similar to a symmetric matrix). Only signed gates enable complex eigenvalues.
Key 2D construction: With , , and :
The discriminant is . For , complex-conjugate eigenvalues exist, and at , the transition is a composition of two reflections—a rotation by .
Methodology
CKDA Definition
CKDA is defined as KDA with:
- (signed channel-wise gates)
- (extended delta-rule coefficient)
Implementation uses and signed gates .
Theoretical Framework
Theorem 1 (DPR1 and CKDA): Every orthogonal DPR1 matrix can be written as:
Proposition 2 (Sign-magnitude decomposition): A CKDA transform decomposes as where . The restricted block on is:
This block is a rotation by when , with non-real eigenvalues exactly when .
Key Conditions for Complex Eigenvalues
Complex eigenvalues require:
- At least two gate coordinates with opposite signs
- Key vector spanning coordinates with opposite signs
Implementation
Three implementation variants:
- Compiled PyTorch: absorbs cumulative signs into keys/queries without changing kernels
- Triton kernels: fuse signs into normalization and backward pass
- TileLang hybrid: combines Triton changes with TileLang backward kernels
Empirical Validation / Results
Expressivity Results (Table 1 Summary)
| Property | CKDA | GDN | Gated DeltaProduct | RWKV-7/GDN-2 |
|---|---|---|---|---|
| Complex pairs | ≤ 1 (Thm. 8) | 0 | ≤ ⌊k/2⌋ | 0 |
| (parity) | ✓ 1 layer | ✓ 1 layer | ✓ 1 layer (k≥1) | ✓ 1 layer |
| (n>2) | ✓ 1 layer | ✓ 2 layers | ✓ 1 layer (k≥2) | ✓ 2 layers |
| ✓ 1 layer | ✓ 4 layers | ✓ 1 layer (k≥2) | ✓ 4 layers | |
| (n≥5) | ✓ 3 layers | ✓ 4 layers | ✓ 3 layers | ✓ 4 layers |
State-Tracking Results
- CKDA extrapolates well on and while other KDA settings fail (Figure 6)
- Learned CKDA heads recover the theoretical mechanism: , nearly sign-valued gates, complex-conjugate eigenvalues near the unit circle (Figure 7)
- requires theory-initialized training (optimization obstacle, not representational)
Audio Continuation
- CKDA with both range extensions accurately continues periodic waveforms beyond training horizon
- At length 264 (vs. max training length 136): 38.1 dB SNR for CKDA vs. 2.8 dB for causal Transformer
Language Modeling (1.3B parameters, 100B tokens, FineWeb-Edu)
| Model | Wiki. ppl ↓ | LMB. ppl ↓ | Avg. accuracy (%) ↑ |
|---|---|---|---|
| KDA | 16.81 | 11.68 | 52.28 |
| CKDA (ours) | 15.78 | 10.08 | 54.06 |
| KDA + attn 3:1 (ours) | 15.04 | 9.93 | 53.92 |
| CKDA + attn 3:1 (ours) | 15.34 | 9.90 | 54.37 |
| Mamba-3 (MIMO) | 16.45 | 11.66 | 52.39 |
| Gated DeltaNet-2 | 15.90 | 11.41 | 53.11 |
Kernel Throughput
CKDA retains approximately 96–97% of standard KDA throughput on H100 GPUs.
Theoretical and Practical Implications
Theoretical Implications
-
Characterization of DPR1 expressivity: CKDA captures the entire orthogonal DPR1 family, showing that the non-symmetric structure in models like RWKV-7 adds no orthogonal transitions beyond what CKDA achieves.
-
Spectral restrictions: Every nonexpansive DPR1 matrix has at most one non-real conjugate eigenvalue pair on the unit circle (Theorem 9). This is a fundamental limitation of the architecture family.
-
State-tracking hierarchy: CKDA requires one fewer layer than (Gated) DeltaNet for many state-tracking results (3 vs. 4 layers for general regular languages and WFAs), matching DeltaProduct's expressivity with a single rank-one correction per token.
-
Spectral obstruction theorem: Non-expansive transitions with at most one complex eigenvalue pair cannot track in one layer (Theorem 4), establishing a fundamental limitation shared by CKDA and DeltaProduct with .
Practical Implications
-
Efficient expressivity gain: CKDA achieves DeltaProduct₂-level expressivity without the computational cost of two delta-rule updates per token.
-
Length extrapolation: Signed gates and extended β enable better extrapolation on group word problems and periodic waveform continuation—useful for tasks requiring long-range periodic structure.
-
Language modeling: CKDA matches or slightly exceeds KDA baselines while providing additional expressivity, with no significant throughput penalty.
-
Learned mechanisms: Analysis of trained models confirms that language models actively learn to use negative gates and extended β ranges, particularly in early layers, suggesting these mechanisms serve functional roles in sequence processing.
Conclusion
Main Takeaways
- CKDA combines signed channel-wise gates () with extended delta-rule coefficient () to enable planar rotations and complex eigenvalues within a single non-expansive DPR1 transition.
- Every orthogonal DPR1 matrix is exactly a CKDA transition, establishing CKDA's completeness within this important matrix family.
- State-tracking expressivity matches DeltaProduct while using one fewer layer than (Gated) DeltaNet for many tasks.
- Empirical validation confirms the theoretical mechanism in both state tracking and language modeling, with CKDA achieving the strongest length extrapolation among KDA variants.
Limitations
- Rank-one structure limits transitions to at most one persistent complex-conjugate eigenvalue pair
- Expressivity results do not imply learnability ( requires theory-initialized training)
- General WFA construction requires , sacrificing guaranteed non-expansiveness
- No inherent computational advantage over (Gated) DeltaProduct₂
Future Work
- Combine CKDA with separate gates (as in GDN-2) controlling additive terms and state forgetting
- Mechanistic analysis of how learned gates and β ranges function in language models
- Investigation of the functional roles of negative gates and extended β in trained models
Related papers
- On the Design of Qwen3.8-Next Architecture: Evaluation, Efficiency, and Training Stability
Qwen3.8-Flash-Next matches its 397B predecessor's quality using one-third activated parameters and one-ninth training FLOPs via GDN, QSA, GR, and n-gram embeddings.
- Do New Attention Mechanisms Actually Fix Attention Sinks at Million-Token Context?
The training objective, not architecture, creates attention sinks, and sink mass, activations, and position bias are independent problems requiring separate diagnostics at million-token scale.
- Amortizing Scaling Law Construction Costs · Pith Review
Bayesian optimization with compute slicing and surrogate fantasization recovers scaling law fits at 10-100x less compute, with extrapolation error under 1.6%.