Manuscript Offprint
arXiv:2609.07816Kalman Delta Networks: Uncertainty-aware Associative Memory
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Linear attention is increasingly used in frontier language models for efficient long-context inference and constant-memory decoding. Its fixed-size recurrent memory, however, requires an online decision at each token: what to write and how strongly to overwrite existing associations before knowing which information future queries will require. Delta-rule models learn this strength from the current token embedding but do not track confidence in the memory estimate, preventing each write from adapting to accumulated evidence. To represent this uncertainty explicitly, we reformulate recurrent associative memory as a linear–Gaussian state-space model, for which the Kalman filter is the optimal recursive estimator, and introduce a new family of models, Kalman Delta Networks (KDNs). Within KDNs, the transition propagates both the memory state and its uncertainty, allowing the Kalman gain to weight each residual write by accumulated evidence and observation reliability. Under this formulation, Delta-style updates emerge as a special case that substitutes a token-wise isotropic surrogate for predictive covariance and omits covariance tracking. Exact tracking, however, entails a dense, state-dependent Riccati recursion that is poorly suited to GPU-parallel linear-attention scans. To address this issue, we introduce two scan-compatible KDN approximations. Diagonal KDN projects each one-step posterior onto the diagonal Gaussian family through online mean-field variational inference, whereas Isotropic KDN uses an isotropic approximation with a single uncertainty scalar per head. Their uncertainty recurrences are Möbius maps, enabling associative scans with logarithmic parallel depth and and auxiliary state per head, respectively. Across controlled pretraining at 750M and 1.3B parameters, KDN variants consistently improve perplexity and mean downstream accuracy over state-of-the-art linear-attention models.
1. Introduction
Self-attention is the central content-based retrieval mechanism of modern sequence models, allowing every query to retrieve the values associated with all preceding keys [Vaswani et al., 2017]. This flexibility comes from retaining the token history itself. Consequently, the autoregressive key-value cache grows with context length, and computing all query-key interactions remains quadratic in the sequence length. Linear attention offers a different scaling regime. It compresses the prefix into a fixed-size recurrent state that can be updated online and evaluated in parallel by a scan [Katharopoulos et al., 2020]. This efficiency turns attention into an online memory-management problem. Each token must edit a compressed summary of the past before the model knows which associations future queries will need. An update that is too timid preserves stale information; one that is too aggressive destroys useful memory.
Delta-rule mixers make these edits more selective. DeltaNet first reads what the memory predicts for the current key and writes only the residual [Schlag et al., 2021; Yang et al., 2024b], an update commonly interpreted as one online gradient step on the instantaneous squared prediction loss of a fast-weight memory. Gated DeltaNet [Yang et al., 2024a] and KDA [Kimi Team, 2025] retain this residual write while adding Mamba-style state-space transitions [Gu and Dao, 2023; Dao and Gu, 2024] that decay stored content at scalar or channel-wise rates. Their transition and write are therefore typically understood through different lenses: state-space dynamics and online optimization, respectively. More importantly, their write gain is predicted from the current token representation rather than derived from explicit confidence in the stored association. Consequently, these models have no explicit mechanism for deciding whether a large residual should revise a tentative association or be discounted because the association has been repeatedly confirmed.
In this paper, we provide a unified view of the recurrent updates in delta-rule mixers through a linear-Gaussian state-space formulation, under which uncertainty emerges as their missing state variable. Specifically, we model the recurrent memory as an estimate of a latent, non-stationary key-value map. Each token supplies a noisy observation of that map at one key, while the learned transition describes how the map persists or drifts between observations. Under linear-Gaussian assumptions, the Kalman filter [Kalman, 1960] is the optimal recursive estimator that propagates both the memory estimate and its covariance, balancing memory uncertainty against observation noise to determine the correction gain. The resulting update retains the residual delta-write form while assigning greater weight to new evidence when the memory is uncertain and protecting associations supported by repeated observations. This formulation leads to Kalman Associative Memory, which generalizes delta-rule mixers through explicit covariance tracking. DeltaNet, Gated DeltaNet, and KDA thus emerge as covariance-free approximations that retain different memory transitions while omitting this uncertainty recursion.
The exact Kalman update, however, is not a practical linear-attention layer. It carries a dense covariance per head, and its gain depends on a state-dependent Riccati recurrence that is poorly suited to efficient parallel scans. To make uncertainty-aware filtering practical, we introduce Kalman Delta Networks (KDNs), a family of scan-compatible approximations to Kalman Associative Memory. We develop two special cases. Diagonal KDN imposes diagonal structure on the transition, process noise, and predictive covariance. Because each exact update still yields a dense posterior covariance, we derive an online mean-field variational update that projects the posterior back onto the diagonal family by minimizing reverse KL. Conditional on the retained diagonal predictive prior, this projection preserves the exact one-step posterior mean. To mitigate excessive overwrite under this approximation, we introduce an information-scaling factor that calibrates the retained uncertainty. Diagonal KDN maintains one uncertainty value per key channel and requires auxiliary state per head, whereas Isotropic KDN uses an isotropic covariance approximation, tying these values to a single uncertainty scalar per head and requiring only auxiliary state.
Empirically, under parameter-matched recurrent-only pretraining on FineWeb-Edu [Penedo et al., 2024], both KDN variants achieve lower WikiText and LAMBADA perplexity and higher mean six-task zero-shot accuracy than every evaluated state-of-the-art linear-time recurrent mixer—including Mamba-3 [Lahoti et al., 2026], KDA [Kimi Team, 2025], and GDN-2 [Hatamizadeh et al., 2026]—at both 750M/50B and 1.3B/100B. Diagonal KDN also achieves the highest observed 14-cell RULER aggregate [Hsieh et al., 2024] at both scales. Our contributions are:
-
A principled state-space view of delta-based models. We cast the delta rule as an innovation update in a linear-Gaussian state-space model, connecting delta-based recurrent mixers to the Mamba lineage [Gu and Dao, 2023]. DeltaNet, Gated DeltaNet, and KDA use identity, scalar, and diagonal transitions, respectively; unlike Mamba's control-driven additive input write, they correct a predicted key-value map with a key-conditioned residual, while using a token-predicted rather than covariance-derived gain.
-
A hardware-efficient algorithm for uncertainty-aware associative memory. We derive Diagonal KDN through online variational inference and introduce Isotropic and Diagonal variants with and uncertainty state per head, respectively. Their uncertainty updates admit an associative gain scan followed by the usual affine memory scan.
-
Overwrite analysis and empirical evidence. We identify how the diagonal uncertainty approximation can underprotect stored key directions, introduce information scaling to control future overwrite, and show improvements over the evaluated state-of-the-art delta-rule models and Mamba-3 variants in both reported perplexities and mean six-task zero-shot accuracy.
Retaining the complete token history provides direct access to past content, but the autoregressive cache grows linearly with , and processing a full sequence requires quadratic query-key interactions. This scaling cost motivates replacing the growing cache with a fixed-size recurrent memory.
Linear attention. Linear attention addresses this growth by compressing the token history into a fixed-size recurrent state . In its unnormalized associative-memory form, each token writes a key-value association to the state, and each query reads from it [Katharopoulos et al., 2020],
Here and denote feature-mapped keys and queries; when required, the usual linear-attention normalizer can be tracked by a separate recurrent state. The recurrent state removes the growing cache, but its additive update can only write. Old associations cannot be explicitly removed from the fixed-size memory and may therefore interfere with new ones.
DeltaNet. DeltaNet addresses this limitation by replacing the additive update with an error-correcting delta rule [Schlag et al., 2021; Yang et al., 2024b]. It reads the value currently associated with and writes only the residual,
(canonical residual form)
(3)
For a unit-norm repeated key, this moves the stored value toward by a fraction and exactly overwrites it when . The erase is local to the current key, however: associations stored elsewhere receive no explicit decay. A stale association can therefore persist for many steps and interfere with a later write when its key is non-orthogonal to the new key.
Gated DeltaNet. Gated DeltaNet [Yang et al., 2024a] addresses this limitation by applying a data-dependent decay to the entire state before the delta update, following the state-decay mechanism of Mamba-2 [Dao and Gu, 2024]:
(canonical residual form)
(4)
The decay makes untouched associations fade geometrically, preventing stale content from persisting indefinitely. However, the single scalar applies the same retention rate to every key channel in a head. The model therefore cannot preserve long-lived information in some channels while rapidly forgetting transient information in others.
KDA. KDA addresses this limitation by replacing the scalar decay with a diagonal transition , giving each key channel its own decay rate [Kimi Team, 2025],
(canonical residual form)
(5)
A single head can thus combine short- and long-lived associations. This is the most expressive transition in the family, but the erase/write strength is still controlled by a scalar gate predicted from the current token. Because this gate does not depend on the evidence accumulated in memory, it cannot distinguish a well-supported association from an uncertain one.
Mamba state-space models. The Mamba family uses the selective linear state-space recurrence
where , , and control retention, writing, and reading. Mamba-1 makes these operations input-dependent [Gu and Dao, 2023], while Mamba-2 connects the resulting selective recurrence to structured masked attention through state-space duality [Dao and Gu, 2024]. Mamba-3 adds exponential–trapezoidal discretization, complex-valued dynamics, and SISO and MIMO variants [Lahoti et al., 2026]. Unlike the delta-rule mixers above, Mamba adds the control directly rather than applying a key-conditioned residual correction.
Notation. In the following sections, denotes the latent random memory, and denote the tracked mean and covariance; the same state convention applies columnwise to and . A hat marks a one-step predictive quantity before conditioning on the current observation, such as or . For matrices and , we write
Equivalently, . Thus denotes the key-space covariance shared across value coordinates.
3. Kalman Associative Memory
We revisit DeltaNet-style models through the lens of a linear–Gaussian state-space model, for which the optimal recursive estimator is the Kalman filter [Kalman, 1960]. Under this view, DeltaNet, Gated DeltaNet, and KDA emerge as fixed-gain special cases: they retain the Kalman residual correction but omit covariance tracking and predict the write strength directly from the current input. Forgetting is interpreted as the transition model's prediction of how the latent memory state persists or changes between observations. Tracking the covariance then quantifies confidence in the predicted memory and yields a principled gain for incorporating new evidence.

Figure 1: One step of Kalman Associative Memory update and the mean-field variational approximation of Diagonal KDN. Prediction preserves diagonality; the exact update yields a dense posterior; reverse-KL projection restores diagonality without changing its mean. The starred pair is the optimal posterior of Proposition 3.1, while is the variational approximation given in Proposition 4.1.
3.1. Associative Memory as a Linear-Gaussian State-Space Model
To make this filtering view precise, let the memory at time be a matrix defining the associative map
The query read is . The streaming token provides one supervised measurement of this map: under key , the memory should return value , i.e. . This is the shape of a state-space model [Gu and Dao, 2023], in which an unobserved state evolves over time, and each token reveals a noisy linear projection of it.
Latent state. Let be the latent associative map the recurrent state is trying to track. The transition describes how stored associations persist, decay, or drift before the next measurement arrives:
The operator is the process model: it is the formal object corresponding to forgetting under information drift, topic drift, and other non-stationarity in the stream. For DeltaNet ; for Gated DeltaNet ; for KDA . The process noise represents memory drift not captured by deterministic decay, while quantifies uncertainty about that drift. In a language model, this accounts for changes in the latent discourse state that cannot be inferred from retention alone. If an incoming sentence reveals that an entity has moved from Paris to Rome, can attenuate the stale Paris binding, but only the observation can establish the new Rome binding. In the main development, denotes the centered unpredictable component of this drift.
Observation. The current key reads one direction of the latent map. The observed value is
Thus is the observation map and is the measurement. The noise term captures the part of the token value that should not be treated as a clean memory target. In language modeling, is a contextual feature produced from a noisy token embedding, local syntax, position, layer mixing, and finite model capacity; not all of it is a stable fact that can be stored under key . The covariance sets how reliable this value observation is: small means trust the token and write strongly, while large means treat much of as context-specific noise.
We assume . Conditioned on the input-dependent quantities , the noise pairs are independent across time, and are independent at each step, and all noises are independent of .
Online filtering problem. Let denote the observation history through step . At each step, we seek a point estimate of the current latent memory , rather than its full trajectory. Under squared-error loss, the optimal estimate is the posterior mean:
In this formulation, forgetting belongs to the prediction model for a non-stationary memory, rather than acting as an auxiliary gate appended to attention.
3.2. Kalman Filtering
Equation (11) defines the target posterior mean of the current memory. Under the linear–Gaussian assumptions in (9) and (10), the Kalman filter computes this expectation exactly by first predicting the latent memory and then conditioning that prediction on the current token. It carries the filtering law , where and is the common key-space covariance.
Tracking is necessary because each token observes the associative map only at one key direction , and the value is noisy. After many tokens, some key directions are well supported by past measurements, while others remain uncertain or have become stale because of drift. High uncertainty means the current token should be allowed to edit the memory strongly; low uncertainty means the prior memory should resist a noisy measurement.
Predict. At step , the filter has posterior mean and covariance . Applying the state dynamics gives the predictive mean and covariance at step ,
These quantities summarize the predictive distribution of before the current token mapping is observed. This is the formal role of forgetting: moves the associative memory forward in time, while increases uncertainty for drift that the transition cannot capture.
The current token observes the predicted memory along . Its predicted value and innovation are
The vector is the innovation: the part of the observed value not explained by the predicted memory.
Update. For each value coordinate , the predicted memory column and scalar observation are jointly Gaussian. Conditioned on ,
Applying the Gaussian conditioning formula to each pair and stacking the columnwise posteriors gives
Thus the posterior mean is a residual write: the filter adds only the part of the observed value that the predicted memory failed to explain. The corresponding covariance update records the remaining uncertainty after this observation. Finally, the layer reads from the filtered memory,
The predict–update recursion therefore computes the conditional expectation in (11) at every step. The following proposition summarizes this optimal recursion.
Proposition 3.1: Kalman Associative Memory
Under the linear–Gaussian state-space model in (9)–(10), the solution to the online MMSE filtering problem in (11) is the Kalman update below. Given the memory estimate and uncertainty before token , the filter first predicts how the memory drifts under the process model and process noise . After observing the key–value pair , it writes only the value residual along the uncertainty-weighted direction .
Proof. See Appendix A.1.
3.3. Delta-rule models as fixed-gain Kalman filters
The update above separates two modeling choices: the transition , which predicts how the memory changes before the token is written, and the gain , which decides the key-space direction and strength of the residual write. Delta-rule linear attention is the fixed-gain special case of this filter. If we discard the covariance recursion and use an isotropic surrogate for the predicted uncertainty, then
For normalized keys, the exact Kalman gain therefore collapses to the scalar write strength used by the delta-rule family. Substituting into the Kalman update gives the shared fixed-gain residual form
DeltaNet, Gated DeltaNet, and KDA are obtained by choosing different process models:
Thus the three models share the same measurement model and residual write; they differ only in how the memory is predicted before the write. Relative to the Kalman optimal update, they freeze the uncertainty dynamics and replace the adaptive gain with the fixed first-order direction .
4. Kalman Delta Networks
The Kalman optimal update in (17) is the target, but the exact recursion is not directly compatible with fully parallel linear attention. Parallel training relies on a scan form
where the per-token coefficients and are input-only, or are computable from associative prefix statistics. Exact Kalman filtering breaks this structure because follows a Riccati recursion and the gain depends on the accumulated posterior uncertainty. Tracking also requires a dense state per head, in addition to the associative memory itself. We therefore ask which parts of the optimal update can be relaxed while preserving both its uncertainty-aware residual write and an associative scan.
4.1. Diagonal Kalman Delta Network
We first restrict what the filter tracks. Let and require
Write . The covariance prediction then stays in the diagonal family:
Conditioned on this diagonal predictive covariance, the Kalman gain is still exact:
Thus the process model and process noise that predict the memory also determine how strongly each key channel is written. Although is diagonal, the exact posterior is
This rank-one correction is generally dense, thus immediately taking the exact posterior outside .
Online variational inference. Under the diagonal predictive state, the one-step model remains columnwise Gaussian:
The exact one-step posterior is . Here and are the exact Bayes-optimal one-step posterior mean and covariance given by Proposition 3.1. Its columns remain conditionally independent, but their shared key-space covariance is generally dense by (25). We instead project this posterior after each token onto the diagonal mean-field family
The following proposition gives the variational state retained by the filter.
Proposition 4.1 (Online diagonal variational update). Under (26), treating and as known at step , the variational approximation
has the unique solution
where
Thus the projection preserves the exact one-step Kalman posterior mean conditional on the diagonal predictive prior and replaces its shared dense key-space covariance with a diagonal state.
Proof. See Appendix A.2.
Using this variational solution as the next token's prior gives an online mean-field filter. Crucially, the posterior covariance remains in the diagonal family after every token: . Defining the token's diagonal precision increment , the covariance update is
where products, ratios, and inverses are coordinatewise. Figure 1 summarizes this online predict-update-project cycle.
Associative covariance scan. Because the retained covariance is diagonal, each channel evolves independently. Substituting (31) yields the Möbius recurrence
Representing each Möbius update by a matrix turns composition into matrix multiplication and yields the associative scan
Thus the approximation reduces the uncertainty state from a dense matrix to scalars and replaces the sequential Riccati recursion with an associative scan of logarithmic parallel depth.
Information scaling. Projecting each dense posterior to a product Gaussian discards cross-channel correlations and inherits the coordinatewise overconfidence of reverse-KL mean field [Blei et al., 2017]. These correlations encode observed joint key directions; without them, the approximation can be overconfident in individual channels yet too uncertain along those directions. Consequently, a repeated key or a later key with energy on the same coordinates can trigger an excessively strong residual write (see Figure 2, second column; ). To mitigate this overwrite, we apply an information scale only to the post-write precision increment:

Effective write
Figure 2: Effective-write distributions at initialization (top) and after 50B training tokens (bottom) for parameter-matched 750M KDA and Diagonal KDN models with . For normalized KDA keys, ; for Diagonal KDN, . Dashed lines mark pooled means.
Because the gain is computed before the post-write update, increasing leaves the current write unchanged while reducing later effective writes . Setting recovers the variational update; for a normalized dense key, compensates the dilution of each channel's information increment. Refer to Appendix B for detailed discussion and empirical analyses.
Combining this calibrated covariance scan with the Kalman residual write yields the Diagonal Kalman Delta Network, summarized in Proposition 4.2.
Proposition 4.2: Diagonal Kalman Delta Network
Let the predictive covariance be restricted to and let , and be parameterized by
Here is the token hidden state, and all weights and , together with their biases, are learnable parameters. For an information scale , define
The covariance states are computed by the per-channel Möbius scan
The adaptive gain at token uses the pre-write predictive covariance :
With available before the memory scan, the memory update is an affine scan:
Thus the diagonal approximation preserves the two ingredients missing from fixed-gain delta-rule models while keeping the training primitive unchanged: the memory is predicted through , and the residual write is weighted by a transition-aware uncertainty estimate.
Hardware-efficient chunkwise implementation. The diagonal approximation directly yields a two-stage parallel implementation. Its per-channel covariance recurrence is a Möbius map, enabling an associative chunkwise kernel that computes all Kalman gains; once those gains are available, the memory update becomes an input-only asymmetric delta rule handled by a compact-WY kernel. Appendix D provides the derivation and implementation details.
4.2. Isotropic Kalman Delta Network
Instead of tracking a separate uncertainty for every key channel, we can further restrict the covariance to the isotropic family . Unlike the diagonal family, the isotropic family is not closed under a channel-wise transition, so Isotropic KDN projects both the predicted covariance and the measurement posterior back to this family. For and , the trace-projected prediction, uncertainty-derived gain, and memory update are
This retains the scalar-gated form used by DeltaNet, Gated DeltaNet, and KDA, but now depends on the transition, process uncertainty, and evidence accumulated from previous tokens through . It therefore replaces the independent token gate with an uncertainty-derived write strength. Appendix C derives the two isotropic projections and the posterior update.
5. Experiments
To evaluate the effectiveness of our proposed KDN mixers, we use the 1.3B/100B training setup of GDN-2 [Hatamizadeh et al., 2026] and extend the same controlled protocol to 750M. Within each comparison, we hold the data, surrounding backbone, optimization recipe, and evaluation protocol fixed while matching model capacity.
5.1. Experimental Setup
Pretraining and evaluation datasets. We pretrain all models from scratch on FineWeb-Edu [Penedo et al., 2024] at two scales: 750M parameters on 50B tokens and 1.3B parameters on 100B tokens. We evaluate language modeling with perplexity on WikiText [Merity et al., 2017] and LAMBADA [Paperno et al., 2016], and zero-shot reasoning with LAMBADA [Paperno et al., 2016], PIQA [Bisk et al., 2020], HellaSwag [Zellers et al., 2019], WinoGrande [Sakaguchi et al., 2020], and ARC-Easy and ARC-Challenge [Clark et al., 2018]. We evaluate in-context retrieval on the single- and multi-key needle-in-a-haystack tasks from RULER [Hsieh et al., 2024]. Following Just Read Twice (JRT) [Arora et al., 2024], we additionally evaluate real-world retrieval on six cloze-formatted tasks: SWDE [Lockard
| Model | Perplexity ↓ | Zero-shot accuracy (%) ↑ | Avg. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Wiki. | LMB. | LMB. | PIQA | Hella. | Wino. | ARC-e | ARC-c | ||
| Recurrent-only, 750M parameters, 50B tokens | |||||||||
| DeltaNet [2024b] | 19.78 | 20.17 | 38.77 | 69.10 | 48.04 | 51.93 | 65.49 | 33.28 | 51.10 |
| Gated DeltaNet [2024a] | 19.50 | 18.08 | 40.23 | 69.91 | 50.22 | 55.64 | 68.10 | 32.17 | 52.71 |
| KDA [2025] | 18.85 | 15.06 | 44.34 | 70.95 | 51.23 | 54.93 | 67.72 | 34.04 | 53.87 |
| Mamba-3 (SISO) [2026] | 19.68 | 17.61 | 40.33 | 70.57 | 50.87 | 53.83 | 67.51 | 34.47 | 52.93 |
| Mamba-3 (MIMO) [2026] | 18.99 | 15.67 | 43.24 | 69.86 | 52.24 | 56.75 | 67.72 | 36.52 | 54.39 |
| GDN-2 [2026] | 21.20 | 17.88 | 41.18 | 70.08 | 46.90 | 54.54 | 64.27 | 31.74 | 51.45 |
| Isotropic KDN | 18.42 | 14.68 | 44.05 | 70.95 | 52.12 | 56.12 | 68.01 | 35.24 | 54.41 |
| Diagonal KDN | 18.64 | 14.15 | 45.66 | 70.95 | 51.91 | 57.70 | 68.10 | 35.49 | 54.97 |
| Recurrent-only, 1.3B parameters, 100B tokens | |||||||||
| KDA [2025] | 15.40 | 10.09 | 51.15 | 74.16 | 60.61 | 60.54 | 73.48 | 41.72 | 60.28 |
| Mamba-3 (SISO) [2026] | 15.94 | 11.98 | 47.45 | 73.61 | 59.39 | 57.77 | 72.64 | 38.31 | 58.20 |
| Mamba-3 (MIMO) [2026] | 15.63 | 10.49 | 50.20 | 73.94 | 60.79 | 59.19 | 73.91 | 41.04 | 59.85 |
| GDN-2 [2026] | 16.15 | 11.29 | 49.45 | 72.63 | 57.80 | 59.19 | 72.73 | 39.25 | 58.51 |
| Isotropic KDN | 15.30 | 9.98 | 50.96 | 73.23 | 60.23 | 61.33 | 74.71 | 41.64 | 60.35 |
| Diagonal KDN | 15.04 | 9.75 | 51.87 | 74.21 | 60.68 | 60.62 | 73.70 | 41.64 | 60.45 |
| Hybrid and attention-only, 1.3B parameters, 100B tokens | |||||||||
| Transformer [2017] (2K SWA) | 16.67 | 13.10 | 48.38 | 71.22 | 56.62 | 56.75 | 68.56 | 35.84 | 56.23 |
| KDA [2025] + SWA | 15.08 | 10.81 | 51.23 | 72.14 | 60.33 | 61.64 | 72.77 | 41.55 | 59.94 |
| Mamba-3 (SISO) [2026] + SWA | 15.87 | 11.38 | 50.46 | 72.80 | 59.59 | 59.27 | 72.73 | 40.10 | 59.16 |
| Mamba-3 (MIMO) [2026] + SWA | 15.33 | 10.96 | 50.44 | 72.69 | 60.00 | 58.56 | 72.81 | 41.21 | 59.28 |
| GDN-2 [2026] + SWA | 16.06 | 11.12 | 49.54 | 71.82 | 58.44 | 57.77 | 71.42 | 37.63 | 57.77 |
| Isotropic KDN + SWA | 14.98 | 10.90 | 50.49 | 72.85 | 60.31 | 59.12 | 72.64 | 40.87 | 59.38 |
| Diagonal KDN + SWA | 15.10 | 10.41 | 51.99 | 72.96 | 60.57 | 60.38 | 72.98 | 41.81 | 60.11 |
Table 1: Language modeling and zero-shot commonsense reasoning. Best per column within each block in bold, second best underlined; light-blue rows denote our KDN variants.
et al., 2019], SQuAD [Rajpurkar et al., 2018], FDA [Arora et al., 2023], TriviaQA [Joshi et al., 2017], Natural Questions [Kwiatkowski et al., 2019], and DROP [Dua et al., 2019].
Model architectures. The KDN mixer builds on KDA [Kimi Team, 2025], replacing its gate with process noise and observation noise . To isolate the mixer, we adopt the recurrent-only and hybrid layer and model architectures of GDN-2 [Hatamizadeh et al., 2026]. This controlled choice might not be optimal; determining the best recurrent-to-attention layer ratio requires a dedicated ablation, as performed for KDA in Kimi Linear [Kimi Team, 2025]. Figure 3 summarizes the recurrent-only and hybrid designs. All

Figure 3: Kalman Delta Network architectures.
recurrent-only models use the same backbone, with feed-forward widths adjusted to match non-embedding parameter counts within 0.03%. The 750M and 1.3B backbones use 16 and 18 layers with and 2304, respectively, corresponding to KDN mixers with 16 and 18 recurrent heads of dimension 128. The Mamba-3 baselines are also configured to match the KDNs' total recurrent-state
| Model | S-NIAH-1 | S-NIAH-2 | S-NIAH-3 | MK-NIAH-1 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1K | 2K | 4K | 8K | 1K | 2K | 4K | 8K | 1K | 2K | 4K | 1K | 2K | 4K | |
| Recurrent-only, 750M parameters, 50B tokens | ||||||||||||||
| DeltaNet [2024b] | 100.0 | 100.0 | 99.6 | 99.6 | 97.0 | 87.0 | 45.4 | 15.4 | 72.0 | 49.2 | 17.6 | 27.2 | 27.4 | 22.6 |
| Gated DeltaNet [2024a] | 100.0 | 99.8 | 99.2 | 87.8 | 93.2 | 56.2 | 27.2 | 13.8 | 71.8 | 23.8 | 6.6 | 29.8 | 25.4 | 20.2 |
| KDA [2025] | 100.0 | 99.8 | 99.2 | 82.6 | 96.4 | 89.8 | 63.2 | 26.0 | 68.8 | 43.6 | 13.6 | 32.6 | 29.8 | 24.2 |
| Mamba-3 (SISO) [2026] | 100.0 | 98.8 | 73.8 | 33.2 | 95.4 | 82.2 | 43.0 | 17.6 | 65.6 | 26.4 | 9.0 | 42.4 | 27.6 | 19.6 |
| Mamba-3 (MIMO) [2026] | 100.0 | 99.0 | 79.2 | 39.6 | 98.4 | 92.6 | 57.6 | 21.6 | 77.4 | 49.0 | 14.2 | 50.2 | 36.0 | 25.0 |
| GDN-2 [2026] | 100.0 | 99.8 | 90.2 | 47.2 | 95.0 | 74.6 | 36.0 | 12.6 | 64.6 | 31.0 | 9.2 | 27.8 | 25.6 | 22.0 |
| Isotropic KDN | 100.0 | 100.0 | 98.2 | 89.4 | 96.0 | 86.0 | 47.8 | 16.2 | 80.4 | 58.4 | 22.6 | 30.4 | 25.4 | 22.2 |
| Diagonal KDN | 100.0 | 100.0 | 100.0 | 100.0 | 98.6 | 91.4 | 71.2 | 29.0 | 84.2 | 71.0 | 32.2 | 41.0 | 36.4 | 29.6 |
| Recurrent-only, 1.3B parameters, 100B tokens | ||||||||||||||
| KDA [2025] | 99.8 | 99.2 | 66.6 | 30.2 | 98.0 | 95.0 | 62.2 | 23.6 | 92.6 | 77.2 | 43.2 | 47.4 | 38.8 | 26.6 |
| Mamba-3 (SISO) [2026] | 100.0 | 99.8 | 98.2 | 62.6 | 98.6 | 93.6 | 62.6 | 20.6 | 69.0 | 50.2 | 16.6 | 46.6 | 38.4 | 27.2 |
| Mamba-3 (MIMO) [2026] | 99.8 | 99.4 | 75.2 | 15.4 | 99.6 | 96.0 | 64.8 | 15.4 | 85.8 | 63.6 | 29.8 | 51.6 | 42.4 | 30.4 |
| GDN-2 [2026] | 100.0 | 100.0 | 100.0 | 99.8 | 98.6 | 92.4 | 67.4 | 28.0 | 88.0 | 64.4 | 29.4 | 50.6 | 44.0 | 31.4 |
| Isotropic KDN | 100.0 | 100.0 | 100.0 | 94.6 | 98.4 | 91.8 | 68.4 | 24.2 | 86.8 | 67.6 | 34.6 | 41.6 | 29.8 | 23.4 |
| Diagonal KDN | 100.0 | 100.0 | 99.8 | 99.8 | 98.6 | 95.6 | 74.6 | 25.8 | 96.4 | 88.6 | 48.6 | 62.2 | 47.4 | 33.8 |
| Hybrid and attention-only, 1.3B parameters, 100B tokens | ||||||||||||||
| Transformer [2017] (2K SWA) | 100.0 | 100.0 | 52.4 | 22.6 | 100.0 | 100.0 | 53.4 | 19.8 | 99.2 | 94.6 | 35.4 | 76.6 | 79.4 | 45.4 |
| KDA [2025] + SWA | 100.0 | 87.8 | 47.4 | 21.2 | 99.8 | 100.0 | 53.4 | 25.4 | 99.2 | 97.0 | 48.6 | 86.0 | 83.0 | 44.2 |
| Mamba-3 (SISO) [2026] + SWA | 99.4 | 73.8 | 29.4 | 15.0 | 99.6 | 99.2 | 52.2 | 21.8 | 96.4 | 86.2 | 43.4 | 74.8 | 76.0 | 39.0 |
| Mamba-3 (MIMO) [2026] + SWA | 100.0 | 99.8 | 52.0 | 27.2 | 99.8 | 99.8 | 53.2 | 25.6 | 97.8 | 95.8 | 50.8 | 92.8 | 89.6 | 45.8 |
| GDN-2 [2026] + SWA | 100.0 | 100.0 | 52.4 | 28.4 | 100.0 | 99.8 | 53.4 | 27.6 | 83.0 | 67.8 | 25.2 | 84.0 | 76.8 | 45.6 |
| Isotropic KDN + SWA | 100.0 | 100.0 | 52.4 | 28.4 | 100.0 | 100.0 | 53.4 | 27.6 | 99.8 | 98.4 | 44.6 | 85.4 | 89.0 | 49.8 |
| Diagonal KDN + SWA | 100.0 | 98.6 | 51.6 | 28.0 | 100.0 | 98.4 | 53.4 | 26.0 | 99.8 | 99.2 | 53.0 | 95.6 | 90.0 | 47.8 |
Table 2: In-context retrieval accuracy (%) on RULER single- and multi-key needle-in-a-haystack tasks [Hsieh et al., 2024]. We use 25-word context increments and deterministic random essay windows rather than 500-word increments and fixed prefixes; every model receives the same 500 samples per cell, with matched keys, values, and needle depths. Best per column within each block in bold, second best underlined.
size at both scales. At 1.3B/100B, the hybrid architecture alternates nine recurrent mixer layers with nine sliding-window-attention (SWA) layers using a 2K window.
Baselines. We compare with DeltaNet [Yang et al., 2024b], Gated DeltaNet [Yang et al., 2024a], KDA [Kimi Team, 2025], the SISO and MIMO variants of Mamba-3 [Lahoti et al., 2026], and GDN-2 [Hatamizadeh et al., 2026]. Our models are the Isotropic and Diagonal KDN variants developed above. The hybrid block also includes an attention-only Transformer with a 2K sliding window.
Implementation details. We use the same training recipe as GDN-2 [Hatamizadeh et al., 2026] for all models: AdamW with a peak learning rate of , , weight decay 0.1, gradient clipping at 1.0, and a cosine schedule with a 1% token-budget warm-up (0.5B/1B tokens at the two scales). All runs use a global batch of 0.5M tokens, a sequence length of 4K, and the same data seed within each comparison. We set and initialize the process noise isotropically by setting when training Diagonal KDN. We also learn a scalar initial covariance for each head , so that . Throughout the main experiments, both Isotropic and Diagonal KDN use the fixed information scale .
| Model | SWDE | SQuAD | FDA | TriviaQA | NQ | DROP | Avg. |
|---|---|---|---|---|---|---|---|
| Recurrent 1.3B / 100B | |||||||
| KDA [2025] | 28.77 | 38.70 | 27.97 | 61.97 | 24.11 | 21.03 | 33.76 |
| Mamba-3 (SISO) [2026] | 26.34 | 36.35 | 22.52 | 60.90 | 21.98 | 20.89 | 31.50 |
| Mamba-3 (MIMO) [2026] | 24.93 | 36.71 | 25.25 | 61.02 | 23.50 | 21.99 | 32.23 |
| GDN-2 [2026] | 29.90 | 35.64 | 21.16 | 61.49 | 23.34 | 20.99 | 32.09 |
| Isotropic KDN | 33.08 | 36.71 | 22.98 | 62.09 | 22.14 | 23.38 | 33.40 |
| Diagonal KDN | 30.18 | 38.09 | 30.61 | 62.56 | 23.63 | 24.10 | 34.86 |
| Hybrid 1.3B / 100B | |||||||
| Transformer [2017] (2K SWA) | 36.08 | 42.43 | 52.68 | 62.09 | 25.40 | 21.47 | 40.02 |
| KDA [2025] + SWA | 51.08 | 43.10 | 57.86 | 65.17 | 28.22 | 25.11 | 45.09 |
| Mamba-3 (SISO) [2026] + SWA | 36.27 | 43.37 | 58.95 | 64.57 | 26.70 | 22.47 | 42.06 |
| Mamba-3 (MIMO) [2026] + SWA | 42.55 | 43.33 | 64.85 | 65.88 | 28.44 | 23.53 | 44.76 |
| GDN-2 [2026] + SWA | 47.80 | 42.73 | 63.22 | 62.38 | 26.10 | 23.19 | 44.24 |
| Isotropic KDN + SWA | 53.98 | 43.60 | 63.12 | 65.52 | 26.89 | 22.52 | 45.94 |
| Diagonal KDN + SWA | 48.08 | 43.50 | 66.58 | 64.93 | 27.72 | 22.52 | 45.55 |
Table 3: Zero-shot accuracy (%) on real-world retrieval tasks with inputs limited to 2K tokens. Avg. is the unweighted six-task mean. Best per column within each block in bold, second best underlined.
5.2. Experimental Results
Language modeling and commonsense reasoning. Table 1 shows consistent gains from KDN across both parameter scales. Among recurrent-only models, both Diagonal and Isotropic KDN outperform KDA and Mamba-3 on the two perplexity benchmarks and in average accuracy at both scales, with Diagonal KDN leading in average accuracy. In the hybrid setting, Diagonal KDN + SWA achieves the highest average accuracy, followed by KDA + SWA, while every recurrent-attention hybrid outperforms the attention-only Transformer.
In-context retrieval. Tables 2 and 3 evaluate synthetic needle-in-a-haystack and real-world retrieval, respectively. On the synthetic tasks, Diagonal KDN achieves the highest aggregate among recurrent-only models at both scales, with particularly strong S-NIAH-3 and multi-key retrieval. This is consistent with channel-wise uncertainty protecting stored associations under interference. On the six real-world tasks at 1.3B parameters, Diagonal KDN also achieves the best recurrent-only average and leads FDA, TriviaQA, and DROP. In the hybrid block, Isotropic KDN + SWA has the best average, while Diagonal KDN + SWA ranks second and leads FDA. Additionally, every hybrid model substantially outperforms its recurrent-only counterpart on these tasks.
5.3. Ablation and Runtime
Information scale. Table 4 ablates the information scale using fixed values and a learned scale initialized at . Increasing the fixed scale steadily improves LAMBADA perplexity, with performing best, whereas WikiText perplexity and average accuracy peak at . The learned scale performs best on WikiText but trails the fixed setting on LAMBADA and average accuracy, indicating that the overall effect is small and metric-dependent.
| Wiki. PPL | LMB. PPL | Avg. | |
|---|---|---|---|
| 1 | 18.69 | 15.51 | 54.12 |
| 18.93 | 15.10 | 54.20 | |
| 18.64 | 14.15 | 54.97 | |
| 18.97 | 13.91 | 54.92 | |
| Learned | 18.51 | 14.68 | 54.62 |
Table 4: Information-scale ablation.
Observation and process noise. Table 5 ablates the observation and process noise at by comparing learned and with variants that first fix and then fix both terms to one. Fixing improves WikiText perplexity but slightly degrades LAMBADA perplexity and average accuracy; fixing both terms yields similarly mixed results. Overall, neither constraint consistently improves short-context quality.
| Setting () | Wiki. PPL | LMB. PPL | Avg. |
|---|---|---|---|
| Learnable | 18.69 | 15.51 | 54.12 |
| Fix | 18.46 | 15.72 | 53.77 |
| Fix both at 1 | 18.64 | 15.84 | 53.87 |
Table 5: Observation- and process-noise ablation.
Throughput. Figure 4 benchmarks the mixer layers rather than end-to-end models, using the state-matched 750M configuration on one H200 (, , BF16; median over 30 runs). Diagonal KDN uses FP32/TF32x3, the Transformer uses full causal attention, and lengths beyond the 4K training context are scaling probes. Isotropic KDN closely tracks KDA across sequence lengths. Diagonal KDN incurs additional cost from the channel-wise uncertainty scan but remains close to GDN-2 and retains linear scaling. Mamba-3 SISO leads at long contexts, whereas full attention degrades sharply as sequence length grows.

Figure 4: Mixer-layer throughput scaling.
6. Related Work
Fixed-memory attention. Standard self-attention [Vaswani et al., 2017], including its RoPE-based variants [Su et al., 2024], retains token-level history and computes quadratic pairwise interactions. Practical systems reduce these costs through sparse attention [Liu et al., 2025] or bounded KV-cache retention at inference time [Xiao et al., 2024; Bui et al., 2026b,a]. Efficient native alternatives include low-rank projection in Linformer [Wang et al., 2020] and recurrent linear attention, which compresses history into a fixed-size fast-weight state for constant-memory decoding and scan-parallel training [Katharopoulos et al., 2020]. Gated and corrective recurrent designs include GLA, DeltaNet, Gated DeltaNet, Comba, RWKV-7, and KDA [Yang et al., 2023; Schlag et al., 2021; Yang et al., 2024a; Hu et al., 2025; Peng et al., 2025; Kimi Team, 2025]; FoX, DeltaFormer, and PaTH-FoX carry related forgetting, associative correction, and multiplicative positional encoding to exponential-kernel attention [Lin et al., 2025; Zhong et al., 2025; Yang et al., 2025]. GDN-2 further decouples erase and write [Hatamizadeh et al., 2026]. Preconditioned DeltaNet shows that inverse-Gram preconditioning turns DeltaNet into an exact online least-squares solver and develops scan-compatible diagonal variants for DeltaNet, GDN, and KDA [Tumma et al., 2026]. This exact update is the static, fixed-noise limit of Kalman Associative Memory. Its practical model uses bounded diagonal curvature with a separate token-predicted gain, whereas KDN propagates predictive covariance through learned stochastic dynamics and derives the innovation gain jointly from uncertainty and observation noise.
State-space sequence mixers and Bayesian memory. Structured SSMs provide a complementary approach to fixed-memory sequence mixing: S4 makes long-range continuous-time dynamics tractable via structured convolutions, while S5 recasts them as a scan-parallel MIMO recurrence [Gu et al.,
2022; Smith et al., 2023], Mamba adds input selectivity [Gu and Dao, 2023], Mamba-2 derives attention–SSM duality and SSD [Dao and Gu, 2024], and Mamba-3 introduces exponential–trapezoidal discretization, complex dynamics, and SISO/MIMO variants [Lahoti et al., 2026]. Unlike Mamba's deterministic, control-driven additive updates, KDN treats token values as noisy observations of a stochastic key–value map and weights each innovation by propagated covariance. Kalman Linear Attention also tracks uncertainty with a scan-parallel information-form filter, but factorizes its belief over feature/state-expansion coordinates under time-invariant OU dynamics [Shaj et al., 2026]. KDN instead observes an associative matrix through vector-valued, key-conditioned measurements; its exact posterior covariance is dense in key space and shared across value channels, with isotropic and diagonal KDNs as scan-compatible approximations.
7. Conclusion and Future Work
In this work, we bridge delta-rule recurrent mixers and state-space models by reformulating recurrent key–value memory as a linear–Gaussian dynamical system over a latent, non-stationary key–value map. This view gives the delta-rule residual write a principled interpretation as the Kalman innovation: the part of the observed value not explained by the predicted memory. Unlike the Mamba lineage [Gu and Dao, 2023], whose state update uses a control-driven additive input, these models correct a predicted key–value map with a key-conditioned residual but use a token-predicted rather than covariance-derived gain. Building on this view, KDN derives the gain from propagated uncertainty and observation noise.
To make uncertainty-aware filtering practical, we derive scan-compatible Isotropic and Diagonal KDNs and introduce information scaling to limit future overwrite of stored associations. In parameter-matched recurrent-only pretraining at 750M and 1.3B parameters, both variants achieve lower WikiText and LAMBADA perplexity and higher mean six-task zero-shot accuracy than every evaluated recurrent baseline. Diagonal KDN also attains the highest aggregate RULER score at both scales.
These models are steps toward, rather than full realizations of, Kalman Associative Memory. Exact filtering maintains a dense key-space covariance and a state-dependent Riccati update, whereas the isotropic and diagonal approximations compress this covariance to preserve parallel training. A future direction is to extend diagonal decay with the damped rotations used by Mamba-3 [Lahoti et al., 2026], allowing stored associations to rotate as well as decay. Making this richer transition and covariance update scan-efficient remains open.
References
Simran Arora, Brandon Yang, Sabri Eyuboglu, Avanika Narayan, Andrew Hojel, Immanuel Trummer, and Christopher Ré. Language models enable simple systems for generating structured views of heterogeneous data lakes. Proceedings of the VLDB Endowment, 2023.
Simran Arora, Aman Timalsina, Aaryan Singhal, Benjamin Spector, Sabri Eyuboglu, Xinyi Zhao, Ashish Rao, Atri Rudra, and Christopher Ré. Just read twice: Closing the recall gap for recurrent language models, 2024. URL https://arxiv.org/abs/2407.05483.
Yonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao, and Yejin Choi. PIQA: Reasoning about physical commonsense in natural language. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 7432–7439, 2020.
David M. Blei, Alp Kucukelbir, and Jon D. McAuliffe. Variational inference: A review for statisticians. Journal of the American Statistical Association, 112(518):859–877, 2017.
Ngoc Bui, Hieu Trung Nguyen, Arman Cohan, and Rex Ying. Make each token count: Towards improving long-context performance with kv cache eviction. arXiv preprint arXiv:2605.09649, 2026a.
Ngoc Bui, Shubham Sharma, Simran Lamba, Saumitra Mishra, and Rex Ying. Cache what lasts: Token retention for memory-bounded kv cache in llms. In International Conference on Learning Representations, volume 2026, pages 120316–120342, 2026b.
Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have solved question answering? try ARC, the AI2 reasoning challenge. arXiv preprint arXiv:1803.05457, 2018.
Tri Dao and Albert Gu. Transformers are ssms: Generalized models and efficient algorithms through structured state space duality. arXiv preprint arXiv:2405.21060, 2024.
Dheeru Dua, Yizhong Wang, Pradeep Dasigi, Gabriel Stanovsky, Sameer Singh, and Matt Gardner. DROP: A reading comprehension benchmark requiring discrete reasoning over paragraphs. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics, pages 2368–2378, 2019.
Albert Gu and Tri Dao. Mamba: Linear-time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752, 2023.
Albert Gu, Karan Goel, and Christopher Ré. Efficiently modeling long sequences with structured state spaces. In International Conference on Learning Representations, 2022.
Ali Hatamizadeh, Yejin Choi, and Jan Kautz. Gated deltanet-2: Decoupling erase and write in linear attention. arXiv preprint arXiv:2605.22791, 2026.
Cheng-Ping Hsieh, Simeng Sun, Samuel Kriman, Shantanu Acharya, Dima Rekesh, Fei Jia, and Boris Ginsburg. RULER: What's the real context size of your long-context language models? In First Conference on Language Modeling, 2024.
Jiaxi Hu et al. Comba: Improving bilinear RNNs with closed-loop control. arXiv preprint arXiv:2506.02475, 2025.
Mandar Joshi, Eunsol Choi, Daniel Weld, and Luke Zettlemoyer. TriviaQA: A large scale distantly supervised challenge dataset for reading comprehension. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, pages 1601–1611, 2017.
Rudolf E. Kalman. A new approach to linear filtering and prediction problems. Journal of Basic Engineering, 82(1):35–45, 1960. doi: 10.1115/1.3662552.
Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. Transformers are rnns: Fast autoregressive transformers with linear attention. In International conference on machine learning, pages 5156–5165. PMLR, 2020.
Kimi Team. Kimi linear: An expressive, efficient attention architecture. arXiv preprint arXiv:2510.26692, 2025.
Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, Kristina Toutanova, Llion Jones, Matthew Kelcey, Ming-Wei Chang, Andrew M. Dai, Jakob Uszkoreit, Quoc Le, and Slav Petrov. Natural questions: A benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7:452–466, 2019.
Aakash Lahoti, Kevin Y. Li, Berlin Chen, Caitlin Wang, Aviv Bick, J. Zico Kolter, Tri Dao, and Albert Gu. Mamba-3: Improved sequence modeling using state space principles. In The Fourteenth International Conference on Learning Representations, 2026.
Zhixuan Lin et al. Forgetting transformer: Softmax attention with a forget gate. arXiv preprint arXiv:2503.02130, 2025.
Aixin Liu, Aoxue Mei, Bangcai Lin, Bing Xue, Bingxuan Wang, Bingzheng Xu, Bochao Wu, Bowei Zhang, Chaofan Lin, Chen Dong, et al. Deepseek-v3. 2: Pushing the frontier of open large language models. arXiv preprint arXiv:2512.02556, 2025.
Colin Lockard, Prashant Shiralkar, and Xin Luna Dong. OpenCeres: When open information extraction meets the semi-structured web. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics, pages 3047–3056, 2019.
Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. In International Conference on Learning Representations, 2017.
Denis Paperno, Germán Kruszewski, Angeliki Lazaridou, Ngoc Quan Pham, Raffaella Bernardi, Sandro Pezzelle, Marco Baroni, Gemma Boleda, and Raquel 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, pages 1525–1534, 2016.
Guilherme Penedo, Hynek Kydlíček, Anton Lozhkov, Margaret Mitchell, Colin Raffel, Leandro von Werra, and Thomas Wolf. The fineweb datasets: Decanting the web for the finest text data at scale. arXiv preprint arXiv:2406.17557, 2024.
Bo Peng et al. RWKV-7 “goose” with expressive dynamic state evolution. arXiv preprint arXiv:2503.14456, 2025.
Pranav Rajpurkar, Robin Jia, and Percy Liang. Know what you don’t know: Unanswerable questions for SQuAD. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics, pages 784–789, 2018.
Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. WinoGrande: An adversarial winograd schema challenge at scale. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 8732–8740, 2020.
Imanol Schlag, Kazuki Irie, and Jürgen Schmidhuber. Linear transformers are secretly fast weight programmers. In International Conference on Machine Learning (ICML), 2021. arXiv:2102.11174.
Vaisakh Shaj, Cameron Barker, Aidan Scannell, Andras Szecesenyi, Elliot J. Crowley, and Amos Storkey. Kalman linear attention: Parallel bayesian filtering for efficient language modelling and state tracking. arXiv preprint arXiv:2602.10743, 2026.
Jimmy T. H. Smith, Andrew Warrington, and Scott W. Linderman. Simplified state space layers for sequence modeling. In International Conference on Learning Representations, 2023.
Jianlin Su, Muradha Ahmed, Yu Lu, Shengfeng Pan, Wen Bo, and Yunfeng Liu. Roformer: Enhanced transformer with rotary position embedding. Neurocomputing, 568:127063, 2024.
Neehal Tumma, Noel Loo, and Daniela Rus. Preconditioned DeltaNet: Curvature-aware sequence modeling for linear recurrences. arXiv preprint arXiv:2604.21100, 2026.
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017.
Sinong Wang, Belinda Z Li, Madian Khabsa, Han Fang, and Hao Ma. Linformer: Self-attention with linear complexity. arXiv preprint arXiv:2006.04768, 2020.
Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, and Mike Lewis. Efficient streaming language models with attention sinks. In International Conference on Learning Representations, volume 2024, pages 21875–21895, 2024.
Songlin Yang, Bailin Wang, Yikang Shen, Rameswar Panda, and Yoon Kim. Gated linear attention transformers with hardware-efficient training. arXiv preprint arXiv:2312.06635, 2023.
Songlin Yang, Jan Kautz, and Ali Hatamizadeh. Gated delta networks: Improving mamba2 with delta rule. arXiv preprint arXiv:2412.06464, 2024a.
Songlin Yang, Bailin Wang, Yu Zhang, Yikang Shen, and Yoon Kim. Parallelizing linear transformers with the delta rule over sequence length. arXiv preprint arXiv:2406.06484, 2024b.
Songlin Yang et al. PaTH Attention: Position encoding via accumulating householder transformations. arXiv preprint arXiv:2505.16381, 2025.
Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin 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.
Shu Zhong et al. Understanding transformer from the perspective of associative memory. arXiv preprint arXiv:2505.19488, 2025.
A. Theoretical Proofs
A.1. Proof of the Kalman optimal update
Proof of Proposition 3.1 (Kalman Associative Memory). Let the latent associative-memory state be
The linear–Gaussian state-space model is
The current model quantities , and are treated as known when the gain is selected. Under these Gaussian assumptions, the filtering posterior at step is
where is the posterior mean, i.e. the point estimate of the memory after processing the first key–value pairs, and is its key-space uncertainty.
Before observing token , the filter first predicts the next latent memory by marginalizing over the previous posterior:
Because both factors are linear–Gaussian, the predicted distribution is Gaussian,
Evaluating this Gaussian integral gives the exact Kalman prediction step:
At step , we observe the key-value pair , where is the known observation map. Reading the current predicted memory at gives the expected value . Since the actual observation is , the innovation is its difference from this memory prediction:
The columnwise predictive state and isotropic observation noise make the pairs conditionally independent across . Conditioned on , each pair has joint distribution
Applying the Gaussian conditioning formula gives
(49)
The posterior remains factorized, with a common gain and covariance across value coordinates. Stacking the columnwise posteriors therefore yields
This directly establishes the posterior mean and covariance.
It remains to verify the equivalent minimum-MSE characterization. For any candidate gain , define and
Using the predictive covariance and independence of the observation noise, direct expansion and completion of the square give
(52)
Since , this objective has the unique minimizer , establishing the minimum-MSE characterization. Therefore the exact Kalman Associative Memory update is
(53)
□
A.2. Proof of the online diagonal variational update
Proof of Proposition 4.1 (Online Diagonal Variational Update). Let . For , the columnwise factorization and the Gaussian KL formula give
where is independent of and . Since , the mean term is uniquely minimized at . For each ,
Thus the unique minimizing variance is . Finally, the exact posterior precision satisfies
Because ,
Together with the exact Kalman posterior mean from Proposition 3.1, this proves (30).
B. Overwrite and Protection-Write Decoupling
Empirical symptom. For any delta-style residual update, define the effective write strength
Reading the updated memory at the same key shows its operational meaning:
Thus is the fraction of the current residual removed at its own key; values near one correspond to an almost complete same-key rewrite. We call an update an overwrite when remains large despite strong prior evidence along , causing a new observation to replace rather than cautiously revise the stored association.
To analyze the write strength induced by KDN, we record across layers, heads, and tokens on a fixed FineWeb-Edu stream for parameter-matched 750M KDA and Diagonal KDN models, both at initialization and after 50B training tokens. The resulting distributions are shown in Figure 2. At , Diagonal KDN concentrates its effective writes near one, indicating frequent overwrite. Increasing progressively reduces the effective write strength.
Information scale as future protection. To understand overwrite, consider a normalized key with equal energy on active channels and isotropic predictive variance on that support: and . Along this key, the exact posterior and its unscaled diagonal projection retain variances
For , . Consider an immediate repeat of the same key with no intervening covariance evolution, so that the retained variance becomes the predictive variance for the next write. Its effective strength is
Because this fraction increases with , the diagonal projection assigns a stronger correction to the repeated key than the exact posterior.
We introduce an information scale to reduce this retained uncertainty. For the causal analysis, let it vary by token as ; the model uses a single constant :
For the balanced key above, the scaled projection retains
Thus matches the exact one-step directional variance; for an equal-energy key with full support, this gives .
The gain is computed from the predictive state before the scaled uncertainty update, so does not change the current gain or memory estimate:
Its first effect is on future gains. Holding the next token's parameters fixed and defining , we obtain
Thus is a protection scale: it leaves the current write unchanged while weakening future writes along channels shared with the current key.
The matched 750M sweep exhibits the predicted reduction in write strength. At both initialization and after training, the pooled mean decreases monotonically as increases:
| Information scale | Random init. | Trained at | Fixed-weight intervention |
|---|---|---|---|
| 0.842 | 0.943 | 0.886 | |
| 0.743 | 0.891 | 0.873 | |
| 0.630 | 0.826 | 0.862 | |
| 0.580 | 0.805 | 0.857 |
Table 6: Mean effective write for the 750M Diagonal KDN (). The first two columns use the matched random-initialization controls and checkpoints trained at each scale, evaluated on eight 2048-token sequences. The final column uses a separate 4096-token trajectory, changes only the runtime information scale of each trained checkpoint, and averages the resulting layer-head-token means across the four checkpoints; model weights are fixed, while downstream hidden states respond to the changed recurrence. Absolute levels should therefore be compared within, not across, these probe protocols. The intervention isolates the monotone protection effect from retraining compensation.
The intervention reduces the mean from 0.886 at to 0.857 at , while the matched trained models decrease from 0.943 to 0.805. Together with Equation (65), this supports the interpretation of as a future-write control rather than an increase in current observation strength.
C. Isotropic Kalman Delta Network
Retained isotropic state. Following the notation of Section 2, is the latent random memory, while and are the retained filtering mean and covariance. Isotropic KDN replaces the diagonal uncertainty values of Diagonal KDN by one scalar per head:
Two isotropic projections. The isotropic family is not closed under either stage of the Kalman recursion. Starting from , a channel-wise transition generally produces an anisotropic predictive covariance. Even after projecting that prediction back to an isotropic covariance, conditioning on a key produces a dense posterior. Isotropic KDN therefore projects once after prediction and once after conditioning.
For any , the Frobenius-nearest isotropic matrix is
Indeed, , so the projection preserves the average eigenvalue. We apply this covariance projection after prediction, where the process update is affine. After conditioning, we instead minimize reverse KL over isotropic Gaussians, which preserves the exact posterior mean and retains the harmonic mean of the posterior covariance eigenvalues.
Predictive covariance. The memory mean follows the full channel-wise prediction . With isotropic process noise , the retained predictive covariance is
Thus is the average predictive marginal variance. The projection is inactive when is constant across channels, as in the scalar decay of Gated DeltaNet [Yang et al., 2024a]. For channel-wise decay as in KDA, the memory retains the full transition while the uncertainty tracker keeps only its isotropic projection.
Posterior covariance. By the columnwise factorization, it suffices to consider value coordinate . Let and denote column of the predicted memory and filtered memory , respectively. Under the retained predictive state, the one-step model is
The exact one-step filtering posterior under (69), treating and as known at step , has the Kalman residual-update mean and a generally dense covariance:
The star distinguishes this exact posterior covariance from the retained isotropic covariance . Because is generally dense, we approximate the exact one-step posterior within the isotropic family
Proposition C.1 (Online isotropic variational update). Let denote the exact one-step filtering posterior under (69). The variational approximation is
Its unique solution is
Thus the retained mean is the exact one-step posterior mean, while is the isotropic approximation to its covariance.
Proof. The exact posterior is Gaussian with mean and covariance from (70). Its covariance eigenvalue along and its eigenvalue on the orthogonal complement are, respectively,
For , minimizing the Gaussian KL first sets . Up to constants independent of , the remaining objective is
Its unique minimizer is the harmonic mean of these covariance eigenvalues,
which is (72).
□
Starting from the isotropic variational update above, we introduce an information scale by setting ; recovers the variational update. Like the per-channel diagonal recurrence, the resulting scalar recurrence is a Möbius map and therefore admits an associative prefix scan. Isotropic KDN is summarized below.
Proposition C.2: Isotropic Kalman Delta Network
Let the predictive covariance be restricted to the isotropic family and let , and be parameterized by
Here is the token hidden state, and all weights and , together with their biases, are learnable parameters. Define the trace-averaged transition factor . For an information scale , define
The covariance states are computed by the scalar Möbius scan
The adaptive gain at token uses the pre-write predictive covariance :
With available before the memory scan, the memory update has the same affine form as KDA:
At each step, the gain is formed from before is updated, so the token- information increment does not affect the token- write; it affects only subsequent gains. In all reported Isotropic KDN runs, we fix the information scale to .
Isotropic KDN therefore preserves the predict-update decomposition and Kalman residual write, but compresses the uncertainty state to one scalar per head. Its gain is constrained to ; Diagonal KDN replaces by the vector and permits an anisotropic gain direction.
D. Hardware-Efficient Chunkwise Algorithm
Diagonal KDN is evaluated in two stages. A chunked Möbius scan first computes every adaptive gain from the diagonal covariance recurrence. Once these gains are available, the memory recurrence is an input-only asymmetric delta rule and can be evaluated with a compact WY transform, following the chunkwise algorithms developed for DeltaNet, KDA, and GDN-2 [Yang et al., 2024b; Kimi Team, 2025; Hatamizadeh et al., 2026]. The two stages therefore use a Möbius scan and a WY memory scan, respectively; both expose parallel chunk-local work and retain only a short recurrence across chunks.
D.1. Chunkwise Gain Computation
Let be the homogeneous covariance state for channel , so that . With , the covariance update is represented by
This is (37) with the information scale made explicit. Partition the sequence into gain chunks of length at most . Within each chunk, the token-local Möbius matrices are reduced in temporal order to
An exclusive prefix scan over these summaries gives the state entering every chunk,
where the product is the identity for the first chunk. Starting from this exclusive carry, all chunks are replayed in parallel. For , the state immediately before token is
with an empty product at . The gain is emitted from this exclusive state before is applied:
This gives a three-pass implementation: compute one summary per chunk and channel, scan the summaries to obtain exclusive chunk carries, and replay the chunks in parallel to emit . The ratio is invariant to a common rescaling, so after each multiplication we divide every homogeneous vector or matrix by its largest-magnitude entry. This fp32 renormalization prevents overflow when is very small. Our gain kernel uses ; the short carry pass is serial over the number of chunks, although the summaries also admit a fully associative prefix scan.
D.2. Chunkwise Memory Scan
With fixed, partition the sequence independently into memory chunks of length . Consider one chunk, suppress its global index, and let be its incoming memory. For local position , define the coordinatewise cumulative decay
The normalized state obeys an ordinary two-key delta rule,
Let , , and stack the chunk's rows , and , respectively. Let denote the query scale, with in our implementation and when it is absorbed into . Define
The compact WY factors are
Here is strictly lower triangular. The implementation computes and stores with a tiled unit-lower-triangular solve, then forms and . Define the final-decay-adjusted write matrix and the inclusive causal query-write matrix by
The outputs for the whole chunk and its outgoing memory are then
The diagonal of is included because reads the state after the current write. These equations are exact for the Diagonal KDN recurrence. They reduce to KDA when and otherwise use the same two-key WY structure as GDN-2, with as the write direction and as the erase direction. All chunk-local factors are computed in parallel; only is carried across memory chunks. The implementation forms decay ratios from cumulative log-decay differences for numerical stability and uses , independently of the gain-chunk length.