arXiv:2610.24026cs.LGOct 2026

Manuscript Offprint

arXiv:2610.24026

Dynamical Kernel Attention: Estimating the Present from a Record of the Past

Peter Racioppo

Abstract

Standard self-attention compares tokens by similarity but does not account for how much of a past state survives to the present. We introduce Dynamical Kernel Attention (DKA), which derives attention from robust estimation of a latent state evolving under stochastic dynamics. As a past state decays toward equilibrium under the dynamics, the information it carries about the present vanishes, bounding the total evidence a head can draw. Unlike recency biases, DKA can abstain when relevant evidence is weak and guarantees a bounded error when old tokens are discarded. DKA preserves the parallel structure and computational cost of standard attention. We present the model and its theory; empirical evaluation is deferred to a subsequent version.

1 Introduction

Unlike recurrent networks [Elman, 1990] and state space models [Gu et al., 2022], self-attention does not propagate a latent state through shared dynamics: each token is compared with every other directly, and temporal structure enters only through positional encodings. These encode where a token is, but not how much it can still be trusted about the present. We obtain both from one model, treating the sequence as noisy observations of a latent state evolving under a linear stochastic differential equation (SDE). The dynamics transport a past token to the current position, acting as a positional encoding, while the accumulated random forcing determines its reliability. Attention then becomes batch state estimation.

Robust Filter Attention (RFA) [Racioppo, 2026a] pools the transported tokens through a composite likelihood [Lindsay, 1988], treating them as independent given the current state. Each token's weight then depends only on its own agreement with the query, consistent evidence is averaged rather than superseded, and the computation remains that of standard attention. RFA paired this with a flat prior on past states, making each transported token a direct measurement of the current state. Distant tokens then share nearly all of their error yet count as separate votes, and since their predictions have decayed to the equilibrium, they pull the estimate toward it, increasingly so as the context grows.

We introduce Dynamical Kernel Attention (DKA), which draws past states from the stationary distribution of the dynamics. As a token's prediction decays toward equilibrium, it contributes less evidence because the equilibrium is already known (Figure 1). Conditioning on the current state also accounts for the forcing accumulated since the token, so correlated errors are no longer counted once per token. Together, these effects bound overcounting regardless of context length. Unlike a recency bias, which lowers distant tokens' logits but lets softmax shift weight back to them when recent tokens are irrelevant, DKA bounds the total evidence a head can draw, allowing it to abstain. Moreover, the query's prediction of the past decays toward equilibrium, so even a strong match contributes less at longer lags. DKA recovers RFA in the flat-prior limit.

Our contributions are:

Preprint.

(i) A stationary measurement model for attention in which a past token’s evidence fades with lag and the overcounting of correlated tokens is bounded in context length, which gives each head a memory window set by its decay rate (Section 3.5).

(ii) An attention update derived from this model, in which each layer refines the current estimate. Under isotropic noise and decay, it has the same computational complexity as standard attention.

(iii) A null term in the normalization, contributed by the current estimate, which lets a head make no update when the evidence is weak and recovers “softmax plus one” [Miller, 2023] as a special case.

References (33)