Kronecker Delta Rule for Long Context Linear Attention
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
Kronecker Delta Rule for Long Context Linear Attention Anamaria-Roberta Hartl*1, Levente Zólyomi*1,2, Michael List1, Günter Klambauer1,2, Sebastian Böck2, Sepp Hochreiter1,2 1 Institute for Machine Learning, Johannes Kepler University, Linz 2 NXAI GmbH, Linz * Equal contribution.
Corresponding authors: Anamaria-Roberta Hartl, hartl@ml.jku.at, Levente Zólyomi, levente.zolyomi@nx-ai.com
arXiv:2610.26834v1 [cs.LG] 19 Oct 2026
Abstract We propose KronLSTM, a linear attention architecture based on the Kronecker Delta Rule, a novel update rule for associative matrix memories. KronLSTM extends the xLSTM family with a memory-revision mechanism that corrects targeted associations while modifying the memory only along a single direction in matrix space. This minimally invasive memory revision reduces interference with previously stored information compared with delta-rule updates, making it particularly well suited for long-context language modeling. The resulting memory dynamics can be mathematically described as a Markov chain that converges to a steady-state distribution, while the expected norm of the memory matrix remains uniformly bounded throughout the entire input sequence. Hence, KronLSTM ensures stable memory dynamics without requiring additional normalization and stabilization mechanisms for the memory state. Experiments show that KronLSTM is competitive with, and often outperforms, existing linear attention architectures, including models of the (Gated) DeltaNet family, with particularly strong performance on long context benchmarks. These results establish the Kronecker Delta Rule as an effective and analytically tractable foundation for stable associative memory in recurrent linear attention architectures. Our code and models are open-source. 1
mLSTM
stored
2
Gated DeltaNet
new value
erased
3
KronLSTM
changed by update
Figure 1: Representation of the memory matrix state revision for mLSTM, Gated DeltaNet, and KronLSTM. Interference with stored values: mLSTM affects all values, Gated DeltaNet affects those with overlapping keys, and KronLSTM affects only those with overlapping key and value pairs.
1 Introduction Large language models (LLMs) predominantly use the Transformer architecture ( Qwen Team, 2023; OpenAI, 2025; Touvron et al., 2023a; Vaswani et al., 2017), whose softmax attention mechanism has computational costs that grow quadratically with context length, while its key–value cache grows linearly. Consequently, inference becomes increasingly costly as contexts grow. To reduce these costs, recent work has explored replacing softmax attention with linear attention mechanisms (Katharopoulos et al., 2020; Schlag et al., 2021), which can be traced 1
Kronecker Delta Rule for Long Context Linear Attention
back to the idea of fast weight programmers (Schmidhuber, 1992). Linear attention compresses the context into a fixed-size memory matrix that is updated as new tokens arrive, yielding linear computational complexity and a constant memory footprint. Recently, recurrent architectures based on associative memories (Anderson, 1972; Kohonen, 1972), including xLSTM (Beck et al., 2024), as well as related state-space and memory-based approaches such as Mamba (Dao and Gu, 2024; Gu and Dao, 2024; Lahoti et al., 2026), DeltaNet (Hatamizadeh et al., 2026; Kimi Team et al., 2025; Yang et al., 2024, 2025), RWKV-5 and 6 (Peng et al., 2024), and other recent architectures (Behrouz et al., 2025; Liu et al., 2025; Sun et al., 2024), have emerged as competitive alternatives to Transformers.
Gradient norm
500 A crucial challenge for linear attention is controlkronLSTM ling memory growth. If the memory of recurrent mLSTM 400 architectures grows without being bounded, its readout can become arbitrarily large, leading to numerical 300 instabilities, particularly during learning. The original LSTM (Hochreiter, 1991; Hochreiter and Schmid200 huber, 1997) uses a bounded squashing function to 100 control the exposed cell state, while its forget gate regulates the accumulation of information in mem0 ory. RWKV-5 and RWKV-6 (Peng et al., 2024) sim0 500 1000 1500 2000 2500 Training step ilarly control memory growth through a forget gate. Mamba architectures (Dao and Gu, 2024; Gu and Dao, 2024; Lahoti et al., 2026) also restrain memory growth Figure 2: Stress test with high learning rates for the same through a forget mechanism derived from a stable mLSTM and KronLSTM architectures on language modstate-space ordinary differential equation. However, eling. Learning becomes unstable for mLSTM as the forget-based memory control becomes increasingly gradient norm spikes show, while KronLSTM yields restrictive for long contexts. To retain information stable learning. over long time spans, forget gates must remain close to one; otherwise, information from the beginning of the context is progressively attenuated. xLSTM (Beck et al., 2024) addresses this limitation by allowing forget gates close to one and introducing normalizer and stabilizer states to control the scale of its matrix memory and readout. However, normalization based on ratios of potentially large quantities can itself lead to numerical difficulties and learning instabilities, particularly in larger xLSTM networks (Beck et al., 2025b). mLSTM’s numerical instabilities are illustrated by the stress test in Figure 2.
The DeltaNet family (Hatamizadeh et al., 2026; Kimi Team et al., 2025; Yang et al., 2024, 2025) controls memory growth through Delta Rule updates, whose dynamics converge to a steady-state distribution with bounded memory ensuring stable learning dynamics. However, revising a stored value can perturb previously stored values, leading to unwanted memory interference for long sequences. We introduce KronLSTM, which, like (Gated) DeltaNet, provides bounded memory through a delta-style update, but uses the Kronecker Delta Rule. The Kronecker Delta Rule is less invasive: it modifies the memory only along a single direction in matrix space, reducing interference with previously stored associations. This targeted memory revision results in a less noisy gradient flow over time. Our contributions are: • (i) Kronecker Delta Rule is introduced as a new update rule for associative matrix memories, which corrects the scalar associations while having minimal interference with previously stored values. • (ii) KronLSTM is introduced as a novel linear attention architecture based on the Kronecker Delta Rule equipped with a vector forget gate, a β gate, and a target gate. • (iii) Stability properties for the Kronecker Delta Rule are mathematically proved via bounds on the expected memory norm. These bounds ensure stable learning and proper gradient flow. • (iv) Experiments empirically validate the strong performance of KronLSTM at long-context language modeling and retrieval tasks. KronLSTM performs strongly across language modeling, recall, and state tracking benchmarks. 2
Kronecker Delta Rule for Long Context Linear Attention
2 KronLSTM In Subsection 2.1, we introduce the Kronecker Delta Rule and analyze its memory dynamics, and in Subsection 2.2, the Kronecker Delta Rule is embedded in the KronLSTM sequence-mixer block.
2.1 Kronecker Delta Rule Linear attention update rules for matrix memory. Linear attention (Katharopoulos et al., 2020) compresses the context into a matrix memory S that is updated per token and read out per query, X St+1 = St + vt kt⊤ , ht = St qt = vi ki⊤ qt , (1) i<t
with St ∈ Rdv ×dk , keys kt and queries qt in Rdk , and values vt in Rdv . Therefore, S is an associative memory (Anderson, 1972; Kohonen, 1972) with a Hebbian rule, i.e., an outer product update rule. Modern linear attention architectures like xLSTM (Beck et al., 2024), Mamba (Dao and Gu, 2024; Gu and Dao, 2024; Lahoti et al., 2026), RWKV-5 and 6 (Peng et al., 2024) rely on these associative memories equipped with gates and transformations. The memory growth is controlled by a forget gate, which stabilizes the memory dynamics. In contrast, the Delta Rule (Schlag et al., 2021; Widrow and Hoff, 1960) corrects the memory with the difference of the retrieval to the current value when writing into the memory St+1 = St − βt St kt − vt kt⊤ = St I − βt kt kt⊤ + βt vt kt⊤ , (2) with step size βt . Each step is gradient descent on 12 ∥St kt − vt ∥2 , and the transition I −βt kt kt⊤ is a generalized Householder matrix, which admits chunkwise-parallel training (Yang et al., 2024). The two rules differ in how an association, once stored, is changed. The Hebbian write of (1) is additive, so the memory grows with the sequence and an earlier value can be buried by later writes but never revised. The delta rule (2) revises: it removes the value currently stored at kt before writing vt . The correction, however, proceeds along (St kt − vt )kt⊤ , a direction determined by the current memory content, so values stored at keys that overlap with kt are affected as well. We aim at an error-correcting write that acts solely on the pair (kt , vt ). Kronecker Delta Rule. Let St ∈ Rdv ×dk be the memory matrix, kt ∈ Rdk and vt ∈ Rdv the key and value at step t, ct ∈ R a target and βt a step size. The scalar vt⊤ St kt measures how strongly the memory associates kt with vt . The Kronecker Delta Rule corrects this scalar towards the target along the outer product of the pair as follows St+1 = St − βt vt⊤ St kt − ct vt kt⊤ = St − βt vt⊤ St kt vt kt⊤ + βt ct vt kt⊤ . (3) | {z } | {z } erase
write
In place of the dv -dimensional residual St kt − vt of the delta rule, a scalar is corrected, and the direction vt kt⊤ of the correction is determined by the input pair alone without utilizing the memory content. A target ct ≡ 1 stores each association with unit strength, while ct = 0 erases it. The target ct may depend on the input, i.e., serves as a gate, so that what is written becomes input-dependent. The right-hand side of (3) separates the update into an erase and a write term, both scaled by βt . Choosing the target c̃t = ct /βt removes the step size from the write, so that βt alone determines how much of the stored association is erased and ct alone how much is written. KronLSTM uses this form, with both quantities computed from the input as gates (Section 2.2). Properties of the Kronecker Delta Rule. (i) Error correction (see Appendix Property A2 and Property A6). 2 An update is a step of gradient descent with step size βt on 12 vt⊤ Skt − ct . Re-presenting the same pair gives vt⊤ St+1 kt − ct = vt⊤ St kt − ct (1 − βt ∥at ∥2 ), so it contracts the error iff 0 < βt < 2/ ∥at ∥2 , and the Newton step βt = 1/ ∥at ∥2 meets the target in a single update; for ct = 0 this deletes the association. (ii) Delta
3
Kronecker Delta Rule for Long Context Linear Attention
Rule in vectorized form (see Appendix Property A7). With the Kronecker product at = kt ⊗ vt = vec(vt kt⊤ ) 2 2 2 and the vectorized memory s = vec(S), we have vt⊤ Skt = a⊤ t s and ∥at ∥ = ∥kt ∥ ∥vt ∥ , and (3) becomes st+1 = I − βt at a⊤ (4) t st + βt ct at , the Widrow–Hoff Delta Rule (Widrow and Hoff, 1960) with input at and target ct , which gives the rule its name. The transition factor is a generalized Householder matrix that does not depend on ct , so the chunkwise-parallel formulation of DeltaNet (Yang et al., 2024) applies with at in place of kt , the target entering only the driving term. For βt ∥at ∥2 ∈ (1, 2) the transition factor has a negative eigenvalue, the idea behind the state-tracking capabilities of Delta Rule models (Grazzi et al., 2025). (iii) Interference (see Appendix Property A9). For any other stored pair (ki , vi ), the update changes the association by ∆ vi⊤ Ski = − βt vt⊤ St kt − ct vi⊤ vt kt⊤ ki , (5) the product of value overlap and key overlap. Orthogonality in either factor protects a stored association, whereas the Hebbian and the Delta rule interference is controlled by key overlap alone. (iv) Capacity (see Appendix Property A11). Each triple (kt , vt , ct ) imposes one linear constraint a⊤ t s = ct on the dk dv entries of S, so up to dk dv scalar associations can be stored exactly when the features {ai } are linearly independent, against dk value vectors for Ski = vi . In particular, a single key can hold several mutually orthogonal values, which the read-out Sk returns as their sum. See Appendix A3 for more properties and more details on the above properties. Convergence, steady state, and memory norm bounds. We will present expected bounds on the memory norm, which in turn imply stable memory dynamics that obviate numerical instabilities. Memories grow with the length of the context and the number of vectors or associations to store; therefore long contexts are most relevant when analyzing memory stability. We model a long context as a stream of i.i.d. triples (kt , vt , ct ) ∼ p with fixed step size β and set Ā := E[aa⊤ ] ≻ 0,
b̄ := E[c a],
sLS := Ā−1 b̄,
ρ := c − a⊤ sLS ,
κ := β max ∥ai ∥2 , i
(6)
so S LS = argmin S E[(v ⊤ Sk−c)2 ] is the least-squares memory and ρ the irreducible residual, with E[ρ a] = 0. Throughout, 0 < β ∥ai ∥2 < 2, and qβ := 1 − β(2 − κ)λmin (Ā). Theorem 1 (Unbiased mean and steady state). The expected iterate obeys the exact recursion E[st+1 ] = (I − β Ā)E[st ] + β b̄, whose unique fixed point is sLS , so E[St ] − S LS F ≤ rt S0 − S LS F with r = maxk 1 − βλk (Ā) < 1. Moreover the iterates form a time-homogeneous Markov chain on Rdk dv whose kernel contracts on laws with finite second moment; by the standard theory of Markov chains on general state spaces (Meyn and Tweedie, 1993) it has a unique stationary distribution πβ , the law of St converges to it geometrically from any initialization, and the stationary mean is exactly Eπβ [S] = S LS . Theorem 1 combines Appendix Theorem A6 and Appendix Theorem A7 which have been proven in Appendix A3. Theorem 2 (Memory norm bounds). With λmin , λmax the extreme eigenvalues of Ā, the least-squares memory is sandwiched by the explained target energy, E[c2 ] − E[ρ2 ] ≤ λmax (Ā)
2
S LS F ≤
E[c2 ] − E[ρ2 ] , λmin (Ā)
(7)
and all its singular values obey the same upper bound; residual energy can only shrink it. In the non-expansive regime κ ≤ 1, the steady state and — started at S0 = 0 — every iterate satisfies Eπβ ∥S∥2F ≤
E[c2 ] , λmin (Ā)
2 4 E[c2 ] t/2 2 E[c ] E ∥St ∥2F ≤ 1 + qβ ≤ , λmin (Ā) λmin (Ā)
(8)
the transient factor decays geometrically from 4 to 1. 4
Kronecker Delta Rule for Long Context Linear Attention
Theorem 2 combines Appendix Theorem A8, Appendix Theorem A9, and Appendix Theorem A10 which are proven in Appendix A3. From the first step onward, the expected memory of the rule is bounded by a constant determined by the data distribution alone. More details and theoretical results are given in Appendix A3.
2.2 The KronLSTM architecture In modern deep learning architectures for sequence modeling, the matrix update rules are stabilized and enhanced with gating mechanisms. The mLSTM (Beck et al., 2024) places the Hebbian write (1) under a sigmoid forget gate and an exponential input gate, and Gated DeltaNet (Yang et al., 2025) decays the memory of (2) by a scalar before the correction, St+1 = ft St + it vt kt⊤ , St+1 = ft St I − βt kt kt⊤ + βt vt kt⊤ . (9) Kimi Delta Attention (Kimi Team et al., 2025) makes the decay (key) channel-wise, and Gated DeltaNet-2 (Hatamizadeh et al., 2026) replaces the single βt by separate channel-wise erase and write gates. KronLSTM proceeds in the same way: the step size βt and the target ct of (3) become gates computed from the input; a forget gate decays the memory, and the rule is embedded in the projections, short convolutions, normalizations, and output gate of a standard sequence-mixer layer. All quantities below are per head, with key and value dimensions dk and dv ; we suppress the head index and write xt ∈ Rd for the layer input at step t. KronLSTM update. The forget gate is a diagonal matrix Ft with diagonal entries in (0, 1). It acts on the key dimension and hence decays the memory from the right, St Ft , retaining each key direction separately. We use target c̃t = ct /βt to decouple erase and write. The erase term of (3) is evaluated on the decayed memory St Ft . We obtain St+1 = St Ft − βt vt⊤ St Ft kt vt kt⊤ + ct vt kt⊤ , (10) | {z } | {z } {z } | forget
erase
write
so that forgetting, erasing, and writing are controlled by three separate gates, Ft , βt and ct . The standard coupled and the unit-target variant ct ≡ 1 are compared in Appendix A6, Table A3. Gates. The erase gate βt and the write gate ct are per-head scalars obtained from linear projections of the input followed by a sigmoid, βt = σ wβ⊤ xt + bβ ∈ (0, 1), ct = σ wc⊤ xt + bc ∈ (0, 1), (11) both bounded by construction. The diagonal vector ft of the forget gate Ft = diag(ft ) is obtained by raising a sigmoid gate to a learned positive per-head power, following the parameterization of Mamba (Gu and Dao, 2024) and Gated DeltaNet-2 (Hatamizadeh et al., 2026) a ft = σ(−(sf )t )a = 1 − σ((sf )t ) , (sf )t = Wf xt + bf ∈ Rdk , α = exp(alog ) ∈ R>0 , (12) where alog is a single learned scalar per head, broadcast over the dk key dimensions, and the exponent is taken component-wise. The sigmoid sets retention separately for each key direction as a function of the input. At the same time, the exponent rescales the head’s retention horizon by 1/a, so that heads can operate at widely different timescales without high pre-activations. Since alog is learned in log space, the baseline retention timescale spans orders of magnitude across heads, while within a head the per-direction variation comes entirely from the input. The read-out is gated by a sigmoid output gate ot = σ(Wo xt + bo ) ∈ (0, 1)dv . KronLSTM block. Queries, keys, and values are linear projections of xt , each followed by a short causal depthwise convolution and a SiLU activation, and are then ℓ2 -normalized with qt , kt ∈ Rdk and vt ∈ Rdv . The memory St ∈ Rdv ×dk is updated by (10) and read with the query, h̃t = St qt ∈ Rdv . The read-out passes through the sigmoid output gate and a per-head RMSNorm, and the concatenated heads are mixed by the output projection, ht = Wout RMSNorm ot ⊙ h̃t . 5
Kronecker Delta Rule for Long Context Linear Attention
Linear
linear projection short conv activation, norm gating, memory
Norm
Kronecker Delta Rule q, k, v
β
c
f
o
Lin.
Lin.
Lin.
Linear
L2
Conv Linear xt
Figure 3: Architecture of the KronLSTM block.
With ℓ2 -normalized keys and values and a sigmoid βt , we have βt ∥kt ∥2 ∥vt ∥2 = βt < 1, so every update is non-expansive and the memory operates in the regime of Theorem 2; the forget gate, with entries below one, only contracts it further. The architecture of the KronLSTM block is shown in Figure 3. It carries no state besides the memories St of its heads: there is no normalizer state and no stabilizer state as in the mLSTM. KronLSTM can serve as a drop-in replacement for the attention layer in a Transformer block, analogous to mLSTM and sLSTM in the xLSTM architecture.
3 Experimental Validation We experimentally validate the KronLSTM architecture on different benchmarks with a focus on language modeling tasks. We compare KronLSTM with the following recurrent linear attention architectures: Gated DeltaNet (GDN) (Yang et al., 2025), Kimi Delta Attention (KDA) (Kimi Team et al., 2025), Mamba-3 (Lahoti et al., 2026), and Gated DeltaNet-2 (GDN-2) (Hatamizadeh et al., 2026). Recent deployments of linear attention in frontier models follow two hybrid-setting paradigms: either interleave the linear layers with a small number of softmax attention layers (Kimi Team et al., 2025; Merrill et al., 2026; NVIDIA, 2025) or use sliding-window attention (SWA) instead (Cabannes et al., 2026; Hatamizadeh et al., 2026). The advantage of the latter is keeping the memory footprint constant with respect to the context length. Therefore, we evaluate every architecture in two settings: as a pure linear attention model, and as a hybrid with SWA layers. For the hybrid setting, we employ a window size of 2048 at a 5:1 ratio of linear attention to SWA layers. All models are pretrained on the FineWeb-Edu dataset using the Llama2 tokenizer (Touvron et al., 2023b). We train at a context of 8k, motivated by previous works (Beck et al., 2025a, 2026; Guo et al., 2026), where the throughput advantage of linear attention compared to the softmax attention emerges from 8k context onward. We evaluate the models within and extrapolating outside their context length (Section 3.2). The experiments in the following sections show 1.5B parameter models trained on 100B tokens. In Appendix A6, we provide a set of experiments at 400M model size.
3.1 Language Modeling We assess the performance of KronLSTM compared to leading linear attention variants on standard language modeling benchmarks, concretely on five commonsense reasoning tasks (HellaSwag (Zellers et al., 2019), PIQA (Bisk et al., 2020), ARC-easy and ARC-challenge (Clark et al., 2018), WinoGrande (Sakaguchi et al., 2021)) and on LAMBADA (Paperno et al., 2016), reporting accuracy on all six tasks, their average (Avg-6), and LAMBADA perplexity. Table 1 shows the results of both linear and hybrid models. Among all competitors, KronLSTM has the highest average accuracy over the six tasks and the lowest perplexity on LAMBADA. As a linear model, 6
Kronecker Delta Rule for Long Context Linear Attention
KronLSTM performs best on five out of six tasks and improves on average on the strongest competitor, KDA, by 1.6 accuracy points. The hybrid setting confirms KronLSTM’s performance advantage, leading on four of six tasks and achieving the lowest perplexity on LAMBADA. Hybrid models with sliding-window attention change the averages by at most about one accuracy point. While mLSTM, Mamba-3 and GDN-2 benefit most from adding SWA, GDN and KDA change only minimally; KronLSTM remains robust, leading among all configurations. Table 1: Downstream performance of 1.5B/100B models. Avg-6 is the mean accuracy over the five commonsense reasoning tasks and LAMBADA. Best per column in bold, second best underlined, separately for linear and hybrid models. Model
Hella
PIQA
ARC-e
ARC-c
Wino
LMB acc
Avg-6 ↑
LMB ppl ↓
Linear models GDN Mamba-3 KDA GDN-2 mLSTM
57.00 57.30 57.48 57.45 56.05
73.61 73.01 73.39 72.96 73.07
70.54 70.29 71.84 71.13 71.30
41.04 40.19 41.55 41.89 41.30
57.22 57.46 57.14 57.30 56.99
46.94 45.64 47.35 46.92 44.38
57.73 57.31 58.12 57.94 57.18
12.58 12.95 12.67 12.54 13.87
KronLSTM
59.19
73.45
74.03
43.60
60.06
47.97
59.72
11.72
Hybrid models GDN Mamba-3 KDA GDN-2 mLSTM
58.46 58.14 57.93 58.35 56.63
72.74 74.10 72.74 72.91 72.80
70.54 72.22 71.04 72.64 69.74
42.58 43.09 41.21 42.75 42.58
56.99 57.30 56.99 58.88 57.06
46.63 46.38 47.22 47.18 45.29
57.99 58.54 57.85 58.79 57.35
12.95 13.01 12.60 11.85 14.38
KronLSTM
59.80
73.78
71.93
44.11
58.96
48.77
59.56
11.18
3.2 Retrieval Capabilities On long-context tasks, the Kronecker Delta Rule should improve the most over previous update rules, as interference grows with context length. We assess the performance of KronLSTM on two benchmarks with different context lengths. The first benchmark is the real-world recall suite of Arora et al. (2024) (SWDE, SQuAD, FDA, TriviaQA, NQ, DROP) for 2k context. Results are given in Table 2. KronLSTM has the best average accuracy, and it is the best method in three out of six tasks in both pure linear attention models and hybrid models. In general, hybrid models using SWA gain five to nine accuracy points. The second benchmark is the RULER needle-in-a-haystack (NIAH) tasks (Hsieh et al., 2024) where models are evaluated at 4k, 8k and 16k context length, with 16k assessing the extrapolation capabilities of the models. Results are presented in Table 3. Among all linear attention models, KronLSTM is the best or second-best method across all sequence lengths, except for task S1. KronLSTM has the highest accuracy on S3 and MQ tasks across all sequence lengths. Among all hybrid models, KronLSTM achieves the highest accuracy (averaged over all lengths) on all tasks and has the highest accuracy at 16k on each task, confirming its strong long context capabilities. The improvement of KronLSTM over competitors like Gated DeltaNet is consistent with the interference analysis of Property A9. On S2 and S3, whose needles are unique sentences embedded in natural language text, KronLSTM outperforms GDN except for S2 at 16k. For hybrid models, KronLSTM outranks GDN-2 and Mamba-3 by 15.2 accuracy points on S2 at 4k. KronLSTM’s margin increases on MQ and MV with sequence length. On MQ, KronLSTM’s lead distance grows from 2.4 to 4.1 accuracy points when increasing the context from 4k to 16k. On MV, KronLSTM is 3.5 accuracy points behind the best method, GDN, for 4k context, while KronLSTM is the leading method for 8k and 16k, with a 1.1 and 3.8 accuracy point lead, respectively.
7
Kronecker Delta Rule for Long Context Linear Attention
Table 2: Results for 1.5B models on the real-world recall suite, given in accuracies for 2k context length. Best per column in bold, second best underlined. Model
SWDE
SQD
FDA
TQA
NQ
DROP
Avg-6 ↑
Linear models GDN Mamba-3 KDA GDN-2 mLSTM
28.62 27.54 25.83 29.70 27.54
37.33 35.86 37.30 36.29 36.96
14.79 11.43 12.98 14.43 11.98
60.49 59.18 62.14 60.07 59.77
16.47 15.39 16.31 15.90 15.11
21.18 21.03 20.46 19.93 21.37
29.81 28.41 29.17 29.39 28.79
KronLSTM
30.87
39.28
15.34
61.61
15.46
19.31
30.31
Hybrid models GDN Mamba-3 KDA GDN-2 mLSTM
43.20 42.84 42.30 43.38 46.08
40.58 44.67 42.79 42.19 43.47
23.59 29.22 30.04 28.31 27.77
61.91 63.92 61.02 60.84 59.66
17.90 17.26 18.12 17.36 17.29
24.44 23.86 21.80 23.05 23.96
35.27 36.96 36.01 35.85 36.37
KronLSTM
46.89
43.57
27.86
64.51
18.82
22.76
37.40
For longer contexts, the memory updates of GDN more frequently interfere with already stored content and perturb it, resulting in more degraded performance at 16k. In contrast, the Kronecker Delta Rule is less invasive and performs better at longer contexts. The exception is S1, where KronLSTM underperforms. S1 is the most artificial task with frequently repeated noise sentences, which is unrealistic for real-world text. We attribute the performance drop of the KronLSTM in this task to the residual accumulation for recurring keys. Hybrid models with SWA have a considerably smaller S1 accuracy, except KronLSTM. The hybrid models containing the baseline linear attention layers reach at most 51.8, 26.6, and 12.6 accuracy for 4k, 8k, and 16k context length, respectively. These accuracies closely match the fraction of the context covered by the attention window, indicating that the needle is primarily retrieved when it lies within the window, with Mamba-3 and mLSTM dropping to zero at 16k. The results suggest limited reliance on the recurrent architecture’s memory. KronLSTM exceeds these accuracies on average across all context lengths and achieves the best performance across all six tasks at 16k. Section 3.3 examines how these methods perform after context extension.
3.3 Long Context Extension In applications, language models do not extrapolate to longer context but are trained on them, typically by continued pretraining at increased context length (Fu et al., 2024; Gao et al., 2024). This stage unlocks retrieval far beyond the original pretraining length (Fu et al., 2024). Linear attention models have no positional encoding to adapt; rather, they must learn to keep more associations over longer time spans. We therefore branch the 1.5B linear KronLSTM and GDN-2 runs at 75B tokens and train them for the remaining 25B tokens at a sequence length of 32k on a long-document mixture derived from ProLong-64K (Gao et al., 2024), so that the context-length-extended models are token-matched to the 100B models of the previous sections. GDN-2 serves as a reference model in this experiment since it also decouples erase and write. Further details on training are described in Appendix A7.1. Table 4 shows the commonsense reasoning, LAMBADA, and recall results of the extended models. Both models benefit from length extension on the reasoning and recall tasks, and perplexity improves by about 4 perplexity points. KronLSTM keeps its lead: it has the higher average accuracy and the lower perplexity, and it is better on five of the six recall tasks.
8
Kronecker Delta Rule for Long Context Linear Attention
Table 3: Results of 1.5B models on the NIAH tasks for 8k pretraining context and 4k, 8k, and 16k evaluation context. S1–S3: S-NIAH-1/2/3; MK: MK-NIAH-1; MQ: MQ-NIAH; MV: MV-NIAH. Best per task and length in bold, second best underlined, separately for linear and hybrid models. Linear models
Hybrid models
Model
Len. S1
S2
S3
MK
MQ
MV
S1
S2
S3
MK
MQ
MV
GDN
4k 100.0 8k 100.0 16k 99.2
96.0 45.6 17.8
54.8 13.0 5.4
28.0 24.0 17.8
44.8 21.2 8.6
46.8 23.5 13.8
51.8 26.6 12.6
52.6 31.2 16.8
21.8 22.2 3.6
31.0 24.6 18.4
40.6 17.8 6.9
38.3 18.8 8.8
Mamba-3
4k 92.0 8k 59.0 16k 28.0
68.2 27.0 13.6
26.4 5.4 3.0
26.8 20.6 13.4
20.0 4.2 5.3
18.4 3.6 4.5
51.6 26.6 0.0
56.0 31.2 0.0
30.2 15.0 0.0
34.4 24.2 0.0
19.1 10.7 0.0
21.3 22.4 0.0
KDA
4k 99.8 8k 99.0 16k 93.6
89.4 35.4 14.2
12.0 11.6 1.6
20.8 15.8 11.8
18.4 13.3 3.1
19.1 13.3 5.7
51.8 26.6 12.6
55.8 31.2 16.8
31.4 5.0 4.4
44.8 22.8 17.2
33.0 16.3 3.1
42.5 22.8 11.7
GDN-2
4k 100.0 8k 99.8 16k 99.6
72.8 44.6 8.2
50.2 15.4 4.2
26.6 17.6 7.2
28.4 13.4 2.7
38.1 21.4 5.1
51.8 26.6 7.4
56.0 31.2 16.6
45.6 18.8 6.0
51.8 25.4 17.6
33.2 23.2 3.0
40.5 22.7 12.8
mLSTM
4k 92.4 8k 41.6 16k 17.8
89.2 49.4 22.6
1.4 2.4 2.0
27.0 26.2 15.4
22.5 5.7 5.0
19.7 12.4 6.9
51.8 26.6 12.6
56.0 31.2 0.6
30.6 16.8 0.0
49.0 26.8 0.0
21.9 14.9 0.4
38.0 24.6 0.8
4k 66.2 KronLSTM 8k 29.4 16k 11.6
98.2 60.4 16.0
73.4 20.4 11.8
28.2 23.4 16.0
47.2 24.8 12.7
43.3 24.6 17.6
64.8 33.6 16.2
71.2 35.0 17.4
51.2 17.4 7.0
51.0 28.6 21.0
38.8 23.1 12.2
44.5 21.8 13.2
Table 4: Long-context (32k) extension results for GDN-2 and KronLSTM models. Avg-6 is the mean accuracy of the five reasoning tasks plus LAMBADA acc; the remaining columns give accuracy on the real-world recall suite evaluated at 2048 tokens. The best per column is in bold. Model
Avg-6 ↑
LMB ppl ↓
SWDE
SQD
FDA
TQA
NQ
DROP
Recall avg ↑
60.19 60.37
14.54 15.36
19.36 21.03
29.95 31.08
62.50 63.39
15.24 16.95
21.75 22.90
35.21 36.23
Linear models GDN-2 KronLSTM
58.75 60.19
8.36 7.66
29.61 31.68
36.39 39.88
19.60 18.15
Hybrid models GDN-2 KronLSTM
59.32 60.10
8.27 7.64
40.41 46.08
40.95 44.10
30.40 23.96
Results for context extension at the RULER tasks are given in Figure 4 and Table A4. As expected, KronLSTM shows its advantage by extending the training context length. While both architectures perform strongly on single-needle retrieval at shorter contexts, KronLSTM increasingly outperforms GDN-2 on the more challenging NIAH tasks, ranging from 8k to 32k. At 16k, this advantage is particularly pronounced on S-3 and MV, with KronLSTM leading on most tasks except S1, where GDN-2 remains stronger. At 32k, KronLSTM maintains its lead across all five tasks, although both architectures experience a substantial drop in retrieval accuracy compared to 16k. The gap between the two models widens with haystack size, as predicted by the interference analysis in Section 2.1: longer contexts accumulate more interference, and KronLSTM’s update rule suffers less of it.
9
Kronecker Delta Rule for Long Context Linear Attention
S1
Accuracy (%)
100
S3
75 50 25 0
4k
8k
16k
32k
4k
8k
16k
MK
100
Accuracy (%)
S2
32k
4k
8k
MQ
16k
32k
16k
32k
MV
75 50 25 0
4k
8k
16k
Context length GDN-2
32k
4k
8k
16k
32k
Context length
KronLSTM
4k
GDN-2 (hybrid)
8k
Context length
KronLSTM (hybrid)
Figure 4: GDN-2 and KronLSTM results on NIAH for 32k context extension for linear and SWA-hybrid models.
3.4 State Tracking Capabilities
Accuracy (%)
KronLSTM can perform state tracking by setting βt = 2σ(wβ⊤ xt + bβ ) ∈ (0, 2), as described in Grazzi et al. (2025) for DeltaNet. We evaluate KronLSTM’s state tracking capabilities on parity, S3 permutation, and modulo arithmetic. We train up to sequence length 128 and evaluate up to 1024. Figure 5 shows that KronLSTM has similar state tracking capabilities as Gated DeltaNet on the parity and S3 tasks, both ahead of Mamba-3, which wins on modulo arithmetic. Parity
100
Mod. Arith
S3
75 50 25 0
128 (train)
256
512
1024
128 (train)
256
512
1024
128 (train)
256
512
1024
Sequence length GDN
Mamba-3
§1 sd (3 seeds)
KronLSTM
Figure 5: State tracking results for Gated DeltaNet (GDN), Mamba-3, and KronLSTM.
Figure 6 reports end-to-end training throughput of the purely linear 1.5B models on a single NVIDIA H100 (80 GB), following Hatamizadeh et al. (2026): each step processes 16,384 tokens, split from 2K×8 to 16K×1 (sequence length × batch size), and all models share the same training stack. KronLSTM reaches 36.8–44.5K tokens/s, 11–18% more than GDN-2 at every shape and within 4–8% of KDA up to 8K×2. GDN, whose scalar decay admits the cheapest kernels, remains the fastest. Throughput is nearly flat while a step holds at least two sequences; at 16K×1 all models slow down, since the inter-chunk recurrence parallelizes only over sequences and heads.
Throughput (k tokens/s)
3.5 Training Efficiency
60
50
40
30 2k×8
4k×4
8k×2
16k×1
Sequence length × batch GDN
KDA
GDN-2
KronLSTM
Figure 6: Training throughput of KronLSTM against baselines on a single H100-80GB. 10
Kronecker Delta Rule for Long Context Linear Attention
4 Conclusion We have introduced the Kronecker Delta Rule, an update rule for associative matrix memories that corrects a scalar association along a single direction, and KronLSTM, which embeds this rule in a gated linear attention mixer. We proved that the memory dynamics converge to a unique steady state and that the expected memory norm is bounded at every step. KronLSTM has the best average accuracy on commonsense reasoning and real-world recall, both as a linear model and as a hybrid. Averaged over the context lengths, it is the best or second-best linear model on every natural-text RULER task, and on S1 it is the only one that retrieves needles beyond the sliding attention window in hybrid models. After extending the context to 32k, KronLSTM outperforms GDN-2 on all natural-text retrieval tasks from 16k onward. Future work includes scaling up KronLSTM and training hybrid models containing full softmax attention layers.
AI use statement The Kronecker Delta Rule and the KronLSTM architecture originated with the authors without AI assistance. LLMs were used to assist in developing the theoretical results and in implementing the method. Claude Fable 5 and Claude Fable 5.1 assisted in deriving the properties of the Kronecker Delta Rule and the convergence and memory norm bounds of Section 2.1 and Appendix A3; every statement and proof was checked independently by the authors, who take full responsibility for their correctness. Claude Fable 5 was further used to examine candidate formulations of the Kronecker Delta Rule, in particular the coupled, decoupled, and unit-target write variants, for their viability; the choice of the form in (10) based on was made by the authors on the basis of ablation studies such as in Appendix A6. Fable 5.1 was used to assist in deriving the chunkwise-parallel formulation of KronLSTM. The formulation was subsequently checked thoroughly by our team. Claude Fable 5 and Claude Fable 5.1 were used to optimize the chunkwise-parallel and recurrent kernels of KronLSTM; the resulting kernels were numerically verified against naive reference implementations written by the authors. We did not use generative AI tools to interpret results or to design experiments. We have not used generative AI tools to generate synthetic data or to propose hypotheses, and translation, dataset cleaning and reformatting, and qualitative or thematic data analysis do not apply to this work. Additionally, we used Claude Fable 5 and Claude Opus 5 to draft parts of the manuscript and to edit it for readability. All AI-drafted text was revised by the authors. We have reviewed all AI-assisted work and take responsibility for the final content of this work, including text, claims, and artifacts produced with the aid of generative AI. Acknowledgments This work was supported by the Austrian Science Fund (FWF) 10.55776/COE12 and the European Union’s Horizon Europe research and innovation program under grant agreement number 101214398 (ELLIOT). The ELLIS Unit Linz, the LIT AI Lab, and the Institute for Machine Learning are supported by the Federal State of Upper Austria. We acknowledge the EuroHPC Joint Undertaking for awarding us access to Leonardo at CINECA, Italy, to Marenostrum 5 at the Barcelona Supercomputing Centre (BSC), Spain, and to JUPITER at Jülich Supercomputing Centre (JSC), Germany. We would like to thank Stephanie Holly for checking the mathematical proofs of A3.5.4 and Bálint László Szarvas for proofreading and making suggestions to this manuscript.
11
Kronecker Delta Rule for Long Context Linear Attention
References Qwen Team. Qwen Technical Report, 2023. arXiv:2309.16609 [cs]. B. Alkin, M. Beck, K. Pöppel, S. Hochreiter, and J. Brandstetter. Vision-LSTM: xLSTM as Generic Vision Backbone. In International Conference on Learning Representations, volume 13, Singapore, Singapore, 2025. OpenReview. URL https://openreview.net/forum?id=SiH7DwNKZZ. J. A. Anderson. A simple neural network generating an interactive memory. Mathematical Biosciences, 14(3-4): 197–220, 1972. S. Arora, S. Eyuboglu, M. Zhang, A. Timalsina, S. Alberti, D. Zinsley, J. Zou, A. Rudra, and C. Ré. Simple linear attention language models balance the recall-throughput tradeoff. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 1763– 1840, Vienna, Austria, 2024. PMLR. URL https://proceedings.mlr.press/v235/arora24a.html. M. Beck, K. Pöppel, M. Spanring, A. Auer, O. Prudnikova, M. Kopp, G. Klambauer, J. Brandstetter, and S. Hochreiter. xLSTM: Extended Long Short-Term Memory. In Advances in Neural Information Processing Systems, volume 37, pages 107547–107603, Vancouver, BC, Canada, 2024. Curran Associates, Inc. doi: 10.52202/079017-3417. URL https://proceedings.neurips.cc/paper_files/paper/2024/hash/ c2ce2f2701c10a2b2f2ea0bfa43cfaa3-Abstract-Conference.html. M. Beck, K. Pöppel, P. Lippe, and S. Hochreiter. Tiled flash linear attention: More efficient linear RNN and xLSTM kernels. In Advances in Neural Information Processing Systems (NeurIPS), volume 38, San Diego, CA, USA, 2025a. Curran Associates, Inc. URL https://openreview.net/forum?id=b6H64u6TqI. M. Beck, K. Pöppel, P. Lippe, R. Kurle, P. M. Blies, G. Klambauer, S. Böck, and S. Hochreiter. xLSTM 7B: A recurrent LLM for fast and efficient inference. In Proceedings of the 42nd International Conference on Machine Learning (ICML), volume 267 of Proceedings of Machine Learning Research, pages 3335–3357, Vancouver, BC, Canada, 2025b. PMLR. URL https://proceedings.mlr.press/v267/beck25b.html. M. Beck, K. Schweighofer, S. Böck, S. Lehner, and S. Hochreiter. xLSTM scaling laws: Competitive performance with linear time-complexity. In International Conference on Learning Representations. OpenReview, 2026. doi: 10.48550/arXiv.2510.02228. URL https://arxiv.org/abs/2510.02228. arXiv:2510.02228 [cs]. A. Behrouz, P. Zhong, and V. Mirrokni. Titans: Learning to memorize at test time. In Advances in Neural Information Processing Systems, 2025. arXiv:2501.00663. A. Behrouz, M. Razaviyayn, P. Zhong, and V. Mirrokni. It’s all connected: A journey through test-time memorization, attentional bias, retention, and online optimization. International Conference on Learning Representations, 2026. URL https://arxiv.org/abs/2504.13173. C. H. Bischof and C. F. VanLoan. The WY representation for products of householder matrices. SIAM Journal on Scientific and Statistical Computing, 8(1):s2–s13, 1987. doi: 10.1137/0908009. Y. Bisk, R. Zellers, J. Gao, Y. Choi, et al. Piqa: Reasoning about physical commonsense in natural language. In Proceedings of the AAAI conference on artificial intelligence, volume 34, pages 7432–7439, 2020. URL https://ojs.aaai.org/index.php/AAAI/article/view/6239. R. Bogacz and M. W. Brown. An anti-Hebbian model of familiarity discrimination in the perirhinal cortex. Neurocomputing, 52–54:1–6, 2003. doi: 10.1016/S0925-2312(02)00738-5. L. Cabannes, M. Beck, M. Lomeli, G. Szilvasy, M. Douze, J. Copet, P.-E. Mazaré, G. Synnaeve, and H. Jégou. Short window attention enables long-term memorization. In International Conference on Learning Representations, volume 14, pages 79759–79774, 2026. URL https://openreview.net/forum?id=btgVfhudI1. A. Cegielski. Iterative Methods for Fixed Point Problems in Hilbert Spaces, volume 2057 of Lecture Notes in Mathematics. Springer, 2012. X. Chen. The Kaczmarz algorithm, row action methods, and statistical learning algorithms. In Contemporary Mathematics, volume 706, pages 115–127, 2018. ISBN 9781470436193. doi: 10.1090/conm/706/14216. P. Clark, I. Cowhey, O. Etzioni, T. Khot, A. Sabharwal, C. Schoenick, and O. Tafjord. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457, 2018. URL 12
Kronecker Delta Rule for Long Context Linear Attention
https://arxiv.org/abs/1803.05457. T. Dao and A. Gu. Transformers are SSMs: Generalized models and efficient algorithms through structured state space duality. In Forty-first International Conference on Machine Learning, volume 235, pages 10041–10071, Vienna, Austria, 2024. PMLR. URL https://openreview.net/forum?id=ztn8FCR1td. Y. Fu, R. Panda, X. Niu, X. Yue, H. Hajishirzi, Y. Kim, and H. Peng. Data engineering for scaling language models to 128K context. In Ruslan Salakhutdinov, Zico Kolter, Katherine Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp, editors, Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 14125–14134. PMLR, 21–27 Jul 2024. URL https://proceedings.mlr.press/v235/fu24d.html. T. Gao, A. Wettig, H. Yen, and D. Chen. How to train long-context language models (effectively). ArXiv:2410.02660, 2024. URL https://arxiv.org/abs/2410.02660. R. Grazzi, J. Siems, A. Zela, J. K. H. Franke, F. Hutter, and M. Pontil. Unlocking State-Tracking in Linear RNNs Through Negative Eigenvalues. In International Conference on Learning Representations, volume 13, Singapore, Singapore, 2025. URL https://openreview.net/forum?id=UvTo3tVBk2. A. Gu and T. Dao. Mamba: Linear-Time Sequence Modeling with Selective State Spaces. In Conference on Language Modeling, volume 1, Philadelphia, PA, USA, 2024. OpenReview. URL https://openreview. net/forum?id=tEYskw1VY2. H. Guo, S. Yang, T. Goel, E. P. Xing, T. Dao, and Y. Kim. Log-Linear Attention. In International Conference on Learning Representations. OpenReview, 2026. URL https://openreview.net/forum?id=mOJgZWkXKW. A. Hatamizadeh, Y. Choi, and J. Kautz. Gated DeltaNet-2: Decoupling erase and write in linear attention, 2026. URL https://arxiv.org/abs/2605.22791. S. Hochreiter. Untersuchungen zu dynamischen neuronalen Netzen. Diploma thesis, Institut für Informatik, Lehrstuhl Prof. Brauer, Technische Universität München, 1991. S. Hochreiter and J. Schmidhuber. Long Short-Term Memory. Neural Computation, 9(8):1735–1780, 1997. ISSN 0899-7667, 1530-888X. doi: 10.1162/neco.1997.9.8.1735. URL https://www.mitpressjournals. org/doi/abs/10.1162/neco.1997.9.8.1735. S. Hochreiter, Y. Bengio, P. Frasconi, and J. Schmidhuber. Gradient flow in recurrent nets: the difficulty of learning long-term dependencies. In J. Kolen and S. Kremer, editors, A Field Guide to Dynamical Recurrent Networks. IEEE Press, 2000. P.J. Hoedt, F. Kratzert, D. Klotz, C. Halmich, M. Holzleitner, G. Nearing, S. Hochreiter, and G. Klambauer. Mc-lstm: Mass-conserving lstm. In International Conference on Machine Learning, pages 4275–4286. PMLR, 2021. C.-P. Hsieh, S. Sun, S. Kriman, S. Acharya, D. Rekesh, F. Jia, Y. Zhang, and B. Ginsburg. RULER: What’s the Real Context Size of Your Long-Context Language Models? In Conference on Language Modeling, volume 1, Philadelphia, PA, USA, 2024. OpenReview. URL https://openreview.net/pdf?id=kIoBbc76Sy. S. Kaczmarz. Angenäherte Auflösung von Systemen linearer Gleichungen. Bulletin International de l’Académie Polonaise des Sciences et des Lettres, Classe des Sciences Mathématiques et Naturelles, Série A, 35:355–357, 1937. A. Katharopoulos, A. Vyas, N. Pappas, and F. Fleuret. Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention. In E. H. Daumé III and A. Singh, editors, Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 5156– 5165, virtual, 2020. PMLR. URL http://proceedings.mlr.press/v119/katharopoulos20a.html. Kimi Team, Y. Zhang, Z. Lin, X. Yao, J. Hu, F. Meng, C. Liu, X. Men, S. Yang, Z. Li, W. Li, E. Lu, W. Liu, Y. Chen, W. Xu, L. Yu, Y. Wang, Y. Fan, L. Zhong, E. Yuan, D. Zhang, Y. Zhang, T. Y. Liu, H. Wang, S. Fang, W. He, S. Liu, Y. Li, J. Su, J. Qiu, B. Pang, J. Yan, Z. Jiang, W. Huang, B. Yin, J. You, C. Wei, Z. Wang, C. Hong, Y. Chen, G. Chen, Y. Wang, H. Zheng, F. Wang, Y. Liu, M. Dong, Z. Zhang, S. Pan, W. Wu, Y. Wu, L. Guan, J. Tao, G. Fu, X. Xu, Y. Wang, G. Lai, Y. Wu, X. Zhou, Z. Yang, and Y. Du. Kimi linear: An expressive, efficient attention architecture, 2025. URL https://arxiv.org/abs/2510.26692. arXiv:2510.26692 [cs]. 13
Kronecker Delta Rule for Long Context Linear Attention
T. Kohonen. Correlation matrix memories. IEEE Transactions on Computers, C-21(4):353–359, 1972. A. Lahoti, K. Y. Li, B. Chen, C. Wang, A. Bick, J. Z. Kolter, T. Dao, and A. Gu. Mamba-3: Improved sequence modeling using state space principles. In The Fourteenth International Conference on Learning Representations, volume 14, pages 86173–86202, Rio de Janeiro, Brazil, 2026. OpenReview. URL https: //openreview.net/forum?id=HwCvaJOiCj. B. Liu, R. Wang, L. Wu, Y. Feng, P. Stone, and Q. Liu. Longhorn: State space models are amortized online learners. In International Conference on Learning Representations (ICLR), 2025. URL https: //arxiv.org/abs/2407.14207. J. Liu, S. Elflein, O. Litany, Z. Gojcic, and R. Li. Test-time training with KV binding is secretly linear attention. Forty-third International Conference on Machine Learning (ICML), 2026. URL https://arxiv.org/abs/ 2602.21204. W. Merrill, Y. Li, T. Romero, A. Svete, C. Costello, P. Dasigi, D. Groeneveld, D. Heineman, B. Kuehl, N. Lambert, C. Li, K. Lo, S. Malik, D. J. Matusz, B. Minixhofer, J. Morrison, L. Soldaini, F. Timbers, P. Walsh, N. A. Smith, H. Hajishirzi, and A. Sabharwal. Olmo Hybrid: From Theory to Practice and Back, 2026. URL http://arxiv.org/abs/2604.03444. arXiv:2604.03444 [cs]. S. P. Meyn and R. L. Tweedie. Markov Chains and Stochastic Stability. Springer, London, 1993. 2nd edition: Cambridge University Press, 2009. M. Mishra. LM Engine: A Hyper-Optimized Library for Pretraining and Finetuning, 2024. URL https: //github.com/open-lm-engine/lm-engine. NVIDIA. Nemotron 3 Nano: Open, Efficient Mixture-of-Experts Hybrid Mamba-Transformer Model for Agentic Reasoning, 2025. URL http://arxiv.org/abs/2512.20848. arXiv:2512.20848 [cs]. OpenAI. gpt-oss-120b & gpt-oss-20b Model Card, 2025. URL https://arxiv.org/abs/2508.10925. arXiv:2508.10925 [cs]. D. Paperno, G. Kruszewski, A. Lazaridou, N. Pham, R. Bernardi, S. Pezzelle, M. Baroni, G. Boleda, and R. Fernández. The LAMBADA dataset: Word prediction requiring a broad discourse context. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1525–1534, 2016. doi: 10.18653/v1/P16-1144. B. Peng, D. Goldstein, Q. Anthony, A. Albalak, E. Alcaide, S. Biderman, E. Cheah, X. Du, T. Ferdinan, H. Hou, P. Kazienko, K. K. GV, J. Kocoń, B. Koptyra, S. Krishna, R. McClelland Jr., J. Lin, N. Muennighoff, F. Obeid, A. Saito, G. Song, H. Tu, C. Wirawan, S. Woźniak, R. Zhang, B. Zhao, Q. Zhao, P. Zhou, J. Zhu, and R.-J. Zhu. Eagle and Finch: RWKV with matrix-valued states and dynamic recurrence, 2024. URL https://arxiv.org/abs/2404.05892. B. Peng, R. Zhang, D. Goldstein, E. Alcaide, X. Du, H. Hou, J. Lin, J. Liu, J. Lu, W. Merrill, G. Song, K. Tan, S. Utpala, N. Wilce, J. S. Wind, T. Wu, D. Wuttke, and C. Zhou-Zheng. RWKV-7 Goose with expressive dynamic state evolution. arXiv:2503.14456, 2025. URL https://arxiv.org/abs/2503.14456. D. Prados and S. Kak. Neural network capacity using delta rule. Electronics Letters, 25(3):197–199, 1989. K. Sakaguchi, R. Bras, C. Bhagavatula, and Y. Choi. Winogrande: An adversarial winograd schema challenge at scale. Communications of the ACM, 64(9):99–106, 2021. I. Schlag, K. Irie, and J. Schmidhuber. Linear transformers are secretly fast weight programmers. In M. Meila and T. Zhang, editors, Proceedings of the 38th International Conference on Machine Learning (ICML), volume 139, pages 9355–9366, virtual, 2021. PMLR. URL https://proceedings.mlr.press/v139/ schlag21a.html. J. Schmidhuber. Learning to control fast-weight memories: An alternative to dynamic recurrent networks. Neural Computation, 4(1):131–139, 1992. N. Schmidinger, L. Schneckenreiter, P. Seidl, J. Schimunek, P.-J. Hoedt, J. Brandstetter, A. Mayr, S. Luukkonen, S. Hochreiter, and G. Klambauer. Bio-xLSTM: Generative modeling, representation and in-context learning of biological and chemical sequences. In International Conference on Learning Representations (ICLR), 2025. URL https://openreview.net/forum?id=IjbXZdugdj.
14
Kronecker Delta Rule for Long Context Linear Attention
T. Schmied, T. Adler, V. P. Patil, M. Beck, K. Pöppel, J. Brandstetter, G. Klambauer, R. Pascanu, and S. Hochreiter. A Large Recurrent Action Model: xLSTM enables Fast Inference for Robotics Tasks. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 53343–53387, Vancouver, BC, Canada, 2025. PMLR. URL https://proceedings.mlr.press/v267/schmied25a.html. J. Siems, T. Carstensen, A. Zela, F. Hutter, M. Pontil, and R. Grazzi. DeltaProduct: Improving state-tracking in linear RNNs via Householder products. In Advances in Neural Information Processing Systems (NeurIPS), volume 38, San Diego, CA, USA, 2025. Curran Associates, Inc. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/ e1ea2520fbf9cd1600b287dde67e0a3c-Abstract-Conference.html. T. Strohmer and R. Vershynin. A randomized Kaczmarz algorithm with exponential convergence. Journal of Fourier Analysis and Applications, 15(2):262–278, 2009. URL https://link.springer.com/article/ 10.1007/s00041-008-9030-4. Y. Sun, X. Li, K. Dalal, J. Xu, A. Vikram, G. Zhang, Y. Dubois, X. Chen, X. Wang, S. Koyejo, T. Hashimoto, and C. Guestrin. Learning to (learn at test time): RNNs with expressive hidden states. arXiv:2407.04620, 2024. URL https://arxiv.org/abs/2407.04620. H. Touvron, T. Lavril, G. Izacard, X. Martinet, M.-A. Lachaux, T. Lacroix, B. Rozière, N. Goyal, E. Hambro, F. Azhar, et al. Llama: Open and efficient foundation language models. ArXiv preprint, abs/2302.13971, 2023a. URL https://arxiv.org/abs/2302.13971. H. Touvron, L. Martin, K. Stone, P. Albert, A. Almahairi, Y. Babaei, N. Bashlykov, S. Batra, P. Bhargava, S. Bhosale, D. Bikel, L. Blecher, C. C. Ferrer, M. Chen, G. Cucurull, D. Esiobu, J. Fernandes, J. Fu, W. Fu, B. Fuller, C. Gao, V. Goswami, N. Goyal, A. Hartshorn, S. Hosseini, R. Hou, H. Inan, M. Kardas, V. Kerkez, M. Khabsa, I. Kloumann, A. Korenev, P. S. Koura, M.-A. Lachaux, T. Lavril, J. Lee, D. Liskovich, Y. Lu, Y. Mao, X. Martinet, T. Mihaylov, P. Mishra, I. Molybog, Y. Nie, A. Poulton, J. Reizenstein, R. Rungta, K. Saladi, A. Schelten, R. Silva, E. M. Smith, R. Subramanian, X. E. Tan, B. Tang, R. Taylor, A. Williams, J. X. Kuan, P. Xu, Z. Yan, I. Zarov, Y. Zhang, A. Fan, M. Kambadur, S. Narang, A. Rodriguez, R. Stojnic, S. Edunov, and T. Scialom. Llama 2: Open foundation and fine-tuned chat models, 2023b. URL https://arxiv.org/abs/2307.09288. A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, Aidan N. Gomez, L. Kaiser, and I. Polosukhin. Attention Is All You Need. In Isabelle Guyon, Ulrike von Luxburg, Samy Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, and Roman Garnett, editors, Advances in Neural Information Processing Systems, volume 30, pages 5998–6008, Long Beach, CA, USA, 2017. Curran Associates, Inc. URL https://proceedings.neurips.cc/paper/2017/hash/ 3f5ee243547dee91fbd053c1c4a845aa-Abstract.html. C. Villani. Optimal Transport: Old and New, volume 338 of Grundlehren der mathematischen Wissenschaften. Springer Berlin Heidelberg, 2009. ISBN 978-3-540-71049-3. doi: 10.1007/978-3-540-71050-9. J. von Oswald, M. Schlegel, A. Meulemans, S. Kobayashi, E. Niklasson, N. Zucchet, N. Scherrer, N. Miller, M. Sandler, B. Agüera y Arcas, M. Vladymyrov, R. Pascanu, and J. Sacramento. Uncovering mesaoptimization algorithms in transformers. arXiv:2309.05858, 2023. URL https://arxiv.org/abs/2309. 05858. B. Widrow and M. E. Hoff. Adaptive switching circuits. In 1960 IRE WESCON Convention Record, Part 4, pages 96–104, 1960. S. Yang and Y. Zhang. FLA: A Triton-Based Library for Hardware-Efficient Implementations of Linear Attention Mechanism, 2026. URL https://github.com/fla-org/flash-linear-attention. S. Yang, B. Wang, Y. Zhang, Y. Shen, and Y. Kim. Parallelizing linear transformers with the delta rule over sequence length. In Advances in Neural Information Processing Systems (NeurIPS), volume 37, pages 115491–115522, Vancouver, BC, Canada, 2024. Curran Associates, Inc. doi: 10.52202/079017-3668. URL https://arxiv.org/abs/2406.06484. S. Yang, J. Kautz, and A. Hatamizadeh. Gated delta networks: Improving mamba2 with delta rule. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/ 15
Kronecker Delta Rule for Long Context Linear Attention
forum?id=r8H7xhYPwz. R. Zellers, A. Holtzman, Y. Bisk, A. Farhadi, and Y. Choi. Hellaswag: Can a machine really finish your sentence? In Proceedings of the 57th annual meeting of the association for computational linguistics, pages 4791–4800, 2019. URL https://aclanthology.org/P19-1472/.
16
Kronecker Delta Rule for Long Context Linear Attention
Contents 1
Introduction
1
2
KronLSTM 2.1 Kronecker Delta Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2 The KronLSTM architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3 3 5
3
Experimental Validation 3.1 Language Modeling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 Retrieval Capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3 Long Context Extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4 State Tracking Capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.5 Training Efficiency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6 6 7 8 10 10
4
Conclusion
11
Appendices
19
A1 Notation Table
19
A2 Related Work A2.1 Long Short-Term Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A2.2 The delta-rule linear attention family . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A2.3 The online-learning perspective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A2.4 Classical update and learning rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A2.5 Relation to cognitive and neuroscience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
20 20 20 20 21 21
A3 Kronecker Delta Rule: Setting, Name, Properties A3.1 Setup and notation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A3.2 Name Kronecker Delta Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A3.3 Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A3.4 Minimally Invasive Memory Revision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A3.4.1 The admissible set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A3.4.2 Minimality in norm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A3.4.3 Minimality of support: the correction is surgical . . . . . . . . . . . . . . . . . . . . A3.4.4 Minimality of interference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A3.4.5 Relaxed steps: the correction never moves away from a correct memory . . . . . . . . A3.4.6 Greedy minimality is global minimality . . . . . . . . . . . . . . . . . . . . . . . . . A3.4.7 Less invasive than DeltaNet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A3.5 Convergence of the KronLSTM memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A3.5.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A3.5.2 Setting and notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A3.5.3 Theorems on expected and steady state solution . . . . . . . . . . . . . . . . . . . . . A3.5.4 Proofs of the theorems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A3.5.5 Remarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A3.6 Norm Bounds for the KronLSTM with Steady-State Solution . . . . . . . . . . . . . . . . . . A3.6.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A3.6.2 Setting and nomenclature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A3.6.3 An exact energy identity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A3.6.4 The Norm Bound . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A3.6.5 Tightness and special cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A3.6.6 Bound on the memory norm for steady-state and all updates . . . . . . . . . . . . . .
21 21 21 22 25 25 26 27 27 28 28 28 28 29 29 30 30 36 36 36 37 37 37 37 38
17
Kronecker Delta Rule for Long Context Linear Attention
A4 DeltaNet Steady-State Norm Bound A4.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A4.2 DeltaNet Affine Recursion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A4.3 Steady-State Norm Bound . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A4.4 Relation to the KronLSTM Bound . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
41 41 41 41 42
A5 Retention Rates for KronLSTM and DeltaNet A5.1 KronLSTM Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A5.2 DeltaNet Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A5.3 KronLSTM Retention of the Initial Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . A5.4 DeltaNet Retention of the Initial Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . A5.5 KronLSTM Retains Longer than DeltaNet . . . . . . . . . . . . . . . . . . . . . . . . . . . .
43 43 44 44 45 45
A6 Further Results A6.1 400M language models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A6.2 Ablation on different formulations of KronLSTM . . . . . . . . . . . . . . . . . . . . . . . . A6.3 Long context extension results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
46 46 46 46
A7 Pretraining Details A7.1 Long-context extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A7.2 State Tracking Experiments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
47 48 48
A8 Chunkwise-Parallel Training of KronLSTM A8.1 Setting and notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A8.2 Decay-normalized recurrence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A8.3 The write coefficients solve a unit lower triangular system . . . . . . . . . . . . . . . . . . . . A8.4 Chunkwise form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A8.5 WY representation of the chunk transition . . . . . . . . . . . . . . . . . . . . . . . . . . . . A8.6 Variants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A8.7 Algorithm, cost and implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A8.8 Backward pass . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A8.9 Verification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
49 49 50 50 51 51 51 52 53 53
18
Kronecker Delta Rule for Long Context Linear Attention
Appendices A1 Notation Table Definition
Symbol
Type
Scalars and dimensions time step (token index) key and query dimension per head value dimension per head layer input dimension number of stored associations (App.) step size / erase gate fixed step size (theory) target / write gate decoupled target normalized step size irreducible residual contraction factor of the mean second-moment contraction factor extreme eigenvalues of Ā forget-gate exponent scalar read-out residual relaxation driving-noise energy
t dk dv d n βt β ct c̃t = ct /βt κ = β maxi ∥ai ∥2 ρ = c − a⊤ sLS r qβ = 1 − β(2 − κ)λmin (Ā) λmin , λmax α = exp(alog ) ht = vt⊤ St kt ψt = yt − ct 2 2 ω = β ∥k t ∥ ∥vt ∥ σ 2 = E ρ2 ∥a∥2
N N N N N (0, 1) R>0 (0, 1) in Sec. 2.2, R in Sec. 2.1 R>0 (unbounded) (0, 2) R [0, 1) [0, 1) R>0 R>0 R R (0, 2) R≥0
Vectors layer input query, key value Kronecker feature vectorized memory least-squares memory (vectorized) cross moment forget-gate vector forget-gate pre-activation output gate memory read-out block output
xt q t , kt vt at = kt ⊗ vt = vec(vt kt⊤ ) st = vec(St ) sLS = Ā−1 b̄ b̄ = E[c a] ft (sf )t ot h t = S t qt yt
Rd Rdk Rdv Rdk dv Rdk dv Rdk dv Rdk dv (0, 1)dk Rdk (0, 1)dv Rdv Rd
Matrices memory matrix forget gate feature second moment least-squares memory stationary covariance (App.) transition factor (App.)
St Ft = diag(ft ) Ā = E[aa⊤ ] S LS Vβ Mi = I − βai a⊤ i
Parameters erase-gate weights and bias write-gate weights and bias forget-gate weights and bias output-gate weights and bias output projection log forget exponent
wβ , bβ wc , bc W f , bf Wo , bo Wout alog
Rd , R Rd , R Rdk ×d , Rdk Rdv ×d , Rdv Rd×Hdv (H undefined) R (per head)
Distributions and operators distribution of triples (k, v, c) stationary distribution logistic sigmoid Kronecker product, vectorization element-wise product
p πβ σ(·) ⊗, vec ⊙
distribution law on Rdk dv R → (0, 1)
Rdv ×dk Rdk ×dk Rdk dv ×dk dv , ≻ 0 Rdv ×dk Rdk dv ×dk dv Rdk dv ×dk dv
Table A1: Notation used throughout the paper and the appendix.
19
Kronecker Delta Rule for Long Context Linear Attention
A2 Related Work To the best of our knowledge, no existing work uses exactly this update that is a scalar bilinear read-out v ⊤ Sk regressed onto the constant target 1. The established delta-rule linear attention family uses the vector read-out Sk → v. The rule studied here is therefore the bilinear-readout, scalar-target member of the delta-rule. The constraints are vk⊤ , S F = 1 rather than Sk = v.
A2.1 Long Short-Term Memory KronLSTM belongs to the xLSTM (Beck et al., 2024) family that revisits LSTM (Hochreiter, 1991; Hochreiter and Schmidhuber, 1997) for the era of large language models (LLMs) with two modifications: exponential gating and a redesigned memory. mLSTM replaces the scalar cell state by a matrix memory and drops memory mixing, making the recurrence fully parallelizable over the sequence. mLSTM enables recurrent LLMs with fast, constant-memory inference at scale (Beck et al., 2025a), and Beck et al. (2026) establish scaling behavior competitive with Transformers at linear time complexity. xLSTM has also been applied to language modeling (Beck et al., 2025b), vision (Alkin et al., 2025), biological and chemical sequences (Schmidinger et al., 2025), and robotics (Schmied et al., 2025). The matrix memory of mLSTM can be viewed as a classical correlation-based associative memory (Anderson, 1972; Kohonen, 1972) embedded within LSTM-style gating. In addition to providing an efficient mechanism for storing and retrieving associations, the exponential gates allow mLSTM to revise storage decisions. This distinguishes mLSTM from purely accumulative linear attention mechanisms. KronLSTM follows this line of research by retaining the matrix memory and the ability to revise storage decisions, while introducing a different memory-update rule. A central challenge of recurrent architectures with growing memory is maintaining stable memory dynamics over long sequences. The original LSTM uses a bounded squashing function for the exposed cell state, while xLSTM introduces a normalizer state and a stabilizer state to control the scale of its matrix memory and retrievals. However, normalization based on ratios of large quantities can lead to numerical and optimization difficulties, particularly in large networks (Beck et al., 2025b). MC-LSTM (Hoedt et al., 2021) instead redistributes its cell state with column-stochastic matrices, which conserve mass and never amplify the state. These considerations motivate alternative matrix-memory update rules that retain memory revision while providing stable memory dynamics. The Kronecker Delta Rule addresses this issue and provides convergence to a steady-state distribution with a norm-bounded memory in expectation. Furthermore, KronLSTM yields advantageous gradient flow over time compared with mLSTM (Hochreiter et al., 2000).
A2.2 The delta-rule linear attention family The direct ancestor is the fast weight programmer perspective of Schlag et al. (2021), who introduced the delta-rule write St+1 = St − β (St kt − vt ) kt⊤ into linear attention (Katharopoulos et al., 2020), building on the fast-weight programmers of the early 1990s (Schmidhuber, 1992). Yang et al. (2024) (DeltaNet) made this rule hardware-efficient by exploiting the WY representation of the resulting products of generalized Householder matrices. This is exactly the product structure the bilinear rule inherits, with the Kronecker product kt ⊗vt taking the role of kt . Subsequent extensions include Gated DeltaNet (Yang et al., 2025), which adds a scalar forget gate αt St ; RWKV-7 (Peng et al., 2025), which employs a generalized delta rule with a decoupled in-context learning rate; and DeltaProduct (Siems et al., 2025), which applies multiple Householder factors per token to improve state tracking. This is directly relevant to the negative-eigenvalue regime β ∥at ∥2 ∈ (1, 2) of the transition factors I − βat a⊤ t , which allows state-tracking.
A2.3 The online-learning perspective Longhorn (Liu et al., 2025) derives state-space recurrences explicitly as closed-form solutions of per-token online learning objectives; the bilinear rule fits this template with the objective 12 (v ⊤ Sk − 1)2 . Test-time training (TTT) layers (Sun et al., 2024) and Titans (Behrouz et al., 2025) treat the memory as a model trained by gradient descent at inference time. Most relevant as a unifying framework is the Miras taxonomy of Behrouz et al. (2026), which classifies memory architectures by their attentional-bias objective, retention mechanism, and optimizer. The new bilinear rule occupies a new place of that taxonomy: it is a bilinear attentional bias 20
Kronecker Delta Rule for Long Context Linear Attention
with a constant scalar target. A recent related observation is that test-time training with key–value binding is secretly linear attention (Liu et al., 2026). The mesa-optimization line (von Oswald et al., 2023) provides the complementary least-squares-solver perspective on such layers.
A2.4 Classical update and learning rules When vectorized, the rule is the Widrow–Hoff LMS / delta rule (Widrow and Hoff, 1960) applied to the Kronecker product input at = kt ⊗ vt with target 1. The stability range β ∥at ∥2 ∈ (0, 2) is the classical LMS step-size condition. The projection interpretation is Kaczmarz’s method (Kaczmarz, 1937): with the Newton step β ⋆ = 1/(∥k∥2 ∥v∥2 ), the update is the orthogonal projection onto the hyperplane {S : vk⊤ , S F = 1}, and general β gives relaxed projections. The modern convergence theory, including the linear rate under random sampling of constraints, is due to Strohmer and Vershynin (2009). The connections between Kaczmarz iterations, stochastic gradient descent, and learning are surveyed by Chen (2018). Fejér monotonicity and relaxed projection methods are standard in the projection-methods literature (Cegielski, 2012).
A2.5 Relation to cognitive and neuroscience Because S scores key–value pairs rather than retrieving values, the closest relative in the cognitive and neuroscience literature is familiarity (recognition) memory: the anti-Hebbian model of familiarity discrimination in perirhinal cortex of Bogacz and Brown (2003) shows that scoring memories attain a far higher capacity than retrieval memories, which is the same d2 -versus-d capacity separation derived for the bilinear rule. The classical retrieval-side background is given by correlation matrix memories (Anderson, 1972; Kohonen, 1972) for the Hebbian write, and by delta-rule / pseudoinverse associative memories for capacity under Widrow–Hoff learning (Prados and Kak, 1989).
A3 Kronecker Delta Rule: Setting, Name, Properties A3.1 Setup and notation. We use the notation of the main paper (Section 2.1), specialized to dk = dv =: d as in our experiments (where dqk = dv ); the general dv × dk case is identical with d2 replaced by dk dv . Let St ∈ Rd×d be the memory matrix, kt ∈ Rd the key and vt ∈ Rd the value at step t, ct ∈ R a scalar target, and βt a step size. The scalar vt⊤ St kt measures how strongly the memory associates kt with vt ; the Kronecker Delta Rule corrects it towards the target ct along the outer product vt kt⊤ , St+1 = St − βt vt⊤ St kt − ct vt kt⊤ , (A1) which is Eq. (3) of the main paper. For the analysis, we abbreviate the scalar read-out and its residual, yt := vt⊤ St kt
(scalar read-out),
(A2)
ψt := yt − ct
(residual),
(A3)
so that the update reads compactly St+1 = St − βt rt vt kt⊤ . The target sequence ct subsumes different variants: ct ≡ 1 is the basic Kronecker Delta Rule with target 1, ct ≡ c > 0 the Constant-Target Kronecker Delta Rule, ct = ∥vt ∥2 the Norm-Target Kronecker Delta Rule, and ct = ∥kt ∥ ∥vt ∥ the Double-Norm-Target Kronecker Delta Rule. The target ct may also be produced by a gateor a network, so that what is written becomes itself input-dependent. Throughout we use v ⊤ Sk = Tr S kv ⊤ = vk⊤ , S F .
A3.2 Name Kronecker Delta Rule We use the Kronecker product at = kt ⊗ vt
(A4)
in a vectorized update rule. at is a vector of length d2 , where the vector vt is multiplied by each component 2 of kt and then stacked to one vector. However, we have vt kt⊤ = vt ⊗ kt⊤ . Let s = vec(S) ∈ Rd and 2 at = kt ⊗ vt ∈ Rd , so that vt⊤ Skt = a⊤ t s. The rule becomes st+1 = I − β at a⊤ (A5) t st + β ct at , 21
Kronecker Delta Rule for Long Context Linear Attention
which is exactly Delta Rule with Kronecker product input at and target ct .
A3.3 Properties Property A1 (Memory Space is Hilbert Space and Kronecker Update Rule is a Projection onto a Hyperplane). The memory space Rd×d is a Hilbert space endowed with the Frobenius inner product ⟨X, Y ⟩F = Tr X ⊤ Y , where X, Y ∈ Rd×d . Hence the target condition vt⊤ Skt = ct is a hyperplane in this Hilbert space. The update St+1 = St − β vt⊤ St kt − ct vt kt⊤ is a orthogonal projection onto it, if β =
1
. ∥kt ∥22 ∥vt ∥22
The update St+1 = St − β vt⊤ St kt − ct vt kt⊤ is a relaxed orthogonal projection onto it, with relaxation parameter ωt = β ∥kt ∥22 ∥vt ∥22 . Property A2 (Exact online gradient descent: a bilinear delta rule with target ct ). The rule (A1) is stochastic gradient descent with step size β on the instantaneous loss 2 Lt (S) = 21 vt⊤ Skt − ct , ∇S Lt (S) = vt⊤ Skt − ct vt kt⊤ . (A6) It differs from DeltaNet, which performs SGD on 12 ∥Skt − vt ∥2 with update St+1 = St − β(St kt − vt )kt⊤ : there the target is the vector vt (imposing d constraints per pair), whereas here the target is the scalar ct and the pair (kt , vt ) jointly forms the input, imposing a single bilinear constraint vt⊤ Skt = ct per pair. Property A3 (Superposition: the memory is linear in the target sequence). For a fixed pair sequence (kt , vt )Tt=1 and step size β, the map from the target sequence c = (c1 , . . . , cT ) to the final memory ST (c) with S0 = 0 is linear: ST (c + c′ ) = ST (c) + ST (c′ ), ST (α c) = α ST (c) , (A7) explicitly, with at = kt ⊗ vt , T X vec ST (c) = β ct t=1
"
T Y
# I − βaτ a⊤ at . τ
(A8)
τ =t+1
Memories written with different target sequences over the same pairs superpose exactly. The pure-gain (c) (1) homogeneity of the constant-target rule (St = c St ) is the special case c = c 1. The pair sequence determines where the memory can write (the reachable subspace span{a1 , . . . , aT } and the interference pattern); the target sequence linearly selects what is written into it. Property A4 (Per-step reparameterization to the unit target). For every step with ct ̸= 0, rule (A1) with pair (kt , vt ) and step β coincides exactly with the unit-target rule applied to the rescaled value ṽt = vt /ct with the time-varying effective step β̃t = β c2t : S − β v ⊤ Sk − ct vk⊤ = S − β̃t ṽ ⊤ Sk − 1 ṽk⊤ . (A9) In contrast to the constant-target case, the effective step size now varies over time, so the time-varying rule is not globally a reparameterized unit-target rule; steps with ct = 0 have no unit-target counterpart at all (see Property A5 (iii)). 22
Kronecker Delta Rule for Long Context Linear Attention
Property A5 (Distinguished targets). Three choices of ct are structurally special. 1. (i) Norm target, ct = ∥vt ∥2 . The residual becomes the value-projected retrieval error rt = vt⊤ (St kt − vt ); every exact retrieval memory (Ski = vi ) satisfies all constraints, and in the autoassociative case kt = vt the identity S = I is a universal fixed point. (ii) Correlation target, ct = vt⊤ kt . The identity S = I is a universal fixed point even heteroassociatively: v ⊤ Ik = v ⊤ k for all pairs. The rule then learns deviations of the bilinear map from the standard inner product, i.e. S is naturally parameterized around the identity, and the read-out v ⊤ Sk − v ⊤ k measures the learned (in-context) part of the similarity. (iii) Erasure target, ct = 0. The update drives vt⊤ Skt → 0: with the Newton step β ⋆ = 1/(∥kt ∥2 ∥vt ∥2 ) the association is deleted in one shot, while every read-out with k′ ⊥ kt or v ′ ⊥ vt is exactly unchanged. Hence, ct = 0 is a targeted unlearning of a single key–value binding. Alternating write targets (ct ̸= 0) and erasure targets (ct = 0) turns the memory into an editable scalar store (see also Property A10 on overwriting). Property A6 (One-step error contraction and stability range for β). The target never enters the homogeneous part of the dynamics. Re-reading with the same pair and the same target after one update, vt⊤ St+1 kt = yt − β rt ∥kt ∥2 ∥vt ∥2 ⇐⇒ vt⊤ St+1 kt − ct
(A10) 2
= yt − ct − β rt ∥kt ∥ ∥vt ∥ 2
2
(A11)
2
⇐⇒ rt+1 = rt − β rt ∥kt ∥ ∥vt ∥ ⇐⇒ rt+1 = 1 − β ∥kt ∥2 ∥vt ∥2 rt ,
(A12) (A13)
where rt+1 is computed for the same (kt , vt , ct ). The residual contracts if and only if 0 < β <
2 , ∥kt ∥ ∥vt ∥2
(A14)
2
2 and the loss shrinks by the factor 1 − β ∥kt ∥2 ∥vt ∥2 . Since Lt is quadratic along the ray S − η rt vt kt⊤ „ the choice 1 β⋆ = (A15) 2 ∥kt ∥ ∥vt ∥2 is a Newton step: the constraint vt⊤ Skt = ct is interpolated exactly in one update, for every value of ct . 2
Property A7 (Delta Rule / Widrow–Hoff LMS in vectorized form). Let s = vec(S) ∈ Rd and at = kt ⊗ vt ∈ 2 2 2 2 Rd the Kronecker product, so that vt⊤ Skt = a⊤ t s and ∥at ∥ = ∥kt ∥ ∥vt ∥ . The rule becomes st+1 = I − β at a⊤ (A16) t st + β ct at , which is exactly the Widrow–Hoff LMS/delta rule with input at and target ct . This is the classical setting of LMS, which regresses a time-varying desired signal onto the input. The transition matrix I − βat a⊤ t does not depend 2 on ct : it has eigenvalue 1 − β ∥at ∥ on span(at ) and eigenvalue 1 on the orthogonal complement (dimension d2 − 1). Unrolling the recurrence, " T # T T Y X Y sT = I − βat a⊤ ct I − βaτ a⊤ at , (A17) t s0 + β τ t=1
t=1
τ =t+1
gives the same product-of-generalized-Householder structure as DeltaNet. Hence, the WY-representation / chunkwise-parallel training techniques apply verbatim with at = kt ⊗ vt in place of kt , and the targets ct enter only the driving (inhomogeneous) term. Expressivity consequence: for β ∥at ∥2 ∈ (1, 2) the factor has a negative eigenvalue (reaching −1 at β ∥at ∥2 = 2), the same mechanism that gives DeltaNet-style models state-tracking power beyond linear RNNs restricted to nonnegative eigenvalues. This is independent of the target sequence.
23
Kronecker Delta Rule for Long Context Linear Attention
Property A8 (Homogeneous part of the update in non-expansive). For β ∥at ∥2 ∈ [0, 2] every factor I − βat a⊤ t has spectral norm at most 1, so the homogeneous part of the recurrence never amplifies and ∥St ∥ cannot blow up. In contrast the Hebbian write St+1 = St + vt kt⊤ of vanilla linear attention leads to states that grow without bound. Moreover, the update is surgical: it modifies S only along the rank-one direction vt kt⊤ . For any test pair with k′ ⊥ kt or v ′ ⊥ vt the read-out v ′⊤ Sk′ is exactly unchanged. Property A9 (Doubly gated interference). For a previously stored pair (ki , vi ), an update with (kt , vt , ct ) perturbs the stored read-out by ∆ vi⊤ Ski = − β rt vi⊤ vt kt⊤ ki , (A18) i.e. interference is proportional to the product of the key overlap and the value overlap. Orthogonality in either factor suffices to protect a memory, which is a milder interference profile than the Hebbian rule (crosstalk from key overlap alone) and than DeltaNet (gated by key overlap only). The formula is target-independent, since the target enters only through the residual rt . Consequently, writes whose read-out is already correct (rt ≈ 0) cause no interference at all, regardless of ct . Property A10 (Relaxed Kaczmarz iteration, Fejér monotonicity, convergence, and overwriting). The constraint vt⊤ Skt = ct defines the hyperplane Ht = {S : vt kt⊤ , S F = ct } in Rd×d with Frobenius geometry. With β = β ⋆ the update (A1) is the orthogonal projection onto Ht ; general β gives a relaxed projection. In contrast to a constant target, consistency of the system {vi⊤ Ski = ci }i is now a genuine condition: it holds if and only if the target vector (ci )i lies in the range of the matrix stacking the rows a⊤ i . In particular, this always holds, 2 whenever the {ai } are linearly independent (at most d of them). If the system is consistent, then for every solution S ⋆ and any βt ∈ 0, 2/ ∥at ∥2 , ∥St+1 − S ⋆ ∥F ≤ ∥St − S ⋆ ∥F
(Fejér monotonicity),
(A19)
and cycling or randomly sampling over the pairs converges linearly to a solution, at a rate governed by the smallest singular value of the stacked a⊤ i . From S0 = 0 the limit is the minimum-Frobenius-norm solution. The canonical inconsistent case is a repeated pair with a changed target, (k, v, c) followed later by (k, v, c′ ) with c′ ̸= c: the two hyperplanes are parallel, and the iteration resolves the conflict by overwriting. The contraction of Property A6 drives the read-out to the most recent target, in one shot for β = β ⋆ . In expectation over a stationary distribution of triples (k, v, c), the fixed-point condition is E a⊤ s − c a = 0 , (A20) the normal equation of the least-squares regression of the target c on the feature a = k ⊗ v: the memory is an online linear regressor that learns, in context, to predict the scalar signal ct from the key–value pair. Property A11 (Capacity: memory can store d2 associations). Each triple (ki , vi , ci ) contributes one linear constraint on the d2 parameters of S, so up to d2 arbitrary scalars ci can be stored exactly for pairs with linearly independent {ki ⊗ vi } (d2 scalar components). Compare to DeltaNet with goal Ski = vi that represent d value vectors. In an orthonormal design ({ki } orthonormal and {vi } orthonormal), the minimum-norm solution has the closed form X S⋆ = ci vi ki⊤ , vj⊤ S ⋆ ki = ci δij , (A21) i
a target-weighted Hebbian superposition realizing the learned Kronecker delta with per-pair gains. The memory is thus best understood as a pair-addressed scalar table. It stores a number ci at the address (ki , vi ), writes by rank-one updates, reads by the bilinear probe v ⊤ Sk, rewrites by presenting the same pair with a new target, and deletes via c = 0 (Property A5 (iii)). Next, we exemplify the fact that KronLSTM can store d2 numbers. Assume d orthonormal keys {k1 , . . . , kd } and d orthonormal values {v1 , . . . , vd }. Then we can build d2 key-value pairs (ki , vj ) with their associated d2 numbers cij . We set β = 1 and start with S0 = 0, then we iteratively update St with randomly chosen i and j: St+1 = St − β vj⊤ St ki − cij vj ki⊤ . (A22) 24
Kronecker Delta Rule for Long Context Linear Attention
If all pairs (ki , vj ) or numbers cij are seen at least once, the update converged. If pair (ki , vj ) has already been used in the update rule, then vj⊤ St ki = cij and St+1 = St . Therefore, if all pairs are seen, St does not change any more and the update converged. If pair (ki , vj ) has NOT been stored, then vj⊤ St ki = 0 and St+1 = St + cij vj ki⊤ . Therefore, if all pairs (ki , vj ) or numbers cij are seen at least once, the memory matrix St is St =
d,d X
cij vj ki⊤ = V C ⊤ K ⊤ ,
(A23)
i=1,j=1
with K = [k1 , . . . , kd ] ∈ Rd×d ,
V = [v1 , . . . , vd ] ∈ Rd×d ,
C = (cij )di,j=1 ∈ Rd×d .
(A24)
Since vj⊤ St ki = cij , we can now retrieve d2 stored numbers. We have C ⊤ = V ⊤ St K ,
(A25)
since K and V are orthogonal. The transpose appears because the first index of C is the key index while the first index of St is the value index. Property A12 (Norm and energy dynamics). Using vt kt⊤ , St F = yt = rt + ct , ∥St+1 ∥2F − ∥St ∥2F = − 2β rt (rt + ct ) + β 2 rt2 ∥kt ∥2 ∥vt ∥2 ,
(A26)
so within the stable range, the state norm stays bounded whenever the constraint system is consistent. This is a consequence of Fejér monotonicity: the distance to any fixed solution is non-increasing. Summary. The time-varying-target rule (A1) is the most general member of the Kronecker Delta Rule family: SGD on the scalar quadratic loss 12 (vt⊤ Skt − ct )2 , equivalently Widrow–Hoff LMS on the feature at = kt ⊗ vt with desired signal ct , equivalently relaxed Kaczmarz on the hyperplanes vt kt⊤ , S F = ct . The entire analytic framework is target-independent. That comprises stability range and Newton step β ⋆ , generalized-Householder transition factors with their parallelization and negative-eigenvalue state-tracking regime, doubly gated interference, Fejér-monotone linear convergence, d2 capacity. The targets enter only the driving term, linearly: memories superpose Pin (ct ), and in an orthonormal design the memory converges to the target-weighted Hebbian superposition i ci vi ki⊤ realizing vj⊤ Ski = ci δij . Distinguished targets recover ct ≡ 1, ct ≡ c, ct = ∥vt ∥2 and add two new members: the correlation target ct = vt⊤ kt , for which the identity is a universal fixed point and S parameterizes learned deviations from the standard inner product, and the erasure target ct = 0, which deletes a single binding in one Newton step. Functionally, S is a pair-addressed scalar table with write, read, rewrite, and delete operations, therefore it is an editable d2 -slot scalar memory. In the stochastic view, it is an online in-context regressor of the signal ct on the bilinear feature.
A3.4 Minimally Invasive Memory Revision The Kronecker Delta Rule is not merely a correction of the addressed association: at the Newton step it is the smallest possible one, in every sense in which smallness can reasonably be asked for. This section elaborates on this topic. Throughout, St ∈ Rd×d , the read-out of the pair (kt , vt ) is vt⊤ St kt , the target is ct , and rt := vt⊤ St kt − ct
(A27)
is the residual that should be pushed to zero. A3.4.1 The admissible set A correction is a matrix E ∈ Rd×d added to the memory. It corrects the addressed association if vt⊤ (St + E)kt = ct . Using vt⊤ Ekt = vt kt⊤ , E F , the set of such corrections is n D E o Et := E ∈ Rd×d : vt kt⊤ , E = − rt , (A28) F
25
Kronecker Delta Rule for Long Context Linear Attention
an affine hyperplane in the Hilbert space (Rd×d , ⟨·, ·⟩F ): it is nonempty, and it is a proper affine subspace because vt kt⊤ ̸= 0 whenever the pair is nondegenerate. Every statement below compares members of Et . We hold the requirement fixed (the addressed association must come out right) and ask which correction achieves it with the least collateral change. Write E ⋆ := −
rt ct − vt⊤ St kt ⊤ v k = vt kt⊤ , t t ∥kt ∥2 ∥vt ∥2 ∥kt ∥2 ∥vt ∥2
(A29)
which is exactly the Kronecker Delta Rule update at the Newton step β = β ⋆ = 1/(∥kt ∥2 ∥vt ∥2 ). A3.4.2 Minimality in norm Theorem A1 (The Newton step is the smallest correction). E ⋆ ∈ Et , and for every E ∈ Et ∥E∥F ≥
|rt | = ∥E ⋆ ∥F , ∥kt ∥ ∥vt ∥
(A30)
with equality if and only if E = E ⋆ . 2
Proof. Admissibility is a computation: vt kt⊤ , E ⋆ F = −rt vt kt⊤ F /(∥kt ∥2 ∥vt ∥2 ) = −rt , using vt kt⊤ F = ∥kt ∥ ∥vt ∥. For the bound, apply Cauchy–Schwarz to the constraint in (A28): D E |rt | = vt kt⊤ , E ≤ vt kt⊤ ∥E∥F = ∥kt ∥ ∥vt ∥ ∥E∥F , (A31) F
F
which is (A30). Cauchy–Schwarz holds with equality exactly when E is a scalar multiple of vt kt⊤ , and the constraint then pins that scalar to −rt /(∥kt ∥2 ∥vt ∥2 ), i.e. E = E ⋆ . Equivalently the geometric view: St + E ⋆ is the orthogonal projection of St onto the constraint hyperplane Ht = {S : vt⊤ Skt = ct }, so the Newton step moves the memory along the shortest path from where it is to where the constraint is satisfied. Theorem A2 (Minimality in every unitarily invariant norm). Let |||·||| be any unitarily invariant norm on Rd×d . Then min |||E||| = |||E ⋆ ||| , (A32) E∈Et
i.e. the same E ⋆ is optimal simultaneously for all of them. In particular, for every Schatten-p norm, 1 ≤ p ≤ ∞, min ∥E∥Sp = ∥E ⋆ ∥Sp =
E∈Et
|rt | , ∥kt ∥ ∥vt ∥
(A33)
the same number for all p. Therefore, the nuclear, Frobenius and spectral norms of the optimal correction coincide. The minimizer is unique for strictly convex norms (Schatten 1 < p < ∞). For the spectral and nuclear norms E ⋆ is a minimizer but need not be the only one. Proof. Let |||·|||′ be the dual norm, so that |⟨A, E⟩F | ≤ |||A|||′ |||E||| for all A, E. Applying this to the constraint gives, for every E ∈ Et , |rt | (A34) |||E||| ≥ ′ . vt kt⊤ By von Neumann’s theorem a unitarily invariant norm is a symmetric gauge function Φ of the singular values, and the dual norm is the gauge Φ′ of the singular values. The matrix vt kt⊤ has the single nonzero singular value ∥kt ∥ ∥vt ∥, so vt kt⊤
= ∥kt ∥ ∥vt ∥ Φ(e1 ) ,
vt kt⊤
′
= ∥kt ∥ ∥vt ∥ Φ′ (e1 ) .
(A35)
Now Φ(e1 )Φ′ (e1 ) = 1: indeed Φ′ (e1 ) = sup{x1 : Φ(x) ≤ 1}, and since a symmetric gauge is nondecreasing in each |xi |, replacing x by (x1 , 0, . . . , 0) does not increase Φ, so the supremum is attained on the first axis and equals 1/Φ(e1 ). Since E ⋆ is rank one with singular value |rt |/(∥kt ∥ ∥vt ∥), |||E ⋆ ||| =
|rt | Φ(e1 ) = ∥kt ∥ ∥vt ∥
|rt | vt kt⊤
′ ,
(A36) 26
Kronecker Delta Rule for Long Context Linear Attention
which is exactly the lower bound (A34): E ⋆ attains it. The Schatten case follows from Φp (e1 ) = 1 for every p. Uniqueness for a strictly convex norm holds because Et is convex and a strictly convex function has at most one minimizer on a convex set; for the spectral norm uniqueness fails already at d = 2 with k = v = e1 and rt = −1, where E = diag(1, δ) is admissible and has spectral norm 1 for every |δ| ≤ 1. A3.4.3 Minimality of support: the correction is surgical Norm-optimality says the correction is small. The next theorem has a stronger statement even: it is the only correction that stays inside the addressed directions at all. No optimization is involved. Theorem A3 (Unique correction with addressed support). E ⋆ is the unique E ∈ Et whose column space is contained in span{vt } and whose row space is contained in span{kt }. Proof. A matrix has column space in span{vt } and row space in span{kt } if and only if it is of the form E = γ vt kt⊤ for some γ ∈ R. Admissibility forces γ ∥kt ∥2 ∥vt ∥2 = −rt , hence γ = −rt /(∥kt ∥2 ∥vt ∥2 ) and E = E⋆. Every other admissible correction like every DeltaNet-style correction necessarily writes into at least one key direction other than kt or one value direction other than vt , i.e. into directions the task never asked about. A3.4.4 Minimality of interference Smallness in norm translates into smallness of the damage done to other associations. Theorem A4 (Interference caused by the correction). Let (k′ , v ′ ) be any probe pair and let ∆(k′ , v ′ ) := v ′⊤ Ek′ be the change its read-out suffers. (i) Exact form and protection. For E = E ⋆ , ∆(k′ , v ′ ) = −
⊤ ′ rt ′⊤ 2 v vt kt k , ∥kt ∥ ∥vt ∥
(A37)
2
which vanishes whenever v ′ ⊥ vt or k′ ⊥ kt , and obeys |∆(k′ , v ′ )| ≤ |rt | ∥k′ ∥ ∥v ′ ∥ /(∥kt ∥ ∥vt ∥). The condition is a property of the inputs alone: it can be checked in advance and does not depend on what St currently holds. (ii) Minimum expected interference. Suppose probe pairs are drawn with k′ and v ′ independent and isotropic, E[k′ k′⊤ ] = σk2 I and E[v ′ v ′⊤ ] = σv2 I. Then for every E ∈ Rd×d h 2 i E v ′⊤ Ek′ = σk2 σv2 ∥E∥2F . (A38) Consequently h 2 i E ⋆ = argmin E v ′⊤ Ek′ , E∈Et
min E ∆2 =
E∈Et
σk2 σv2 rt2 ∥kt ∥2 ∥vt ∥2
,
(A39)
and the minimizer is unique. Proof. (i) Substitute (A29) and use v ′⊤ (vt kt⊤ )k′ = (v ′⊤ vt )(kt⊤ k′ ); the inequality is Cauchy–Schwarz on each factor. (ii) Vectorize: with e = vec(E) and a′ = k′ ⊗ v ′ we have v ′⊤ Ek′ = a′⊤ e, hence E (a′⊤ e)2 = e⊤ E a′ a′⊤ e = e⊤ E[k′ k′⊤ ] ⊗ E[v ′ v ′⊤ ] e = σk2 σv2 ∥e∥2 , (A40) using independence and ∥e∥ = ∥E∥F . The objective is therefore a positive multiple of ∥E∥2F , so minimizing it over Et is the problem already solved by Theorem A1, with the same unique solution. Part (ii) is what justifies the name: for isotropic probe statistics, minimum norm and minimum expected interference are literally the same objective, so the Newton step is minimally invasive in the operational sense and not merely in the geometric one. It causes the least expected damage to the rest of the memory. 27
Kronecker Delta Rule for Long Context Linear Attention
A3.4.5 Relaxed steps: the correction never moves away from a correct memory In practice, β is a learned gate rather than β ⋆ . Write β = λβ ⋆ , so that the actual update is St+1 = St + λE ⋆ with relaxation ω = β ∥kt ∥2 ∥vt ∥2 . Theorem A5 (Exact Fejér identity). Let S ◦ be any memory that already satisfies the addressed association, vt⊤ S ◦ kt = ct . Then ∥St+1 − S ◦ ∥2F = ∥St − S ◦ ∥2F − λ (2 − λ)
rt2 . ∥kt ∥2 ∥vt ∥2
(A41)
Hence for every λ ∈ (0, 2) the update strictly decreases the distance to every correct memory, the decrease is largest at the Newton step λ = 1, and at λ ∈ {0, 2} the distance is unchanged. 2 2 ⊤ ⊤ ◦ 2 ⋆ 2 t Proof. Expand, using ⟨E ⋆ , St − S ◦ ⟩F = − ∥k ∥2r∥v 2 vt St kt −vt S kt = − rt /(∥kt ∥ ∥vt ∥ ) = − ∥E ∥F : ∥ t
t
∥St − S ◦ + λE ⋆ ∥2F = ∥St − S ◦ ∥2F + 2λ⟨E ⋆ , St − S ◦ ⟩F + λ2 ∥E ⋆ ∥2F ,
(A42)
which is (A41) after inserting ∥E ⋆ ∥2F = rt2 /(∥kt ∥2 ∥vt ∥2 ). This is the strongest sense in which a single write is harmless: it does not merely perturb other associations little, it moves the memory closer to every memory that is consistent with the association being written and that simultaneously, for all of them. A3.4.6 Greedy minimality is global minimality Per-step optimality does not by itself imply that a sequence of such steps is optimal. We show that our does. Proposition 1 (The limit is the minimum-norm memory). Let {(ki , vi , ci )}ni=1 be a consistent system of associations. Apply the rule from S0 = 0 with relaxation ω ∈ (0, 2), visiting each pair infinitely often either cyclically or by random sampling. Then St converges to n o S ♯ = argmin ∥S∥F : vi⊤ Ski = ci for all i , (A43) the minimum Frobenius-norm memory satisfying all the associations. Proof. This is the classical convergence theorem for relaxed Kaczmarz iterations (Cegielski, 2012; Kaczmarz, 1937), applied to the vectorized system a⊤ i s = ci with ai = ki ⊗vi . Each iterate stays in s0 +span{a1 , . . . , an }, which for s0 = 0 is the row space of the system; the iterates converge to a solution, and the unique solution in the row space is the minimum-norm one. So the memory built by a stream of minimally invasive revisions is itself the least-norm memory compatible with everything it was asked to store: locally and globally, the rule writes as little as the task permits. A3.4.7 Less invasive than DeltaNet Theorems A1–A4 hold given the requirement encoded in Et : make the scalar read-out of the addressed pair equal to ct , and do nothing else. DeltaNet’s step has to solve the d constraints Skt = vt , therefore its correction is necessarily larger. The claim here is therefore not that DeltaNet is suboptimal for its own task, but that the two tasks differ: a recognition memory needs one scalar corrected, and the Kronecker Delta Rule corrects it with provably minimal disturbance, whereas a retrieval memory must rewrite an entire value vector and pays for it in footprint.
A3.5 Convergence of the KronLSTM memory We analyze the expected solution and steady state of the randomized Kronecker Delta Rule with more than d2 associations. Running memories i.e. online updates are covered via the steady state considerations.
28
Kronecker Delta Rule for Long Context Linear Attention
A3.5.1 Overview We analyze the Kronecker Delta Rule St+1 = St − β (vi⊤t St kit − cit ) vit ki⊤t with randomly drawn indices when the number of associations exceeds the capacity: n > d2 . The system is then generically inconsistent, and the iterates no longer converge to a point. Instead we have: P (i) The expected iterate converges linearly to the sampling-weighted least-squares solution S LS = argmin S i pi (vi⊤ Ski − ci )2 . This is for uniform sampling exactly the minimizer of the loss L. (ii) The iterates converge in distribution to a unique stationary distribution whose mean is exactly S LS (no bias at any order in β) and whose covariance is O(β), given by a Lyapunov-type equation driven by the residuals at S LS . (iii) The steady-state loss exceeds the minimum by the classical LMS misadjustment, E[L] − Lmin = β2 E ρ2i ∥ki ∥2 ∥vi ∥2 + O(β 2 ), where ρi are the optimal residuals. This appendix contains complete proofs of both theorems: the mean dynamics are solved exactly; existence, uniqueness, and geometric convergence of the stationary distribution are established by a synchronous-coupling contraction in the Wasserstein-2 metric; the stationary mean and the exact covariance equation are derived with all cross terms accounted for; the misadjustment follows from an exact trace identity with two-sided bounds; and the transient is controlled by an explicit geometric-plus-horizon estimate. Exact convergence can be recovered by diminishing step sizes or by iterate averaging, and it survives n > d2 unharmed whenever the targets remain consistent. Notably, exact convergence is always obtain for the correlation target ci = vi⊤ ki and the norm target ci = ∥vi ∥2 whenever an exact retrieval memory exists. A3.5.2 Setting and notation 2
Let n > d2 associations (ki , vi , ci ), 1 ≤ i ≤ n, be given. Vectorized, with s = vec(S) ∈ Rd and ai = ki ⊗ vi , 2 therefore ∥ai ∥ = ∥ki ∥ ∥vi ∥. The associations form the linear system As = c with A ∈ Rn×d stacking 2 2 d 2 the rows a⊤ i . We assume A has full column rank d i.e. the features span R . Since n > d , the system is generically inconsistent: no S satisfies all associations, and n
2 1X ⊤ vi Ski − ci L(S) = n
(A44)
i=1
has a positive minimum Lmin > 0. At each step an index it is drawn with probabilities pi > 0, independently of the past, and the rule is applied with fixed step size β satisfying 0 < β ∥ai ∥2 < 2
for all i .
(A45)
We define n X ⊤ Ā := E aa = pi ai a⊤ i ≻ 0,
n X b̄ := E c a = pi ci ai ,
i=1
s
LS
:= Ā
−1
b̄ = argmin s
(A46)
i=1 n X
pi a⊤ i s − ci
2
,
LS ρi := ci − a⊤ i s
(optimal residuals) ,
(A47)
i=1
so that the normal equations read n X E ρa = pi ρi ai = 0
⇐⇒
b̄ = Ā sLS .
(A48)
i=1
For uniform sampling, Ā = n1 A⊤ A and sLS = (A⊤ A)−1 A⊤ c is the ordinary least-squares solution, i.e. the unique minimizer of L. Throughout, expectations without subscript are over i ∼ p, and Eπ denotes expectation of a random state distributed according to a law π. Vectorized, the rule and its error form are st+1 = Mit st + β cit ait ,
et+1 = Mit et + β ρit ait ,
Mi := I − β ai a⊤ i ,
LS + ρ . The constants with et := st − sLS ; the error form follows by inserting ci = a⊤ i i s γβ := min β 2 − β ∥ai ∥2 > 0 , ρ̄ := γβ λmin (Ā) ∈ (0, 1] , σ 2 := E ρ2 ∥a∥2 i
(A49)
(A50)
appear throughout (0 < ρ̄ ≤ 1 is shown in Lemma A1). 29
Kronecker Delta Rule for Long Context Linear Attention
A3.5.3 Theorems on expected and steady state solution Theorem A6 (Expected solution: exact, unbiased least squares). Under (A45), the expected iterate obeys the exact deterministic recursion E st+1 = I − β Ā E st + β b̄ ⇐⇒ E et+1 = I − β Ā E et , (A51) whose unique fixed point is sLS , and E[St ] − S LS F ≤ rt S0 − S LS F ,
r := max 1 − βλk (Ā) < 1 , k
(A52)
so E[St ] → S LS linearly. The convergence of the mean is exactly unbiased: the fixed point of (A51) is sLS itself, with no O(β) correction. Theorem A7 (Steady state: stationary distribution around S LS ). Under (A45), the iterates form a Markov chain 2 on Rd that has a unique stationary distribution πβ with finite second moment, and the law of st converges to πβ geometrically in the Wasserstein-2 metric: W2 law(st ), πβ
≤
1 − ρ̄
t/2
W2 law(s0 ), πβ .
(A53)
Under πβ , with e := s − sLS : (i) Mean: Eπβ [S] = S LS exactly. (ii) Covariance: Vβ := Eπβ [ee⊤ ] satisfies the exact stationarity equation ĀVβ + Vβ Ā − β E a⊤ Vβ a aa⊤ = β E ρ2 aa⊤ ,
(A54)
and obeys the two-sided trace bounds β σ2 β σ2 ≤ tr ĀVβ ≤ , 2 2 − β maxi ∥ai ∥2 i h β σ2 2 Eπβ S − S LS F ≤ ; 2 − β maxi ∥ai ∥2 λmin (Ā)
(A55)
in particular Vβ = O(β), and to leading order (A54) is the Lyapunov equation ĀV + V Ā = βE[ρ2 aa⊤ ]. (iii) Steady-state loss (misadjustment): for uniform sampling, β 2 Eπβ L(S) − Lmin = tr ĀVβ = σ + E a⊤ Vβ a ∥a∥2 , 2
(A56)
an exact identity, whence β 2 β 2 2 σ ≤ Eπβ L(S) − Lmin ≤ σ · , 2 2 2 − β maxi ∥ai ∥2
σ 2 = E ρ2i ∥ki ∥2 ∥vi ∥2 ,
(A57)
i.e. Eπβ [L] = Lmin + β2 σ 2 + O(β 2 ). This is the classical Widrow–Hoff LMS misadjustment for the bilinear feature a = k ⊗ v. (iv) Transient: with w := E ρ ∥a∥2 a , E ∥et ∥2 ≤
1 − ρ̄2
t
∥e0 ∥2 +
2β 2 σ 2 4β 4 ∥w∥2 + , ρ̄ ρ̄2
(A58)
a geometric approach to an O(β) horizon (note ρ̄ = Θ(β)): overload does not slow the transient, it only replaces the limit point by a limit distribution. A3.5.4 Proofs of the theorems Throughout, Ft := σ(s0 , i0 , . . . , it−1 ) denotes the filtration of the past; it is independent of Ft by assumption. We repeatedly use that (A49) is linear in the state with coefficients independent of the state. 30
Kronecker Delta Rule for Long Context Linear Attention
Two lemmas crucial for the proofs of the theorems. 2
Lemma A1 (One-step mean-square contraction of the homogeneous part). For every fixed x ∈ Rd , n X 2 E ∥Mi x∥2 = ∥x∥2 − pi β 2 − β ∥ai ∥2 a⊤ ≤ i x
1 − ρ̄ ∥x∥2 ,
(A59)
2 2 2 ∥Mi x∥2 = x⊤ I − βai a⊤ x = ∥x∥2 − 2β a⊤ + β 2 ∥ai ∥2 a⊤ i i x i x ,
(A60)
i=1
and ρ̄ ∈ (0, 1]. Proof. Since Mi is symmetric,
which is the equality in (A59) after averaging over i ∼ p. By (A45), β(2 − β ∥ai ∥2 ) ≥ γβ > 0 for every i, and P 2 ⊤ 2 ⊤ i pi (ai x) = x Āx ≥ λmin (Ā) ∥x∥ , hence the inequality with ρ̄ = γβ λmin (Ā). Finally ρ̄ ≤ 1 because the left-hand side of (A59) is nonnegative for every x. We assumed that Ā has full rank, therefore 0 < λmin (Ā) and with 0 < γβ we have 0 < ρ̄. Lemma A2 (The chain lives in P2 and its kernel is a W2 -contraction). Let P denote the transition kernel 2 of (A49) and let P2 be the space of probability laws on Rd with finite second moment, equipped with the Wasserstein-2 metric W2 . Then P maps P2 into P2 , and for all µ, ν ∈ P2 , p 1 − ρ̄ W2 (µ, ν) . (A61) W2 µP, νP ≤ Consequently P has a unique invariant law πβ ∈ P2 and (A53) holds. Proof. P preserves P2 : for e ∼ µ ∈ P2 and an independent index i, E ∥Mi e + βρi ai ∥2 ≤ 2 E ∥Mi e∥2 + 2β 2 E[ρ2 ∥a∥2 ] ≤ 2 E ∥e∥2 + 2β 2 σ 2 < ∞, using Lemma A1. Contraction: let (x, y) be an optimal W2 -coupling of (µ, ν) and couple the two chains synchronously: draw one index i (independent of (x, y)) and set x′ = Mi x + βρi ai , y ′ = Mi y + βρi ai . The additive terms cancel in the difference, x′ − y ′ = Mi (x − y) , (A62) so by Lemma A1, first conditionally on (x, y) and then in expectation, E x′ − y ′
2
≤ (1 − ρ̄) E ∥x − y∥2 = (1 − ρ̄) W2 (µ, ν)2 .
(A63)
Since (x′ , y ′ ) is some coupling of (µP, νP ), W2 (µP, νP )2 ≤ E ∥x′ − y ′ ∥2 , which is (A61). Conclusion: (P2 , W2 ) is a complete metric space (see, e.g., (Villani, 2009, Theorem 6.18)), so Banach’s fixedpoint theorem yields a unique πβ ∈ P2 with πβ P = πβ and W2 (µP t , πβ ) ≤ (1 − ρ̄)t/2 W2 (µ, πβ ) for every µ ∈ P2 , which is (A53). Convergence in W2 implies convergence in distribution together with convergence of first and second moments. Comments to the proof of Lemma A2 in 9 bullet points. • 1) Overview. How a mixture of non-contractive matrices produces a contraction: the kernel P and the coupling argument. The matrices Mi are not themselves contractions - by Lemma A1, ∥Mi ∥2 = 1 for every single i, since Mi has eigenvalue 1 on a⊥ i . Contractivity in Lemma A2 is a property of the mixture P , not of any individual Mi , and P is not a matrix at all: it is a Markov kernel acting on laws in P2 , and the relevant notion 2 of size for it is the Wasserstein metric W2 on P2 itself - not any norm on Rd from which P ’s contraction could be read off the Mi ’s directly. This note spells out how P is built from the Mi ’s, in what sense P does and does not have an “operator norm,” and why the coupling argument nonetheless produces the contraction (A61). 2 • 2) Constructing P from the Mi . For a fixed state x ∈ Rd , define the n deterministic affine maps Φi (x) := Mi x + βρi ai ,
i = 1, . . . , n .
(A64)
One step of the chain from x lands at Φi (x) with probability pi , so the transition kernel is the mixture of point masses n X P (x, ·) := pi δΦi (x) (·) , (A65) i=1
31
Kronecker Delta Rule for Long Context Linear Attention
R and, for a law µ, µP is defined by (µP )(B) = P (x, B) µ(dx) - equivalently, µP is the law of ΦI (X) for X ∼ µ and I ∼ p drawn independently of X. 2 B is a Borel (measurable) subset of Rd - an arbitrary test set, held fixed, to which the kernel assigns a probability. Concretely, P (x, B) := Pr ΦI (x) ∈ B
=
n X
pi 1 Φi (x) ∈ B
i=1
=
n X
pi δΦi (x) (B) ,
(A66)
i=1
where Φi (x) = Mi x + βρi ai is the (fixed, deterministic) image of x under transition i, and I ∼ p is the random index selecting which transition fires. In words: P (x, B) is the probability that one step of the chain, started at x, lands in B - obtained by summing the weights pi of every index i whose image Φi (x) happens to fall inside B. 2 2 P as a function of each argument separately. The kernel P : Rd × B(Rd ) → [0, 1] plays a different role in each of its two slots: 2
• Fixed x, varying B: P (x, ·) is itself a probability measure on Rd - concretely, the discrete measure P (x, ·) =
n X
pi δΦi (x) (·)
(A67)
i=1
putting mass pi on the point Φi (x) for each i (masses are summed if several Φi (x) coincide). This is the law of the chain’s next state, given that it is currently at x. • Fixed B, varying x: P (·, B) is a bounded measurable function of x, since each indicator 1[Φi (x) ∈ B] is measurable in x and the sum is finite. This is the standard convention for a Markov transition kernel: measurable in the first argument, a probability measure in the second. • 3) the pushforward measure µP is well defined. For a law µ of the current state, the one-step-ahead law µP is defined by integrating the second argument B (held fixed) against µ acting on the first argument x: Z (µP )(B) := P (x, B) µ(dx) . (A68) Rd2
Equivalently, µP is the law of ΦI (X) for X ∼ µ and I ∼ p drawn independently of X: draw a random current state X, draw an independent random index I, and output ΦI (X). The two roles of B above are exactly what make this integral meaningful: for each fixed x in the integral, P (x, B) is a number in [0, 1] (the probability mass the one-step law from x places on B); integrating that number against µ(dx) averages it over the randomness in the current state, and the result, as a function of B, is again a probability measure. It is the law µP appearing throughout the steady-state analysis of the rule. 2 • 4) P has no operator norm on Rd . Thus P is linear as an operator on (signed) measures ((αµ + (1 − α)ν)P = 2 αµP + (1 − α)νP ), but this linearity lives on the infinite-dimensional space of measures, not on Rd : there is 2 no d2 × d2 matrix representing P , so P has no operator norm on (Rd , ∥·∥) the way each Mi does. What P does have is an operator norm in the sense appropriate to its actual domain: a Lipschitz modulus on the metric space (P2 , W2 ), namely the smallest L such that W2 (µP, νP ) ≤ L W2 (µ, ν) for all µ, ν ∈ P2 . That modulus √ is exactly what (A61) bounds by 1 − ρ̄ < 1. It cannot be read off a per-map bound such as maxi ∥Mi ∥2 , which equals 1 by Lemma A1 and would certify no contraction whatsoever; obtaining a modulus strictly below 1 requires the coupling argument below, precisely because it is a statement about P acting on laws, not about 2 any Mi acting on Rd . • 5) The Wasserstein metric is essential to prove the contraction. The definition W2 (µ, ν)2 = inf Eγ ∥X − Y ∥2 (A69) γ∈Γ(µ,ν)
is an infimum over all couplings γ of (µ, ν) (joint laws with the prescribed marginals). This has an immediate but crucial consequence: to upper-bound W2 (µP, νP ) it suffices to exhibit any single coupling of (µP, νP ) and compute its second moment. Note that we never need the optimal coupling of the outputs, let alone an explicit formula for P as an operator. 32
Kronecker Delta Rule for Long Context Linear Attention
• 6) The synchronous coupling. We are free to choose how the randomness that drives one step of each chain is generated, and we exploit that freedom by reusing the same random index for both chains. Concretely: let (x, y) be an optimal coupling of (µ, ν), i.e. a joint law with x ∼ µ, y ∼ ν, and E ∥x − y∥2 = W2 (µ, ν)2 2 (such a coupling exists because Rd is Polish; see (Villani, 2009, Theorem 4.1)). Draw a single index i ∼ p, independent of (x, y), and set x′ := Φi (x) = Mi x + βρi ai ,
y ′ := Φi (y) = Mi y + βρi ai .
(A70)
Marginally, x′ ∼ µP and y ′ ∼ νP by the very definition (A65) of µP , applied separately to each starting law; hence (x′ , y ′ ) is a valid coupling of (µP, νP ). This coupling is not necessarily the optimal one, but that is all the argument requires. • 7) The additive target terms cancel. Because x′ and y ′ are built from the same draw i, the inhomogeneous term βρi ai is identical in both and cancels exactly in the difference: x′ − y ′ = Mi x + βρi ai − Mi y + βρi ai = Mi (x − y) . (A71) The part of the update that cancels out is exactly the part carrying the targets ci . This is the crux of the construction: it converts a statement about two inhomogeneous, randomly driven affine updates into a statement about a single homogeneous linear map, Mi , applied to the fixed vector x − y. This is exactly the object Lemma A1 controls. Had we instead coupled the two chains using independent indices for x′ and y ′ , the noise terms would not cancel and the argument would not go through; the whole content of the synchronous-coupling trick is this cancellation. • 8) Deriving the contraction. Since i is independent of (x, y), condition on (x, y) first and average over i: n X ′ ′ 2 E x −y x, y = pi ∥Mi (x − y)∥2 ≤
1 − ρ̄ ∥x − y∥2
(A72)
i=1
by Lemma A1, applied pointwise to the vector x − y (fixed once we condition). Taking the outer expectation over (x, y) and using that this coupling was chosen optimal, 2 E x′ − y ′ ≤ 1 − ρ̄ E ∥x − y∥2 = 1 − ρ̄ W2 (µ, ν)2 . (A73) Finally, since (x′ , y ′ ) is a coupling of (µP, νP ), the infimum defining W2 (µP, νP )2 is at most the cost of this particular coupling: 2 W2 (µP, νP )2 ≤ E x′ − y ′ ≤ 1 − ρ̄ W2 (µ, ν)2 , (A74) and taking square roots recovers (A61) exactly. • 9) Summary of the approach. Three ingredients combine, none of which is a bound on P as an operator on 2 Rd : (1) W2 is an infimum over couplings, so any one coupling of the images gives a valid upper bound; (2) the synchronous coupling is reusing the same random index for both copies and is a legitimate choice precisely because P is defined by mixing over that same randomness, and it makes the target-dependent noise cancel identically; (3) what remains is a bound on Ei ∥Mi z∥2 for the fixed vector z = x − y, which is exactly the pointwise mean-square already established in Lemma A1. This lemma is a statement purely about P contraction ⊤ the Mi ’s and Ā = i pi ai ai , requiring no coupling of its own. The contraction of P in W2 is thus assembled entirely from the per-index contraction of Lemma A1, transported to the space of distributions by the coupling device. It is not, and could not be, a statement recoverable from maxi ∥Mi ∥2 alone. Proof of Theorem A6. Proof. Exact mean recursion. The update (A49) is linear in st , and it is independent of Ft ⊇ σ(st ). Hence, conditioning on Ft , E st+1 Ft = E Mit st + β E cit ait = I − β Ā st + β b̄ , (A75) and the tower property gives (A51). This equation holds with equality and is not an approximation: no linearization was needed because the update itself is linear. Subtracting the fixed-point relation sLS = (I − β Ā)sLS + β b̄, which holds by the normal equations (A48) (b̄ = ĀsLS ), yields the error form and, by induction, t E et = I − β Ā E e0 . (A76) 33
Kronecker Delta Rule for Long Context Linear Attention
Spectral radius. Ā is symmetricP positive definite; let 0 < λmin = λ1 ≤ · · · ≤ λd2 = λmax be its eigenvalues. 2 2 For any unit vector x, x⊤ Āx = i pi (a⊤ i x) ≤ maxi ∥ai ∥ , so β λmax ≤ β max ∥ai ∥2 < 2 i
(A77)
by (A45). Hence, every eigenvalue 1 − βλk of I − β Ā lies in (−1, 1): 1 − βλk < 1 since βλk > 0, and 1 − βλk > −1 since βλk < 2. The matrix is symmetric, so its spectral norm equals r = maxk |1 − βλk | < 1 and ∥E[et ]∥ ≤ rt ∥e0 ∥, i.e. linear convergence of E[St ] to S LS in Frobenius norm (∥s∥2 = ∥S∥F ). Exact unbiasedness. The fixed point of the affine map z 7→ (I − β Ā)z + β b̄ is unique (β Ā invertible) and equals Ā−1 b̄ = sLS for every β in the admissible range: the limit of the mean does not depend on β and carries no O(β) correction. Proof of Theorem A7. Proof. Existence, uniqueness, membership in P2 , and the geometric W2 -convergence (A53) are Lemma A2. We have to prove (i)–(iv). In stationarity we write e ∼ πβ (centered at sLS ), draw a fresh index i independent of e, and use that d e′ := Mi e + β ρi ai = e , (A78) d
with all first and second moments finite (πβ ∈ P2 ). Here = means equality in distribution. (i) Stationary mean. Taking expectations in (A78) and using the independence of i and e together with the normal equations E[ρa] = 0: E[e] = E[e′ ] = E Mi E[e] + β E ρi ai = I − β Ā E[e] , (A79) hence β Ā E[e] = 0, and since Ā is invertible, E[e] = 0, i.e. Eπβ [S] = S LS , which holds exactly. (ii) Exact covariance equation. Expand e′ e′⊤ from (A78): ⊤ 2 2 ⊤ e′ e′⊤ = Mi ee⊤ Mi + β ρi Mi e a⊤ i + β ρi ai e Mi + β ρi ai ai .
(A80)
Take expectations term by term, using the independence of i and e and writing Vβ = E[ee⊤ ]. ⊤ 2 ⊤ ⊤ ⊤ ⊤ Homogeneous term. Since Mi V Mi = V −β ai a⊤ i V +V ai ai +β ai V ai ai ai (using ai ai V ai ai = ⊤ ⊤ (ai V ai ) ai ai ), E Mi ee⊤ Mi = Vβ − β ĀVβ + Vβ Ā + β 2 E a⊤ Vβ a aa⊤ . (A81) Cross terms. They are linear in e, so independence factorizes them through E[e], which vanishes by part (i): = 0, (A82) E ρi Mi e a⊤ = Ei ρi Mi E[e] a⊤ i i and likewise for its transpose. This is the step where exact unbiasedness pays off: no O(β 2 ) cross contribution survives. Stationarity. Setting E[e′ e′⊤ ] = Vβ and collecting, Vβ = Vβ − β ĀVβ + Vβ Ā + β 2 E a⊤ Vβ a aa⊤ + β 2 E ρ2 aa⊤ ; (A83) dividing by β gives (A54), which is an exact equation, not an expansion. Trace bounds. Take the trace of (A54): 2 tr ĀVβ = β E a⊤ Vβ a ∥a∥2 + β σ 2 .
(A84)
Since Vβ ⪰ 0, we have a⊤ Vβ a ≥ 0, which gives the lower bound in (A55); and E[(a⊤ Vβ a) ∥a∥2 ] ≤ maxi ∥ai ∥2 E[a⊤ Vβ a] = maxi ∥ai ∥2 tr(ĀVβ ), so 2 − β max ∥ai ∥2 tr ĀVβ ≤ β σ 2 , (A85) i
34
Kronecker Delta Rule for Long Context Linear Attention
the upper bound (the prefactor is positive by (A45)). Finally tr Vβ ≤ tr(ĀVβ )/λmin (Ā) gives the Frobenius bound in (A55), and tr Vβ = O(β) makes the quartic term in (A54) O(β 2 ), leaving the Lyapunov equation at leading order. (iii) Misadjustment. For uniform sampling, Ā = n1 A⊤ A and L(s) = n1 ∥As − c∥2 . Decompose with As − c = Ae − ρ, where ρ = (ρ1 , . . . , ρn )⊤ : since A⊤ ρ = n E[ρa] = 0, L(s) = n1 ∥Ae∥2 − n2 e⊤ A⊤ ρ + n1 ∥ρ∥2 = n1 ∥Ae∥2 + Lmin ,
(A86)
where Lmin = n1 ∥ρ∥2 . This also re-proves that sLS minimizes L. Taking stationary expectations, Eπβ [L] − Lmin = n1 E e⊤ A⊤ A e = tr Ā Vβ ,
(A87)
and inserting the exact trace identity (A84) gives (A56). The two-sided bound (A57) follows from the trace bounds (A55). Since the upper and lower bounds differ by a factor 2/(2 − β maxi ∥ai ∥2 ) = 1 + O(β), the excess loss equals β2 σ 2 (1 + O(β)). (iv) Transient. Condition on Ft and expand (A49): 2 2 E ∥et+1 ∥2 Ft = E ∥Mi et ∥2 Ft + 2β E ρi a⊤ (A88) i Mi et + β σ . 2 ⊤ For the middle term, a⊤ i Mi = (1 − β ∥ai ∥ ) ai , so by the normal equations
⊤ ⊤ E ρi a⊤ − β E ρ ∥a∥2 a = − β w⊤ , i Mi = E ρ a
(A89)
with w = E[ρ ∥a∥2 a] as in the statement. Outside stationarity this cross term does not vanish, and it is O(β 2 ) 4 in total. Lemma A1 and Young’s inequality −2β 2 w⊤ e ≤ ρ̄2 ∥e∥2 + 2βρ̄ ∥w∥2 give 4 E ∥et+1 ∥2 Ft ≤ 1 − ρ̄2 ∥et ∥2 + β 2 σ 2 + 2βρ̄ ∥w∥2 .
(A90)
Taking full expectations and iterating the affine recursion (its geometric series is bounded by 2/ρ̄) yields (A58). Since ρ̄ = γβ λmin = Θ(β), the horizon 2β 2 σ 2 /ρ̄ + 4β 4 ∥w∥2 /ρ̄2 is O(β), consistent with (A55). √ Corollary A1 (Recovering exact convergence to S LS ). Three standard mechanisms remove the O( β) fluctuation: P (i) Diminishing step sizes (Robbins–Monro): βt ↓ 0, t βt = ∞ (e.g. βt ∝ 1/t) gives St → S LS almost surely. (ii)PIterate averaging (Polyak–Ruppert / ergodic average): with constant β, the time average S̄T = 1 LS almost surely - and by Theorem A7 (i) the average is exactly unbiased. t≤T St → Eπβ [S] = S T (iii) Small-β limit: by (A55), πβ concentrates on S LS as β → 0, with the explicit bias–variance trade-off: larger β tracks nonstationary targets faster, smaller β reduces the steady-state loss excess (A57), which is the standard LMS trade-off, inherited verbatim. Corollary A2 (Consistent targets). The inconsistency, not the count n > d2 , is what forbids exact convergence. Let us assume that the targets happen to be realizable, that is ci = vi⊤ S ◦ ki for some S ◦ . In this case Lmin = 0, all residuals ρi vanish, the driving noise in (A49) disappears, and the Fejér-monotone argument of the consistent case applies unchanged: St → S ◦ (unique by full column rank) almost surely, linearly, for arbitrarily many associations. Two distinguished targets realize this structurally: (i) the correlation target ci = vi⊤ ki , solved by S = I for every n; (ii) the norm target ci = ∥vi ∥2 , solved by any exact retrieval memory Ski = vi (in particular autoassociatively by S = I). For these targets the recognition memory has effectively unbounded association count as long as realizability holds.
35
Kronecker Delta Rule for Long Context Linear Attention
A3.5.5 Remarks Memory for the overloaded setting. Beyond capacity, S is no longer a table but an online linear regressor: the read-out v ⊤ S LS k is the best linear prediction (in the p-weighted least-squares sense) of the scalar signal √ c from the bilinear feature k ⊗ v. Degradation is graceful since overload produces averaging plus an O( β) jitter, never blow-up, since the homogeneous factors keep spectral norm ≤ 1. Assumptions for the proofs. Independence of it from the past makes the mean recursion exact and factorizes the covariance cross terms; the normal equations kill the driving term in the mean and the cross terms in stationarity (via E[e] = 0); the step condition (A45) enters three times: (1) γβ > 0 (contraction), (2) βλmax (Ā) < 2 (mean stability), and (3) 2 − β maxi ∥ai ∥2 > 0 (trace upper bound). Full column rank gives λmin (Ā) > 0, used for uniqueness of sLS , for ρ̄ > 0, and to convert tr(ĀVβ ) into a bound on tr Vβ . Linearity of the update in the state is what makes every step of the argument exact rather than a Taylor expansion which we obtain from the quadratic loss. Conflicting targets on the same pair: averaging vs. overwriting. The canonical inconsistency is one pair (k, v) presented with different targets. Under random sampling probabilities pj over targets cj , the P with P ⊤ stationary mean read-out is the weighted average, v Eπβ [S] k = j pj cj / j pj (the LS solution for identical rows). Under sequential presentation the same rule overwrites: the contraction drives the read-out to the most recent target. Random replay averages; ordered replay recencies, therefore the sampling protocol, not the rule, decides about overwrite behavior. Forget gate: recency-weighted least squares. With the scalar gated variant St+1 = ft St − β(vt⊤ ft St kt − ct )vt kt⊤ , ft ∈ (0, 1), the steady state is the corresponding exponentially weighted least-squares solution: old associations are geometrically down-weighted, so the effective association count is finite (∼ 1/(1 − f)) and the memory tracks a drifting target distribution. Therefore, the overloaded regime is exactly where the forget gate is most relevant. Summary. For n > d2 associations the randomized Kronecker Delta Rule with constant β does not converge to a pointP but to a stationary distribution: its mean is exactly the sampling-weighted least-squares memory S LS = argmin i pi (vi⊤ Ski − ci )2 (the minimizer of L for uniform sampling), its covariance is O(β) and solves the exact stationarity equation (A54) driven by the optimal residuals, and its loss sits at Lmin + β2 E[ρ2i ∥ki ∥2 ∥vi ∥2 ] up to an explicit 1 + O(β) factor. All of this is proven from first principles: an exact linear mean recursion with spectral radius < 1; a synchronous-coupling W2 -contraction plus Banach fixed point for existence, uniqueness, and geometric convergence of πβ ; exact moment identities in stationarity for mean and covariance; an exact trace identity for the misadjustment; and a Young-inequality recursion for the transient. Averaging or annealing β recovers S LS exactly; consistent target structures (correlation target, norm target with a retrieval solution) escape the capacity limit altogether; and a forget gate turns the steady state into recency-weighted least squares.
A3.6 Norm Bounds for the KronLSTM with Steady-State Solution We derive a two-sided norm bound for the steady state of the randomized Kronecker Delta Rule with more than d2 associations. Running memories or data stream i.e. online updates are covered via the steady state, therefore we obtain an expected bound on the online updated memory. A3.6.1 Overview For the overloaded KronLSTM (n associations, features ai = ki ⊗ vi , sampling weights pi ) the randomized Kronecker Delta Rule converges around the weighted least-squares memory S LS . We derive a two-sided bound on its Frobenius norm from an exact energy (Pythagoras) identity: E[c2 ] − E[ρ2 ] ≤ λmax (Ā)
2
S LS F ≤
E[c2 ] − E[ρ2 ] , λmin (Ā)
where ρi are the optimal residuals and Ā = E[aa⊤ ] is the feature second moment. The numerator is the explained target energy; the bound is attained (both sides coincide) for isotropic designs, and in the orthonormal 36
Kronecker Delta Rule for Long Context Linear Attention
P design it reproduces ∥S ⋆ ∥2F = i c2i of the target-weighted Hebbian superposition exactly. Combined with the steady-state analysis, it yields an a-priori bound on the expected memory norm of the running iterates. A3.6.2 Setting and nomenclature 2
As before, we assume n associations (ki , vi , ci ) with features ai = ki ⊗ vi ∈ Rd , ∥ai ∥ = ∥ki ∥ ∥vi ∥, sampling probabilities pi > 0, and n X pi ai a⊤ Ā = E aa⊤ = i ,
sLS = argmin E (a⊤ s − c)2 = Ā−1 E c a ,
i=1 LS ρi = ci − a⊤ , i s
(A91)
s
E ρa = 0
(normal equations) ,
(A92)
2
assuming Ā ≻ 0 (features span Rd ; the rank-deficient case is treated in the remarks). All expectations are over i ∼ p. Recall ∥s∥2 = ∥S∥F for s = vec(S), and that for uniform sampling E[ρ2 ] = Lmin , the minimum of the loss L. A3.6.3 An exact energy identity LS = v ⊤ S LS k be the optimal read-outs. Then E[ρ y] = 0 and Lemma A3 (Energy identity). Let yi := a⊤ i i s i
E c2 = E y 2 + E ρ2 ,
sLS
⊤
Ā sLS = E y 2 = E c2 − E ρ2 .
(A93)
Proof. E[ρ y] = E[ρ a]⊤ sLS = 0 by the normal equations; with c = y + ρ this gives the first identity. The second follows from E[y 2 ] = (sLS )⊤ E[aa⊤ ] sLS . The stored read-out energy of the least-squares memory equals the target energy minus the unexplained (residual) energy. Therefore, the memory can only be as large as the part of the target signal that the bilinear features can explain. A3.6.4 The Norm Bound Theorem A8 (Two-sided Frobenius-norm bound). With λmin , λmax the extreme eigenvalues of Ā, E c2 − E ρ2 ≤ λmax (Ā)
E c2 − E ρ2 . ≤ λmin (Ā)
(A94)
s s E c2 − E ρ2 E c2 ≤ ≤ . λmin (Ā) λmin (Ā)
(A95)
2 S LS F
In particular, since σmax (S LS ) ≤ S LS F , σmax S
LS
2
Proof. Sandwich the quadratic form: λmin sLS
≤ (sLS )⊤ Ā sLS ≤ λmax sLS
2
, and insert (A93).
Corollary A3 (First-moment variant). From λmin ∥s∥2 ≤ s⊤ Ās = s⊤ E[ca] ≤ ∥s∥ E[|c| ∥a∥], E |c | ∥k ∥ ∥v ∥ i i i S LS F ≤ . λmin (Ā)
(A96)
The accumulated write mass β ct ∥kt ∥ ∥vt ∥ is exactly the quantity whose first moment appears here. The second moment bound (A94) is usually much sharper (it divides by λmin only once, under the square root). A3.6.5 Tightness and special cases 2
Isotropic design gives equality. (A94) collapses to the identity
2
] If Ā = E[∥a∥ I (features spread evenly over Rd ), then λmin = λmax and d2 2 S LS F
=
d2 E[c2 ] − E[ρ2 ] E[∥a∥2 ]
.
(A97) 37
Kronecker Delta Rule for Long Context Linear Attention
Orthonormal design recovers the Hebbian superposition norm. For n = d2 with orthonormal {ki }, orthonormal {vi }, and uniform sampling, the features are orthonormal, Ā = I/d2 , the system is consistent (ρ ≡ 0), and (A94) holds with equality: 2
∥S ⋆ ∥2F
2
2
= d E[c ] =
d X
c2i ,
(A98)
i=1
exactly the Frobenius norm of the target-weighted Hebbian superposition S ⋆ = therefore attained, not merely an estimate.
⊤ i ci vi ki . The bound is
P
Unit-norm keys and values give a d2 conditioning factor. If ∥ki ∥ = ∥vi ∥ = 1 then tr Ā = E[∥a∥2 ] = 1, so λmin ≤ 1/d2 ≤ λmax : the lower bound in (A94) is at most E[c2 ] − E[ρ2 ], the upper bound at least d2 (E[c2 ] − E[ρ2 ]), with both collapsing to the latter in the isotropic case. Ill-spread designs pay in λmin : the worst case is a target profile aligned with the least-covered feature direction, and the 1/λmin dependence is unavoidable in general. Consistent case where association errors are zero. If the system is consistent (ρ ≡ 0; e.g. n ≤ d2 with independent features, or the correlation/norm targets), then S LS = S ⋆ is the exact solution and ∥S ⋆ ∥2F ≤
E[c2 ] . λmin (Ā)
(A99)
Residual energy can only shrink the memory: overload (inconsistency) makes the least-squares memory smaller than a consistent memory with the same target energy, never larger. 2
Rank-deficient features. If the features do not span Rd (n < d2 or dependent ai ), replace S LS by the minimum-Frobenius-norm least-squares solution and λmin by the smallest nonzero eigenvalue of Ā: since sLS ∈ span{ai } (as do the iterates from S0 = 0), the sandwich argument applies on that subspace and (A94) holds verbatim with λ+ min . A3.6.6 Bound on the memory norm for steady-state and all updates Bound on the memory norm for steady-state distribution. First, we consider a bound on the memory norm under the steady-state distribution. Corollary A4 (Bound on the steady-state memory norm). Under the randomized rule with step size 0 < β < 2/ maxi ∥ai ∥2 , the stationary distribution πβ has mean exactly S LS , so the second moment decomposes 2 orthogonally, Eπβ ∥S∥2F = S LS F + tr Vβ , and with the covariance trace bound of the steady-state note, Eπβ
h
∥S∥2F
i
E[c2 ] − E[ρ2 ] ≤ + λmin (Ā)
β E ρ2 ∥k∥2 ∥v∥2 . 2 − β maxi ∥ai ∥2 λmin (Ā)
(A100)
The first term is the size of the memory content, the second the O(β) fluctuation; for β → 0 or in the consistent case the bound reduces to Theorem A8. Theorem A9 (Two-sided memory norm bound for the steady state). Let πβ be the steady-state law of (A16), Vβ = Eπβ [ee⊤ ] its covariance as in Theorem A7 (ii) (the two coincide because the stationary mean is exactly sLS ), σ 2 = E[ρ2 ∥a∥2 ], and write A2max := max ∥ai ∥2 = max ∥ki ∥2 ∥vi ∥2 , i
i
κ := β A2max ∈ (0, 2) ,
(A101)
the last inclusion being the step-size condition (A45). Then the energy identity sLS⊤ Ā sLS = E[c2 ] − E[ρ2 ]
(A102)
38
Kronecker Delta Rule for Long Context Linear Attention
holds, hence the least-squares memory is pinned on both sides, E[c2 ] − E[ρ2 ] ≤ λmax (Ā)
2
S LS F ≤
E[c2 ] − E[ρ2 ] , λmin (Ā)
(A103)
and the steady-state memory itself satisfies Eπβ
∥S∥2F
=
2 S LS F
+ tr Vβ ,
tr Vβ ≤
β E ρ2 ∥a∥2 . 2 − κ λmin (Ā)
(A104)
The fluctuation term admits the exact decomposition β 2 σ + Rβ , 2 κ β σ2 β ⊤ E a Vβ a ∥a∥2 , 0 ≤ Rβ ≤ · . Rβ := 2 2−κ 2 Rβ is bounded by β 2 A2max σ 2 / 2(2 − κ) . Consequently, since E[ρ2 ] ≤ E[c2 ], 1 2 (1 − κ) E[c2 ] κ 2 2 2 E[c ] − , Eπβ ∥S∥F ≤ E[ρ ] ≤ max 1, 2−κ 2−κ λmin (Ā) λmin (Ā) tr ĀVβ
=
(A105)
(A106)
and in particular, whenever the step size satisfies β ∥at ∥2 ≤ 1 (i.e. κ ≤ 1, the non-expansive regime), Eπβ ∥S∥2F ≤
E[c2 ] . λmin (Ā)
(A107)
All statements are exact and non-asymptotic: they hold for every β admitted by (A45). Proof. The normal equations ĀsLS = b give E[ρ2 ] = E[c2 ] − 2b⊤ sLS + sLS⊤ ĀsLS = E[c2 ] − sLS⊤ ĀsLS , 2 2 which is (A102); bounding the Rayleigh quotient sLS⊤ ĀsLS between λmin (Ā) sLS and λmax (Ā) sLS , and using ∥s∥2 = ∥S∥F , gives (A103). The first part of (A104) is the bias–variance split E ∥s∥2 = ∥Es∥2 + TrCov(s) together with the fact that the stationary mean is exactly sLS (Theorem A7 (i)). Exact stationarity equation. Rather than the leading-order Lyapunov equation, we use the exact stationarity equation (A54) of Theorem A7 (ii), ĀVβ + Vβ Ā − β E a⊤ Vβ a aa⊤ = β E ρ2 aa⊤ , (A108) whose trace is 2 tr(ĀVβ ) = βσ 2 + βE[(a⊤ Vβ a) ∥a∥2 ]. This is (A105), and it identifies the remainder: Rβ ≥ 0 because Vβ ⪰ 0, while E[(a⊤ Vβ a) ∥a∥2 ] ≤ A2max E[a⊤ Vβ a] = A2max tr(ĀVβ ) gives 2 − κ tr(ĀVβ ) ≤ 2
βσ 2 , the prefactor being positive by (A45). Substituting this bound back into Rβ = βA2max tr(ĀVβ )’s upper estimate yields the stated bound on Rβ , and λmin (Ā) tr Vβ ≤ tr(ĀVβ ) yields the second part of (A104). Deriving the clean bound. S = 0 is feasible, so E[ρ2 ] ≤ E[c2 ]; moreover σ 2 = E[ρ2 ∥a∥2 ] ≤ A2max E[ρ2 ], hence βσ 2 ≤ κ E[ρ2 ] and E[ρ2 ] κ · . (A109) tr Vβ ≤ 2 − κ λmin (Ā) Adding this to (A103) gives 1 κ 2 2 2 2 Eπβ ∥S∥F ≤ E[ρ ] , (A110) E[c ] − E[ρ ] + 2−κ λmin (Ā) and −1 + κ/(2 − κ) = −2(1 − κ)/(2 − κ) is the coefficient in (A106). For κ ≤ 1 that coefficient is ≤ 0, so dropping the E[ρ2 ] term gives (A107); for κ > 1, using E[ρ2 ] ≤ E[c2 ] gives the factor 1 + 2(κ − 1)/(2 − κ) = κ/(2 − κ). Residuals lower the bound. The E[ρ2 ] term in (A106) enters with a negative sign throughout the non-expansive regime κ ≤ 1: overload shrinks the bound but does not inflate it, because residual energy is energy the bilinear features cannot explain and therefore cannot store. The two effects of ρ are less memory content (A103) and more steady-state jitter (A104). They cancel exactly at κ = 1 and the content term dominates below it. This is why the constant in (A107) is 1 rather than the 3/2 or 2 obtained by bounding the two contributions separately. 39
Kronecker Delta Rule for Long Context Linear Attention
Bound on the memory norm for all updates. Next, we consider the bound even before the memory St reaches the steady state but is in the update phase. Theorem A10 (The bound applies to the running or online memory at every step: not only in the steady state). Let µt := law(st ) = µ0 P t ∈ P2 be the law of the iterate at step t under (A16), so that πβ is the unique fixed point of the same kernel, and set qβ := 1 − β 2 − κ λmin (Ā) ∈ [0, 1) . (A111) Started at S0 = 0, the running memory obeys, for every t and in the non-expansive regime κ ≤ 1, t/2 2 E ∥St ∥2F ≤ 1 + qβ
4 E[c2 ] E[c2 ] ≤ , λmin (Ā) λmin (Ā)
(A112)
t/2 2 t/2 where the transient factor expands as 1 + qβ = 1 + 2qβ + qβt ↓ 1, so the bound decays geometrically from 4 to the steady-state constant 1 of (A107). For a general step size κ ∈ (0, 2) the same statement holds with E[c2 ] replaced by E[c2 ] max{1, κ/(2 − κ)}; for a general deterministic start S0 it reads
E
∥St ∥2F
2 q t/2 2 LS ≤ Bβ + qβ ∥S0 − S ∥F + tr Vβ ,
1/2 . Bβ := Eπβ ∥S∥2F
(A113)
Nothing on the right-hand side depends on the sequence length: the expected squared memory norm never exceeds four times its steady-state bound from the very first step, and relaxes geometrically to that bound. Proof. Rate. Couple two copies of (A16) synchronously, i.e. drive them with the same (at , ct ). The additive term cancels in the difference dt , leaving dt+1 = (I − βat a⊤ t )dt , and E (I − βaa⊤ )2 = I − 2β Ā + β 2 E ∥a∥2 aa⊤ ⪯ I − β 2 − κ Ā , (A114) using β 2 E[∥a∥2 aa⊤ ] ⪯ βκĀ. Hence E ∥dt+1 ∥2 ≤ qβ E ∥dt ∥2 , and taking the infimum over couplings gives t/2 W2 (µt , πβ ) ≤ qβ W2 (µ0 , πβ ). (Equivalently qβ = 1 − ρ̄ with the ρ̄ = γβ λmin (Ā) of Lemma A1, since γβ ≥ β(2 − κ); qβ is written out here only to keep the statement self-contained.) Since s 7→ ∥s∥ is 1-Lipschitz, the reverse triangle inequality in L2 gives E[∥St ∥2F ]1/2 ≤ Bβ + W2 (µt , πβ ). The initial term is not an estimate. For a deterministic start the only coupling of µ0 = δS0 with πβ is the product, so the infimum defining W2 is attained and 2
W2 (µ0 , πβ )2 = Eπβ ∥S − S0 ∥2F =
S0 − S LS F + tr Vβ ,
(A115)
the second equality being the bias–variance split around the stationary mean S LS (Theorem A7 (i)). At S0 = 0 2 the right-hand side is exactly S LS F + tr Vβ = Bβ2 by (A104), i.e. W2 (µ0 , πβ ) = Bβ : the distance from the empty memory to the steady state is the steady-state size. The two terms therefore collapse into one, 1/2 E ∥St ∥2F ≤
t/2
1 + qβ
Bβ ,
(A116)
and squaring and inserting Bβ2 ≤ E[c2 ]/λmin (Ā) from (A107) gives (A112). Squaring preserves the inequality t/2
since both sides are nonnegative. Finally qβ ≤ 1 bounds the transient factor by 4. The general-κ variant replaces Bβ2 by the bound of (A106), and the general-S0 variant (A113) keeps W2 (µ0 , πβ ) in the form (A115) instead of collapsing it. Summary. The least-squares memory satisfies the exact energy identity (sLS )⊤ Ā sLS = E[c2 ] − E[ρ2 ], which sandwiches its Frobenius norm between (E[c2 ] − E[ρ2 ])/λmax and (E[c2 ] − E[ρ2 ])/λmin . This is the explained target energy dividedP by the extreme feature-covariance eigenvalues. The bound is an equality for isotropic designs, reproduces i c2i in the orthonormal design, extends to the running iterates with an additive O(β) fluctuation term, shrinks under overload since the residual energy is subtracted. 40
Kronecker Delta Rule for Long Context Linear Attention
A4 DeltaNet Steady-State Norm Bound A4.1 Overview The DeltaNet steady-state norm bound can be derived essentially verbatim to kronLSTM. DeltaNet’s update is affine in St and acts on each row of the memory independently; each row obeys exactly the scalar delta-rule recursion analyzed for KronLSTM, with the association direction at = kt ⊗ vt replaced by the key kt and the scalar target ct replaced by the value coordinate vt,j . Every step of the argument — the energy identity, the two-sided bound, the exact stationary covariance bound, and the Wasserstein contraction that carries all of it to the running memory — therefore transfers, and yields Eπβ [∥S∥2F ] ≤ 2 E[∥v∥2 ]/λmin (K̄) with K̄ = E[kk⊤ ]. The practical consequence is a scoping correction: a length-independent steady-state bound is a property of the delta-rule mechanism, shared by KronLSTM and DeltaNet, which separates both from mLSTM and from any stability argument resting on a forget gate. We also record where the two genuinely differ: in the step-size condition, in what the bound is a bound on, and in the conditioning constant that sets its scale.
A4.2 DeltaNet Affine Recursion DeltaNet’s update is St+1 = St − βt St kt − vt kt⊤ = St I − βt kt kt⊤ + βt vt kt⊤ ,
(A117)
and Gated DeltaNet’s is the same with St replaced by ft St in the first term. Two features are immediate. First, (A117) is affine in St , so the pair (memory, random input) generates a Markov chain of exactly the type analyzed for the Kronecker Delta Rule. Second, and decisively, the memory is acted on from the right only, so the rows of S do not mix. Transposing (A117), ⊤ St+1 = I − βt kt kt⊤ St⊤ + βt kt vt⊤ , (A118) and reading off the j-th column, i.e. the j-th row s(j) := S ⊤ ej of S, (j) (j) st+1 = I − βt kt kt⊤ st + βt vt,j kt ,
j = 1, . . . , d .
(A119)
The structural correspondence. Equation (A119) is identical to the vectorized KronLSTM recursion st+1 = (I − βat a⊤ t )st + βct at under the substitution at = kt ⊗ vt 7−→ kt ,
Rd
ct 7−→ vt,j ,
2
7−→ Rd .
(A120)
DeltaNet is thus d independent copies of the same scalar delta rule all driven by a common key kt and differing only in their scalar targets vt,j . KronLSTM is a single copy of that rule on a d2 -dimensional state with the richer direction kt ⊗ vt . Neither is a generalization of the other; both are Kaczmarz/LMS iterations, which is why the same theory covers both.
A4.3 Steady-State Norm Bound Model the stream as i.i.d. triples (kt , vt , βt ) ∼ p and put K̄ := E kk⊤ ≻ 0 , S LS := E vk⊤ K̄ −1 = argmin E ∥Sk − v∥2 ,
(A121)
S
ρ := v − S LS k , so that E[ρk⊤ ] = 0. With a random, input-dependent βt the same statements hold with K̄ replaced by the β-weighted second moment E[βkk⊤ ] and S LS by the correspondingly weighted least-squares solution; nothing else changes. Assume the step size satisfies βt ∥kt ∥2 ≤ 1, which for Gated DeltaNet’s sigmoid-bounded βt ∈ (0, 1) and unit-norm keys holds by construction. Proposition A1 (Two-sided steady-state norm bound for DeltaNet). Let πβ be the steady-state law of (A117) and Σβ the covariance of vec(S) under it. Then the energy identity Tr S LS K̄ S LS⊤ = E ∥v∥2 − E ∥ρ∥2 (A122) 41
Kronecker Delta Rule for Long Context Linear Attention
holds, hence
E ∥v∥2 − E ∥ρ∥2 E ∥v∥2 − E ∥ρ∥2 2 ≤ S LS F ≤ , λmax (K̄) λmin (K̄) and the steady-state memory satisfies, exactly and without any expansion in β, β E ∥ρ∥2 ∥k∥2 2 LS 2 + TrΣβ , TrΣβ ≤ Eπβ ∥S∥F = S , F λmin (K̄)
(A123)
(A124)
so that in particular Eπβ
∥S∥2F
2 E ∥v∥2 ≤ . λmin (K̄)
(A125)
Proof. Apply the KronLSTM argument to (A119) for each j and sum. The normal equations K̄s(j),LS = E[vj k] P give E[ρ2j ] = E[vj2 ] − s(j),LS⊤ K̄s(j),LS ; summing over j and using j s(j)⊤ K̄s(j) = Tr(S K̄S ⊤ ) yields 2
2
(A122). Bounding each summand’s Rayleigh quotient between λmin (K̄) s(j) and λmax (K̄) s(j) and P 2 summing, together with j s(j) = ∥S∥2F , gives (A123). For (A124), write E := S − S LS , so that (A117) becomes Et+1 = Et (I − βt kt kt⊤ ) + βt ρt kt⊤ with (kt , ρt ) independent of Et . Taking squared Frobenius norms in stationarity, the cross term vanishes because E[Et ] = 0, leaving h i E ∥E∥2F = E Tr E E (I − βkk⊤ )2 E ⊤ + β 2 E ∥ρ∥2 ∥k∥2 . (A126) Since β ∥k∥2 ≤ 1, E (I − βkk⊤ )2 = I − 2β K̄ + β 2 E ∥k∥2 kk⊤ ⪯ I − β K̄ ,
(A127)
and cancelling E ∥E∥2F from both sides gives E[Tr(E K̄E ⊤ )] ≤ βE[∥ρ∥2 ∥k∥2 ]; the claim follows from λmin (K̄)E ∥E∥2F ≤ E[Tr(E K̄E ⊤ )] and TrΣβ = E ∥E∥2F . Finally S = 0 is feasible, so E ∥ρ∥2 ≤ E ∥v∥2 , which bounds both terms of (A124) by E ∥v∥2 /λmin (K̄) and gives (A125). Corollary A5 (Transfer to the running or online memory). With µt the law of St and Bβ := Eπβ [∥S∥2F ]1/2 , 1/2 t/2 E ∥St ∥2F ≤ Bβ + 1 − βλmin (K̄) W2 (µ0 , πβ ) ,
Bβ2 ≤
2 E ∥v∥2 . λmin (K̄)
(A128)
Proof. Synchronous coupling: driving two copies with the same (kt , vt , βt ) cancels the additive term, leaving Dt+1 = Dt (I − βt kt kt⊤ ), whence E ∥Dt+1 ∥2F ≤ (1 − βλmin (K̄))E ∥Dt ∥2F by the same positive-semidefinite inequality as above. Take the infimum over couplings and use that ∥·∥F is 1-Lipschitz.
A4.4 Relation to the KronLSTM Bound The bound is a consequence of the delta rule being a relaxed projection that is a correction proportional to a residual that shrinks as the memory improves. Both models have that structure, therefore separates the delta-rule family from mLSTM, whose Hebbian write is uncorrected and has no fixed point to contract toward. It separates the steady-state argument from the non-expansiveness argument, whose forget-gate bound βCAmax /(1 − f) is Ω(T ) once f → 1 as long contexts require. The constants are not comparable. E[c2 ] KronLSTM: , λmin (Ā)
The two bounds read
2 E[∥v∥2 ] DeltaNet: , λmin (K̄)
2 2 Ā = E aa⊤ ∈ Rd ×d , K̄ ∈ Rd×d .
(A129)
These are bounds on the same object, ∥S∥F , but they are not bounds for the same task: KronLSTM’s stream carries one scalar ct per step, DeltaNet’s a d-vector vt , so E[c2 ] and E ∥v∥2 measure different amounts of information being written. The denominators also differ structurally: K̄ ≻ 0 requires only that the keys 2 span Rd , whereas Ā ≻ 0 requires the ai = ki ⊗ vi to span Rd , and λmin (Ā) is typically the smaller of the two. The reason is that for independent isotropic keys and values, Ā = E[kk⊤ ] ⊗ E[vv ⊤ ] gives λmin (Ā) = λmin (K̄) λmin (E[vv ⊤ ]), a product of two small numbers. On the other hand the constant 2 appears in the bound of the DeltaNet. Which constant is smaller in a given setting is an empirical question, not a structural one. 42
Kronecker Delta Rule for Long Context Linear Attention
DeltaNet has a smaller bound. The step-size condition is milder. KronLSTM requires β ∥kt ∥2 ∥vt ∥2 ≤ 1, so a large value norm eats directly into the admissible step size and hence into the contraction rate βλmin (Ā); DeltaNet requires only βt ∥kt ∥2 ≤ 1, in which vt does not appear at all. It enters the drive but never the stability condition. KronLSTM has advantages. d2 rather than d exactly satisfiable associations per scalar slot, interference gated by the product of key and value overlap rather than key overlap alone, an update direction vt kt⊤ fixed by the input pair rather than the state-dependent ut kt⊤ so that a write’s footprint on unrelated memories does not compound with context length, single-binding write/rewrite/erase, and linearity of the memory in the target sequence. None of these follow from, or are affected by, the steady-state bound.
A5 Retention Rates for KronLSTM and DeltaNet A5.1 KronLSTM Setting 2
Let n > d2 associations (ki , vi , ci ), 1 ≤ i ≤ n, be given. Vectorized, with s = vec(S) ∈ Rd and ai = ki ⊗ vi 2 (∥ai ∥ = ∥ki ∥ ∥vi ∥), the associations form the linear system As = c with A ∈ Rn×d stacking the rows a⊤ i ; we 2 assume A has full column rank d2 (the features span Rd ). At each step an index it is drawn with probabilities pi > 0, independently of the past, and the rule is applied with fixed step size β satisfying 0 < β ∥ai ∥2 < 2
for all i .
(A130)
Define n X Ā := E aa⊤ = pi ai a⊤ i ≻ 0,
n X b̄ := E c a = pi ci ai ,
sLS := Ā−1 b̄ = argmin s
(A131)
i=1
i=1 n X
pi a⊤ i s − ci
2
,
LS ρi := ci − a⊤ i s
(optimal residuals) ,
(A132)
i=1
so that the normal equations read n X E ρa = pi ρi ai = 0
b̄ = Ā sLS .
⇐⇒
(A133)
i=1
For uniform sampling, Ā = n1 A⊤ A and sLS = (A⊤ A)−1 A⊤ c is the ordinary least-squares solution, i.e. the unique minimizer of L. Throughout, expectations without subscript are over i ∼ p, and Eπ denotes expectation of a random state distributed according to a law π. Vectorized, the rule and its error form are st+1 = Mit st + β cit ait ,
Mi := I − β ai a⊤ i ,
et+1 = Mit et + β ρit ait ,
(A134)
LS + ρ . The constants with et := st − sLS ; the error form follows by inserting ci = a⊤ i i s γβ := min β 2 − β ∥ai ∥2 > 0 , ρ̄ := γβ λmin (Ā) ∈ (0, 1] , σ 2 := E ρ2 ∥a∥2
(A135)
satisfy 0 < ρ̄ ≤ 1. Under (A130), the expected iterate obeys the exact deterministic recursion E st+1 = I − β Ā E st + β b̄ ⇐⇒ E et+1 =
I − β Ā E et ,
(A136)
r := max 1 − βλk (Ā) < 1 ,
(A137)
i
whose unique fixed point is sLS , and E[St ] − S LS F ≤ rt S0 − S LS F ,
k
so E[St ] → S LS linearly. The convergence of the mean is exactly unbiased: the fixed point of (A136) is sLS itself, with no O(β) correction. 43
Kronecker Delta Rule for Long Context Linear Attention
A5.2 DeltaNet Setting DeltaNet’s update is St+1 = St − βt St kt − vt kt⊤ = St I − βt kt kt⊤ + βt vt kt⊤ ,
(A138)
and Gated DeltaNet’s is the same with St replaced by ft St in the first term. Two features are immediate. First, (A138) is affine in St , so the pair (memory, random input) generates a Markov chain of exactly the type analyzed for the Kronecker Delta Rule. Second, and decisively, the memory is acted on from the right only, so the rows of S do not mix. Transposing (A138), ⊤ St+1 = I − βt kt kt⊤ St⊤ + βt kt vt⊤ , (A139) and reading off the j-th column, i.e. the j-th row s(j) := S ⊤ ej of S, (j) (j) st+1 = I − βt kt kt⊤ st + βt vt,j kt ,
j = 1, . . . , d .
(A140)
We will use later the key covariance matrix K̄ = E[kk⊤ ] and the value covariance matrix V̄ = E[vv ⊤ ]. The structural correspondence. Equation (A140) is identical to the vectorized KronLSTM recursion st+1 = (I − βat a⊤ t )st + βct at under the substitution at = kt ⊗ vt 7−→ kt ,
ct 7−→ vt,j ,
Rd
2
7−→ Rd .
(A141)
DeltaNet is thus d independent copies of the same scalar delta rule all driven by a common key kt and differing only in their scalar targets vt,j . KronLSTM is a single copy of that rule on a d2 -dimensional state with the richer direction kt ⊗ vt . Neither is a generalization of the other; both are Kaczmarz/LMS iterations, which is why the same theory covers both.
A5.3 KronLSTM Retention of the Initial Memory We consider KronLSTM and the Kronecker Delta Rule. We ask how much of an initial memory s0 survives after t steps. The mean recursion (A136) is affine, so it separates the two contributions exactly. Writing M := I − β Ā and unrolling, t−1 X t E st = M s 0 + β M τ b̄ = τ =0
Mt s | {z }0
initial memory
+ I − M t sLS , | {z }
(A142)
acquired memory
Pt−1
where the geometric sum was evaluated with β τ =0 M τ = (I − M t )(I − M )−1 β = (I − M t )Ā−1 and Ā−1 b̄ = sLS ; equivalently E[st ] − sLS = M t (s0 − sLS ), which is the error recursion (A134) in the mean. Everything in E[st ] that depends on s0 sits in the first term, and it depends on it linearly. The natural measure of retention is therefore the read-out of that term along the stored direction, Rt (s0 ) := s⊤ 0
∂ E[st ] t s0 = s⊤ 0 M s0 , ∂ s0
∥s0 ∥ = 1 ,
(A143)
the fraction of a unit initial memory still legible after t steps. It equals 1 at t = 0 and requires no assumption relating s0 to sLS : the acquired term is filtered out by differentiation rather than by orthogonality. Proposition A2 (Retention rate). Assume κ := β A2max ≤ 1 with A2max = maxi ∥ai ∥2 , so that β λmax (Ā) ≤ 1 and M ⪰ 0. Then for every unit s0 t t 1 − β λmax (Ā) ≤ Rt (s0 ) ≤ 1 − β λmin (Ā) , (A144) both bounds being attained, at the corresponding eigenvectors of Ā. Averaged over a uniformly random unit s0 the retention is exactly the normalized trace, 2
d t Tr M t 1 X Es0 Rt (s0 ) = = 1 − β λ ( Ā) , k d2 d2
(A145)
k=1
and the retention horizon — the number of steps after which the slowest mode has decayed to 1/e — is −1 t1/e = 1/ log 1 − βλmin (Ā) ≃ 1/ β λmin (Ā) . 44
Kronecker Delta Rule for Long Context Linear Attention
Proof. Ā is symmetric, so M = I − β Ā is symmetric with eigenvalues 1 − βλk (Ā) ∈ [0, 1) under βλmax ≤ 1, hence M t is symmetric positive semidefinite with eigenvalues (1 − βλk )t . Equation (A144) is the Rayleighquotient bound for M t , with equality on its extreme eigenvectors, which are those of Ā for λmax and λmin respec2 d2 ⊤ t t ⊤ tively. For (A145), E[s0 s⊤ 0 ] = I/d for a uniform unit vector in R , so E[s0 M s0 ] = Tr(M E[s0 s0 ]) = 2 t 2 2 Tr(M )/d . The step-size condition holds because λmax (Ā) ≤ maxi ∥ai ∥ = Amax , Ā being a convex combination of the ai a⊤ i .
A5.4 DeltaNet Retention of the Initial Memory Corollary A6 (DeltaNet retention). By the row decomposition (A140), DeltaNet’s mean memory obeys E[St ] = S0 N t + S LS (I − N t ) with N := I − β K̄, so with Rt (S0 ) := S0 , S0 N t F and ∥S0 ∥F = 1, t 1 − β λmax (K̄) ≤ Rt (S0 ) ≤
t 1 − β λmin (K̄) ,
Tr N t ES0 Rt = , d
(A146)
under β maxi ∥ki ∥2 ≤ 1. The statement is Proposition A2 under the substitution Ā 7→ K̄, d2 7→ d of Section A4.2.
A5.5 KronLSTM Retains Longer than DeltaNet The two retention rates are governed by the spectra of Ā and K̄, and for independent keys and values these are related exactly. Proposition A3 (Spectral comparison). Let k and v be independent and let V̄ := E[vv ⊤ ]. Then Ā = K̄ ⊗ V̄ , so the eigenvalues of Ā are the d2 pairwise products of those of K̄ and V̄ , and in particular λmin (Ā) = λmin (K̄) λmin (V̄ ) and λmax (Ā) = λmax (K̄) λmax (V̄ ). If the values are ℓ2 -normalized, ∥v∥ = 1, then TrV̄ = 1 and hence λmin (K̄) λmin (Ā) ≤ , λmax (Ā) ≤ λmax (K̄) , (A147) d with equality in the first when the values are isotropic, V̄ = I/d. Proof. aa⊤ = (k ⊗ v)(k ⊗ v)⊤ = kk⊤ ⊗ vv ⊤ by the mixed-product rule, and independence factorizes the expectation. The spectrum of a Kronecker product of symmetric matrices is the set of pairwise products. For normalized values λmin (V̄ ) ≤ TrV̄ /d = 1/d and λmax (V̄ ) ≤ TrV̄ = 1, giving (A147); isotropy forces V̄ = I/d and the first inequality becomes an equality. Because keys and values are ℓ2 -normalized in the KronLSTM block, ∥ai ∥2 = ∥ki ∥2 ∥vi ∥2 = 1 = ∥ki ∥2 , so both models admit exactly the same step sizes β ≤ 1 and the comparison at equal β is well posed. Under Propositions A2 and A3: • The slowest mode decays d times more slowly. KronLSTM’s worst-case retention (1 − βλmin (Ā))t dominates DeltaNet’s (1 − βλmin (K̄))t , and the retention horizons are tKronLSTM ≃ 1/e
1 d ≥ = d tDeltaNet , 1/e β λmin (Ā) β λmin (K̄)
(A148)
a factor d in context length at which a stored association is still legible, with equality for isotropic values. • No mode decays faster. By the second half of (A147), λmax (Ā) ≤ λmax (K̄), so even KronLSTM’s fastestdecaying mode is no faster than DeltaNet’s. The comparison is therefore not a trade of some directions against others: the whole spectrum of retention rates moves in KronLSTM’s favour. For isotropic values it moves by exactly the factor 1/d, λk (Ā) = λk (K̄)/d with multiplicity d each. P t /d2 = 1 • On average, likewise. Comparing (A145) with (A146) for isotropic values, TrM k (1 − d 1P t t t βλk (K̄)/d) ≥ d k (1 − βλk (K̄)) = TrN /d termwise.
45
Kronecker Delta Rule for Long Context Linear Attention
Retention is bought from adaptation. The same matrix M t governs both terms of (A142): the acquired memory approaches sLS at rate I − M t . Retaining the initial memory d times longer therefore means approaching the least-squares memory d times more slowly, at fixed β. The statement is not that KronLSTM forgets less for free, but that its per-step write is d times gentler in every direction of an d2 -dimensional memory, where DeltaNet’s is concentrated on a d-dimensional one — the same trade-off that appears in the capacity count (d2 against d exactly satisfiable associations) and in the norm bound, seen through its time constant. Long contexts are precisely the regime in which the number of associations, not the speed of fitting any one of them, is binding.
A6 Further Results A6.1 400M language models Models with 400M/40B (Table A2) are closer to each other in their performance. KronLSTM has the best average and performs best on HellaSwag, ARC-easy, ARC-challenge, and WinoGrande. Mamba-3 is best on PIQA, KDA on LAMBADA, and GDN-2 on WinoGrande where it ties with KronLSTM. Compared with mLSTM, the matrix-memory xLSTM variant that KronLSTM builds on, KronLSTM is better on five of the six tasks, raises the average by 2.1 points, and lowers LAMBADA perplexity from 43.40 to 28.28. mLSTM is only marginally ahead on PIQA. Table A2: Downstream performance of 400M/40B linear models. Avg-6 is the mean accuracy over the five commonsense reasoning tasks and LAMBADA. Best per column in bold, second best underlined. Model
Hella
PIQA
ARC-e
ARC-c
Wino
LMB acc
Avg-6 ↑
LMB ppl ↓
GDN Mamba-3 KDA GDN-2 mLSTM
41.28 41.89 42.08 42.33 40.29
66.05 67.25 66.16 66.87 67.19
57.87 60.82 60.48 60.23 60.77
31.48 31.23 31.40 29.69 29.78
49.64 52.33 51.30 52.41 50.75
32.31 35.11 36.70 33.84 29.87
46.44 48.10 48.02 47.56 46.29
34.36 29.51 27.84 29.14 43.40
KronLSTM
43.09
67.03
61.03
32.00
52.41
35.05
48.43
28.28
A6.2 Ablation on different formulations of KronLSTM Table A3 ablates the components of the KronLSTM write rule at 1.5B/100B. We report Avg-6, the mean accuracy over the five commonsense reasoning tasks and LAMBADA, together with LAMBADA perplexity, the average over the six-task real-world recall suite at 2k context, and the average over the six RULER NIAH tasks of Table 3 at 4k, 8k and 16k. Three variants are compared with the base model of (10): (1) the ℓ2 -normalization of vt is removed; (2) erase and write are coupled by using the target ct instead of c̃t = ct /βt , so that βt scales both terms as in Gated DeltaNet; (3) the write gate is fixed to the unit target ct ≡ 1. On language modeling, variants (1) and (2) stay within 0.3 accuracy points and 0.25 perplexity points of the base model, with the coupled variant marginally ahead on both. Fixing the target costs 1.6 accuracy points and 0.8 perplexity points, the largest degradation among the ablations. On the recall suite, variants (1) and (2) gain 1.0 and 0.5 points, respectively. On NIAH the ordering reverses: at 4k the base model leads the coupled variant by 12.6 points and the unnormalized variant by 19.9 points, at 8k the unnormalized variant is ahead by 2.2 points, and at 16k the base model leads all three variants. The learned write gate and the decoupled write therefore matter most for retrieval within the pretraining context, while their effect on language modeling is small.
A6.3 Long context extension results
46
Kronecker Delta Rule for Long Context Linear Attention
Table A3: Write-rule ablation at 1.5B/100B, relative to K RON LSTM. Avg-6 is the mean of the five commonsense reasoning tasks plus LAMBADA accuracy. Recall is the six-task real-world recall suite at 2k context. RULER is averaged at each evaluation length. Best per column in bold, second best underlined. Ablations
Avg-6 ↑
LMB ppl ↓
Recall ↑
NIAH-Avg@4k
@8k
@16k
base
59.72
11.716
30.3
59.5
30.5
14.3
no ℓ2 -norm on vt β on both sides non-learnable target
59.41 60.00 58.17
11.844 11.479 12.495
31.3 30.8 30.1
39.6 46.9 41.9
32.7 29.4 26.2
12.6 11.8 10.1
Table A4: RULER NIAH for the 32k-context-extended linear models, evaluated on identical documents. Better of the two per task and length in bold. Model
Len.
S1
S2
S3
MK
MQ
MV
Linear models
GDN-2
4k 8k 16k 32k
100.0 100.0 100.0 97.8
74.0 55.6 10.2 2.6
68.2 17.6 7.4 0.8
28.4 23.2 9.4 3.0
56.5 38.8 7.4 1.5
62.5 41.9 8.9 7.2
KronLSTM
4k 8k 16k 32k
100.0 99.4 94.6 81.4
99.6 94.0 27.6 5.6
92.6 61.2 41.8 8.6
30.8 28.4 18.0 5.0
37.1 33.5 21.5 3.0
43.9 36.8 30.1 11.3
Hybrid models
GDN-2
4k 8k 16k 32k
52.0 28.6 13.0 7.0
56.0 31.2 16.8 7.8
45.6 20.2 9.8 3.6
49.2 26.6 18.8 6.6
24.3 13.0 6.8 2.6
31.4 18.2 14.6 6.6
KronLSTM
4k 8k 16k 32k
86.2 74.6 55.6 38.4
85.4 38.0 19.2 8.2
68.8 30.4 11.0 4.8
43.8 27.0 19.0 6.8
29.5 17.8 12.5 6.3
31.0 24.2 17.2 8.3
A7 Pretraining Details All models are pretrained from scratch using lm-engine Mishra (2024) with Triton kernels from flash-linear-attention Yang and Zhang (2026) whenever available. Every mixer in a comparison shares the corpus, the tokenizer, the optimizer, the schedule, the batch size, and the seed; we only change the sequence mixer blocks. The models were trained on 16 nodes of 4×NVIDIA GH200. Training is pure data parallelism under the FSDP-2 with bf16 mixed-precision. Data and tokenization We train on the FineWeb-Edu 100BT sample, tokenized with the Llama 2 tokenizer with its standard vocab size of 32,000. Documents are concatenated, separated by the EOS token, and packed into fixed-length sequences of 8192 tokens; This is applied identically to every experiment. Architecture All models are decoder-only and identical outside the sequence mixer. We implemented the block structures of every baseline as in the original works. Mamba-3 was trained using the standard expansion factor of 2, a dstate of 128, and a head dimension of 64. For Mamba-3, we utilized the SISO formulation. For the other baselines and our method, we utilized dqk = dv = 128. This makes the state size equal across all models. 1.5B models have 24 layers, a hidden dimension of 2048 with 16 heads. The 400M models have 24 47
Kronecker Delta Rule for Long Context Linear Attention
layers with a hidden dimension of 1024 and 4 heads (here dv = 256). Optimization optimizer peak learning rate schedule weight decay gradient clipping sequence length global batch precision
AdamW, β = (0.9, 0.95), ϵ = 10−10 3 × 10−4 linear warmup over 10% of steps, then cosine to 0.1× peak (3 × 10−5 ) 0.1, excluding norms, biases, Alog , b∆ and the gate bias global norm 1.0 8192 128 sequences = 1,048,576 tokens per step bf16 mixed precision, fp32 optimiser state
A7.1 Long-context extension The context-extended models of Section 3.3 branch from the 1.5B pretraining runs at 75B tokens and are trained for a further 25B tokens at a sequence length of 32,768, so that both extended models finish at exactly 100B tokens and are token-matched to the 8k-pretrained models. The architecture, tokenizer, and all model hyperparameters are unchanged. The global batch is held at the same 1M tokens per step, now as 32 sequences of 32,768 tokens instead of 128 sequences of 8,192. Optimization. The optimizer state is re-initialized at the branch point for both models and the schedule restarts: linear warmup over 5% to a peak learning rate of 8.4 × 10−5 , which is the value the parent cosine schedule had reached at the checkpoint, followed by cosine decay over 23,800 steps to 0.1× the peak. This mirrors the warmup-and-decay shape used by Gao et al. (2024). AdamW hyperparameters, weight decay, and gradient clipping are as in Appendix A7. Data. The corpus takes the four long-document domains of ProLong-64K (Gao et al., 2024), books, code, textbooks, and arXiv, re-tokenized with the Llama 2 tokenizer, and blends them at the ratios of Gao et al. (2024) with FineWeb-Edu in place of their short-context mixture. Documents are concatenated and packed into sequences of 32,768 tokens as in pretraining. Systems. Training runs on 8 nodes of 4×NVIDIA GH200 with ZeRO stage 2 and block-wise gradient checkpointing under bf16 mixed precision.
A7.2 State Tracking Experiments State-tracking tasks. Each sample is a token sequence of length ∼ U[2, 128] padded to the context length, with a single supervised position at its end. Parity: i.i.d. uniform bits, label the parity of the number of ones (chance 50%). S3 : i.i.d. uniform transpositions (0 1), (0 2), (1 2), label the prefix product x1 ◦ · · · ◦ xℓ as one of the six group elements (chance 16.7%; tracking parity alone gives 33.3%). Modular arithmetic: an expression d1 o1 d2 . . . dk = with uniform digits in {0, . . . , 4} and operators in {+, −, ×}, evaluated with operator precedence modulo 5, the result supervised at the = token (chance 20%). Samples are generated on the fly and deterministically from the run seed (seeds 1-3); evaluation uses 50,000 fresh sequences per length L ∈ {128, 256, 512, 1024}. Models and training. All models share a 128-dimensional embedding, pre-norm residual blocks (RMSNorm, no feed-forward sublayer) and a linear read-out; they differ only in the mixer: Gated DeltaNet with the eigenvalue range extended to [−1, 1] (Grazzi et al., 2025), Mamba-3 (SISO, expansion 2, state size 128, data-dependent RoPE), and KronLSTM. For optimizer we used AdamW with weight decay 0.1, batch size 128, bf16. Parity and S3 : two blocks, constant learning rate ∈ {10−3 , 10−4 }, 50k steps, gradient clipping 100. Modular arithmetic requires depth and a longer budget for all three architectures: three blocks, 150k steps. We report end-of-training accuracy, mean ± standard deviation over three seeds, at the learning rate with the best mean accuracy over L ∈ {256}. 48
Kronecker Delta Rule for Long Context Linear Attention
A8 Chunkwise-Parallel Training of KronLSTM The KronLSTM update (10) revises the matrix memory by a rank-one term whose coefficient depends on the memory only through a scalar. It therefore admits the chunkwise-parallel training scheme of DeltaNet (Yang et al., 2024), Gated DeltaNet (Yang et al., 2025), Kimi Delta Attention (Kimi Team et al., 2025), and Gated DeltaNet-2 (Hatamizadeh et al., 2026): the sequence is split into chunks of length C, all token interactions inside a chunk are expressed as dense matrix products and one small triangular solve, and the memory is propagated only between chunks. Three points differ from the delta rule. (i) The triangular solve is built on the Gram matrix of the Kronecker features at = kt ⊗ vt , which by the mixed-product property is the Hadamard product of a (decay-weighted) key Gram and the value Gram; the dk dv -dimensional features are never formed. (ii) The pseudo-values are scalar multiples ur vr of the values. (iii) The incoming memory of a chunk enters the solve through C scalar scores vr⊤ S0 (γr ⊙ kr ) instead of the dv -dimensional read-outs S0 kr of the delta rule. The vector forget gate is handled as in KDA and Gated DeltaNet-2 by absorbing the cumulative decay into an asymmetric pair of keys.
A8.1 Setting and notation We consider one chunk of C tokens and suppress the chunk index. Let S0 ∈ Rdv ×dk be the memory entering the chunk and let qr , kr ∈ Rdk , vr ∈ Rdv , βr , cr ∈ R and fr ∈ (0, 1)dk , Fr = diag(fr ), be the inputs and gates of the r-th token, r = 1, . . . , C. Writing Sr for the memory after token r, the update (10) and the read-out are1 Sr = Sr−1 Fr + ur vr kr⊤ ,
ur := cr − βr yr ,
yr := vr⊤ Sr−1 Fr kr ,
hr = Sr qr . (A149)
We call yr the score of the pair (kr , vr ) on the decayed memory and ur the write coefficient, the coefficient of the rank-one write along vr kr⊤ . It is the only quantity in (A149) that depends on the memory. Cumulative decay.
With ℓr :=
P
i≤r log fi (a cumulative sum inside the chunk) we set
γr := exp(ℓr ) = f1 ⊙ · · · ⊙ fr ∈ (0, 1]dk ,
γ0 := 1,
Γr := diag(γr ) = F1 · · · Fr . (A150)
All products, quotients and exponentials of γ’s are element-wise over the key dimension. For s ≤ r the ratio γr /γs = fs+1 ⊙ · · · ⊙ fr lies in (0, 1]dk ; it is the decay that a key written at token s has undergone by token r. Four decay-scaled copies of the keys and queries appear: br := γr ⊙ kr , k
k̄r := kr /γr ,
k̆r := (γC /γr ) ⊙ kr ,
qbr := γr ⊙ qr .
(A151)
br is the key with which the memory is scored, k̄r the key along which it is written in the decay-normalized k frame of Section A8.2, and k̆r the key as it appears in the memory at the end of the chunk. c K̄, K̆, Q b stack the Stacked matrices. K, Q ∈ RC×dk and V ∈ RC×dv stack kr⊤ , qr⊤ , vr⊤ as rows; K, C C×d ⊤ v stacks the read-outs h . The three C × C vectors of (A151); β, c, u, p ∈ R stack the scalars; H ∈ R r matrices Gkk rs
b ⊤ k̄s = 1[r > s] := 1[r > s] k r
dk X d=1
krd ksd
γrd , γsd
Gvv := V V ⊤ ,
br⊤ k̄s Gqk rs := 1[r ≥ s] q
(A152) are the decay-weighted key Gram (strictly lower triangular), the value Gram, and the decay-weighted read-out Gram (lower triangular with diagonal). All entries of Gkk and Gqk involve only ratios γr /γs with s ≤ r, hence only factors in (0, 1]. 1
This is (10) with the time index shifted by one, so that Sr denotes the memory after the write of token r. The read-out uses this memory, hr = Sr qr , i.e., the query of token r sees the association written at token r, as in DeltaNet and its gated variants and in our kernels.
49
Kronecker Delta Rule for Long Context Linear Attention
A8.2 Decay-normalized recurrence The forget gate acts on the key dimension by a diagonal matrix, and diagonal matrices commute. This allows the cumulative decay to be taken out of the recurrence. br := Sr Γ−1 , so that S b0 = S0 . Then, for r = 1, . . . , C, Proposition A4 (Decay-normalized recurrence). Let S r br = S br−1 + ur vr k̄⊤ , S r
br , br−1 k yr = vr⊤ S
(A153)
us vs k̄s⊤ .
(A154)
and consequently br = S0 + S
X s≤r
br−1 Γr−1 Fr = S br−1 Γr . Inserting this into (A149) gives Proof. Since Γr = Γr−1 Fr , we have Sr−1 Fr = S ⊤ −1 ⊤ b Sr = Sr−1 Γr + ur vr kr ; right-multiplication by Γr yields the first identity, because kr⊤ Γ−1 r = k̄r . The ⊤ ⊤ b b b second identity is yr = vr (Sr−1 Γr )kr = vr Sr−1 (Γr kr ). Unrolling the first identity from S0 = S0 gives (A154). In the normalized frame the recurrence is the Kronecker Delta Rule without forget gate, applied to an asymmetric br and written along the un-decayed key k̄r . This key pair: the association is scored with the decayed key k is the same device by which Gated DeltaNet-2 absorbs its channel-wise decay into asymmetric erase factors (Hatamizadeh et al., 2026). Equation (A154) is the additive representation of the memory, Sr = S0 + P ⊤ s≤r us vs k̄s Γr ; the memory revisions do not have to be materialized, only the C scalars us .
A8.3 The write coefficients solve a unit lower triangular system br be the score of the r-th pair on the incoming memory, Proposition A5 (Write coefficients). Let pr := vr⊤ S0 k and let N := diag(β) Gkk ⊙ Gvv ∈ RC×C , Λ := (I + N )−1 . (A155) N is strictly lower triangular, so I + N is unit lower triangular and invertible for every β and every input. The write coefficients are u = Λ c − β ⊙ p = |{z} Λ c − Λ diag(β) p. (A156) =: u◦
Proof. Insert (A154) at r − 1 into the score in (A153): X X br + b r ) = pr + yr = vr⊤ S0 k us (vr⊤ vs )(k̄s⊤ k Gkk ⊙ Gvv rs us . s<r
Hence ur = cr − βr yr reads ur +
P
s<r
s<r Nrs us = cr − βr pr , which is row r of (I + N )u = c − β ⊙ p.
br ⊗ vr and ās := k̄s ⊗ vs , the mixed-product property b r := k The Gram of the Kronecker features. With a ⊤ ⊤ ⊤ b b r ās = (kr k̄s )(vr vs ), so Gkk ⊙ Gvv is the strictly lower triangular part of of the Kronecker product gives a the Gram matrix of the decay-weighted Kronecker features. Without forget gate (fr ≡ 1) it is the strictly lower part of the Gram matrix (a⊤ r as )rs of the features ar = kr ⊗ vr , i.e., exactly the matrix that the UT transform of DeltaNet (Yang et al., 2024) builds from KK ⊤ , with the feature ar in place of kr as anticipated by the vectorized form (4). The dk dv -dimensional features are never formed: two C × C Gram matrices of dk - and dv -dimensional vectors and one Hadamard product suffice. Decoupled erase and write. The write gate cr enters only the right-hand side of the solve, the erase gate βr enters the system matrix and the coupling to S0 . The state-independent part u◦ = Λc and the matrix Λ diag(β) can be computed for all chunks in parallel; they are the analogues of the pseudo-values U = T V and of W = T K in DeltaNet. The only sequential quantity is the vector of scores p.
50
Kronecker Delta Rule for Long Context Linear Attention
A8.4 Chunkwise form Theorem A11 (Chunkwise KronLSTM). Let Ve := diag(u) V ∈ RC×dv be the matrix of pseudo-values, with rows ur vr⊤ , where u is given by Proposition A5 and p =
c 1 (V S0 ) ⊙ K
(row sums of a C × dk matrix).
(A157)
Then the memory at the end of the chunk and the read-outs of the chunk are SC = S0 ΓC + Ve ⊤ K̆ ∈ Rdv ×dk , b S ⊤ + Gqk Ve ∈ RC×dv . H = Q
(A158) (A159)
0
br = P (V S0 )rd K bC ΓC = S0 ΓC + b rd . For the state, SC = S Proof. Equation (A157) is pr = vr⊤ S0 k d ⊤ P ⊤ ⊤ ⊤ = k̆s , which is (A158). For the read-out, s≤C us vs k̄s ΓC by (A154), and k̄s ΓC = (γC /γs ) ⊙ ks P ⊤ br Γr qr = S br qbr = S0 qbr + br ) vs by (A154); transposing and stacking over r hr = S r q r = S s≤r us (k̄s q
gives (A159), the coefficient of us vs⊤ in row r being Gqk rs .
Indexing the chunks by [n] and writing S[n] for the memory entering chunk n, (A158) is the chunk-level recurrence ⊤ S[n+1] = S[n] Γ[n],C + Ve[n] K̆[n] , (A160) with S[0] = 0 (or a given initial memory). Everything in (A152)–(A159) except p, u and Ve is local to a chunk and is computed for all chunks at once; the dependence S[n] → p → u → S[n+1] is the only sequential part. Compared with the delta-rule family, the pseudo-value of token r is the value vr scaled by the scalar ur , and the memory couples into the chunk through the C scalars p rather than through the C vectors S0 kr ∈ Rdv : computing p needs one matrix product V S0 and a row-wise contraction over the value dimension, which is where a kernel that tiles the memory over dv must exchange partial sums.
A8.5 WY representation of the chunk transition In vectorized form, s = vec(S) with vec(vk⊤ ) = k ⊗ v and vec(SF ) = (F ⊗ Idv ) vec(S), one step of (A149) is sr = (I − βr ar a⊤ r )(Fr ⊗ Idv ) sr−1 + cr ar with ar = kr ⊗ vr : a generalized Householder transition, as in (4), preceded by a diagonal decay. Theorem A11 is the WY representation (Bischof and VanLoan, 1987) of the product of these factors. b1 ⊗ v1 , . . . , k bC ⊗ vC ] and Ă := [k̆1 ⊗ v1 , . . . , k̆C ⊗ vC ] in Rdk dv ×C . b := [k Corollary A7 (WY form). Let A Then sC = P s0 + d with P =
1 Y
b⊤ (I − βr ar a⊤ r )(Fr ⊗ Idv ) = (ΓC ⊗ Idv ) − Ă Λ diag(β) A ,
d = Ă Λ c.
(A161)
r=C
P b ⊤ , S0 ⟩F = a b⊤ Proof. By (A158), sC = (ΓC ⊗I)s0 + r ur (k̆r ⊗vr ) = (ΓC ⊗I)s0 +Ău. Since pr = ⟨vr k r r s0 , ⊤ ⊤ b b we have p = A s0 , and (A156) gives u = Λc − Λ diag(β)A s0 . P The correction to the diagonal decay has rank at most C, as for DeltaNet, where P = I − s ws ks⊤ . The difference is that the columns of ĂΛ diag(β) are linear combinations of Kronecker products k̆ s ⊗ vs and are in P general not themselves Kronecker products, so the correction is not of the delta-rule form s (S0 ws )ks⊤ , in which the memory enters through the dv -dimensional read-outs S0 ws . Instead the memory enters through the C scalars p, and each pseudo-value is vs scaled by a linear functional of S0 . Table A5 summarizes the roles of the chunk quantities in the delta-rule family and in KronLSTM.
A8.6 Variants The derivation uses only the structure “diagonal decay on the key side, rank-one write along vr kr⊤ with a coefficient affine in the scalar score”: 51
Kronecker Delta Rule for Long Context Linear Attention
Table A5: Chunkwise forms of delta-rule memories and of KronLSTM, in the orientation S ∈ Rdv ×dk of this paper. Λ is the inverse of the unit lower triangular matrix I + N built from the listed Gram; “coupling” is the term through which the incoming memory S0 enters the write of token r; stril is the strictly lower triangular part. For KDA and Gated DeltaNet-2 the decay-weighted key Gram is Gkk of (A152); for Gated DeltaNet-2, br ∈ [0, 1]dk and wr ∈ [0, 1]dv are its channel-wise erase and write gates. DeltaNet Gated DeltaNet KDA Gated DeltaNet-2 KronLSTM
Gram in the solve
right-hand side
coupling to S0
write of token r
diag(β) stril(KK ⊤ ) same, × γr /γs (scalar) diag(β) Gkk stril (γ ⊙ B ⊙ K)K̄ ⊤ diag(β) (Gkk ⊙ Gvv )
diag(β)V same diag(β)V W ⊙V c
S0 wr , W = Λ diag(β)K same, decayed c S0 wr , W = Λ diag(β)K
(ur − S0 wr ) kr⊤ same, decayed (ur − S0 wr ) k̆r⊤ (ur − S0 yr ) k̆r⊤ ur vr k̆r⊤
S0 yr , Y = Λ(γ ⊙ B ⊙ K) br Λ diag(β)p r , pr = vr⊤ S0 k
• Coupled erase and write (variant “β on both sides” of Table A3; target cr instead of c̃r = cr /βr ): replace c by β ⊙ c in (A156). Unit target (variant “non-learnable target”): c = 1, so u◦ = Λ1. • State tracking, βr ∈ (0, 2) (Section 3.4): nothing changes. I + N is unit lower triangular for every β, so the solve needs no condition on the gates or on the data. ⊤ • Scalar forget gate fr = fr 1 (as in Gated DeltaNet): γr is a scalar and Gkk rs = 1[r > s] (kr ks ) γr /γs . No c = K̄ = K. forget gate: Gkk = stril(KK ⊤ ) and K̆ = K • Values of arbitrary norm. The kernels accept unnormalized values by the substitution βr ← βr / ∥vr ∥2 (the erase step is capped so that βr ∥ar ∥2 = βr for unit-norm keys and the contraction condition of Property A6 holds independently of ∥vr ∥); the write gate is unaffected. With the ℓ2 -normalized values of Section 2.2 this is (A149).
A8.7 Algorithm, cost and implementation Algorithm (forward pass, one head). Given Q, K ∈ RL×dk , V ∈ RL×dv , β, c ∈ RL , log f ∈ RL×dk , a chunk length C and an initial memory S[0] : 1. Chunk-local, in parallel over chunks. For every chunk: ℓ ← cumsum(log f ) within the chunk, γ ← exp(ℓ), c K̄, K̆, Q b as in (A151); Gkk , Gvv , Gqk as in (A152), the entries of Gkk and Gqk via exp(ℓr − ℓs ) and K, for s ≤ r; N ← diag(β)(Gkk ⊙ Gvv ) and Λ ← (I + N )−1 by forward substitution; u◦ ← Λc and Λβ ← Λ diag(β). c 1; u ← u◦ − Λβ p; 2. Scan, sequential over chunks. S ← S[0] ; for n = 0, 1, . . . : p ← (V S) ⊙ K b ⊤ + Gqk Ve ; S ← S diag(γC ) + Ve ⊤ K̆. Ve ← diag(u)V ; H[n] ← QS 3. Return H ∈ RL×dv and the final memory S. Cost. Per chunk and head the algorithm performs the two C × C key Grams (2C 2 dk multiply–adds), the value Gram (C 2 dv ), one unit lower triangular solve applied to two right-hand sides (O(C 3 ), in practice on b ⊤ and Ve ⊤ K̆ (3Cdk dv ), 16 × 16 blocks as in the delta-rule kernels), three products with the memory, V S, QS qk 2 e and the intra-chunk product G V (C dv ). Over a sequence of length L this is O LC(dk + dv ) + Ldk dv multiply–adds and O(LC 2 ) for the solves, the same order as Gated DeltaNet and KDA; relative to KDA the additional cost is the value Gram Gvv , and the coupling p replaces the product W S0 of the delta rule at equal cost. The memory is materialized once per chunk, not per token. Implementation notes. (i) The cumulative decays are kept in log space; the Gram entries use exp(ℓr − ℓs ) for s ≤ r only, so all decay factors lie in (0, 1] and no quotient 1/γ is ever formed (the kernels use base-2 logarithms and exp2 ). (ii) The triangular solve is the precision-sensitive step and is carried out in IEEE fp32; the remaining products run on tensor cores. (iii) In the fused kernel the solve is not materialized as u◦ and Λβ but applied inside the scan as u = Λ(c − β ⊙ p). (iv) Because p contracts over the full value dimension, c once per chunk; this programs that tile the memory over dv exchange their partial row sums of (V S) ⊙ K is a synchronization, not a bandwidth cost (C floats per program against a dk × dv memory). (v) Padding a sequence to a multiple of C with zero q, k, v, β = c = 0 and log f = 0 neither writes nor decays. (vi) Queries 52
Kronecker Delta Rule for Long Context Linear Attention −1/2
are scaled by dk inside the kernel; the scale is immaterial after the RMSNorm of the block. In the supplied c b code, K, K̄, K̆, Q are k_up, k_dn, k_tail, q_up; Gkk , Gvv , Gqk are A_kk, A_vv, A_qk; Λ, u◦ , Λβ are Tinv, u_const, Tw; and p, u, Ve are p, u, uv.
A8.8 Backward pass The backward pass follows the forward decomposition chunk by chunk in reverse order. Let dH ∈ RC×dv and dSC ∈ Rdv ×dk be the upstream gradients of a chunk, the latter including the gradient dS0 returned by the following chunk. Write g := c − β ⊙ p and Y0 := V S0 ∈ RC×dk . With stril and tril the strictly lower and the lower triangular part, the vector–Jacobian products of (A158) and (A159) are b dS0 = dSC ΓC + dH ⊤ Q, dVe = K̆ dS ⊤ + Gqk⊤ dH, C
dγC = (dSC ⊙ S0 )⊤ 1, b = dH S0 , dQ
dK̆ = Ve dSC , dGqk = tril(dH Ve ⊤ ),
(A162)
those of the pseudo-values and of the solve (A156) are du = (dVe ⊙ V )1,
dV += diag(u) dVe ,
dΛ = du g ⊤ ,
dg = Λ⊤ du,
dc = dg,
dβ = −dg ⊙ p,
dp = −dg ⊙ β,
dN = − stril Λ⊤ dΛ Λ⊤ ,
(A163)
those of the scores (A157) and of the Gram matrices (A152), (A155) are c S ⊤ + (dGvv + dGvv⊤ )V , c dV += diag(dp) K dS0 += V ⊤ diag(dp) K, 0 dβ += dN ⊙ Gkk ⊙ Gvv 1, dGkk = diag(β) dN ⊙ Gvv , c = diag(dp) Y0 + dGkk K̄, c + dGqk⊤ Q, b dK dK̄ = dGkk⊤ K
dGvv = diag(β) dN ⊙ Gkk , b += dGqk K̄, dQ (A164)
and the decay-scaled copies (A151) and the cumulative sum (A150) give c ⊙ γ + dK̄/γ + dK̆ ⊙ (γC /γ), dK = dK
b ⊙ γ, dQ = dQ
⊤ c ⊙ K − dK̄ ⊙ K/γ 2 + dQ b ⊙ Q − dK̆ ⊙ K ⊙ γC /γ 2 , dγ = dK dγC += dK̆ ⊙ K/γ 1, X dℓr = dγr ⊙ γr + 1[r = C] dγC ⊙ γC , d log fi = dℓr (reverse cumulative sum). (A165) r≥i
Here γ ∈ RC×dk stacks the γr and all products with it are element-wise. Two points differ from the delta-rule backward. The values enter the system matrix N through Gvv , so dV receives a contribution through the inverse in (A163)–(A164), whereas in DeltaNet, Gated DeltaNet and KDA the values appear only in the right-hand side. And since the pseudo-values are ur vr , the gradient with respect to the write coefficients is the row-wise contraction du = (dVe ⊙ V )1 over the value dimension, mirroring the forward contraction that produces p. The gate factor diag(β) sits inside the Hadamard product and must be kept inside the accumulation of dN , as observed for the channel-wise gates of Gated DeltaNet-2 (Hatamizadeh et al., 2026).
A8.9 Verification We verified Theorem A11 and (A162)–(A165) numerically in double precision against the token-by-token recurrence (A149): outputs and final memory agree to machine precision (≤ 10−15 relative) for chunk lengths C ∈ {1, 8, 16, L}, sequence lengths that are and are not multiples of C, dk ̸= dv , nonzero initial memory, strong and weak decay, and βr ∈ (0, 1) as well as βr ∈ (0, 2); the operator identity (A161) holds against the explicitly formed product of dk dv × dk dv factors; the no-decay reduction of N to the Gram of ar = kr ⊗ vr holds; and the gradients with respect to Q, K, V , β, c, log f and S0 agree with central finite differences of the recurrence to 10−9 . The reference implementations in the supplementary material are checked against the same recurrence.
53
Related documents
- Computational assessment of long-term memory structures from SDA-M related to action sequences#657570
- Nexus: Depth-Adaptive KV-Cache Splicing and Retrieval-Decoupled Tool Routing for Agentic LLMs on Unified Memory#658973
- Nexus: Depth-Adaptive KV-Cache Splicing and Retrieval-Decoupled Tool Routing for Agentic LLMs on Unified Memory#656837
- Memory of Robinson-Trautman waves#1012188
- Higher-Order Kuramoto Oscillator Network for Dense Associative Memory#665516
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive