Stable Expected Dynamics of Kronecker Delta Memory
When random associations cannot all be fit at once, the Kronecker Delta memory need not settle to a single state; its expected update follows least squares, while its stochastic state settles into a bounded stationary regime.
What it is
- Mean convergence Average over the random updates, and the memory moves toward the least-squares solution even when the individual sampled updates keep changing it.
- Stationary state The random memory settles into a stable distribution of states. Its average is the least-squares memory, though one run need not stop at a single value.
- Norm control Under the stated conditions, the expected memory size stays bounded, so long contexts do not imply unbounded expected growth.
Why it matters
It distinguishes useful stability from a stronger guarantee the method does not make: random memories may continue fluctuating, while their average and expected size remain controlled.
Before getting technical, here is the short version: the memory sees one randomly selected association at a time, so its state can keep shifting even when the full set of associations cannot all be satisfied. The useful result is that the average state heads toward the best least-squares fit, while the random state settles into a stable distribution instead of wandering without bound.
-
Over-capacity fit: The canonical example is trying to fit more independent input-output constraints than the memory has room to represent. Some associations then conflict, so no single memory can satisfy them all. The update keeps correcting whichever association was sampled; it is not supposed to freeze at a perfect answer.
-
Mean versus trajectory: Think of the mean as averaging many runs of the same random process. Each run may keep moving, but their average can still approach the least-squares memory. This is the distinction that matters: “the average settles” does not mean “every run settles at the same point.”
-
Bounded expected size: A memory is like a notebook being revised as new examples arrive: conflicting edits can keep changing its contents, but the analysis asks whether its expected size remains controlled. The analogy stops at size—the result is a mathematical bound, not a claim that every individual notebook has the same content or norm.
So what does the averaging do mechanistically? Each sampled update nudges the memory according to the prediction error for that association. Averaging over possible samples combines those nudges into a deterministic direction toward the least-squares solution. In notation, the mean follows . In words, the next expected memory is the current expected memory transformed by the average update, plus the average target contribution.
That explains the mean, but does it describe what happens to one actual memory? No: in the inconsistent setting, sampling keeps injecting variation. Instead, the state distribution settles into a unique stationary distribution, and its mean is exactly the least-squares memory. The result is a stable pattern of fluctuation, not a frozen point. What keeps the size of that pattern from growing indefinitely?
The norm analysis bounds the least-squares memory in terms of explained target energy, with residual energy only reducing the bound. In the non-expansive regime, it also bounds the steady state and every iterate when starting from zero; the transient bound decays geometrically. The paper’s practical summary is that expected memory is bounded from the first step by a constant determined by the data distribution alone. I find this distinction more useful than saying simply that “the memory converges”: it tells us what settles, and what can keep fluctuating.
Read the deep dive
Why People Wanted It
A memory that receives one randomly sampled association at a time can keep moving even when every association cannot be satisfied simultaneously. That makes a useful question more precise than “does the memory converge?”: does its average find a meaningful solution, and do the random fluctuations stay under control? For long contexts, stability means understanding both the mean and the distribution of the state—not demanding that every individual trajectory land on one exact memory.
The Core Move
Treat each association as a stochastic least-squares update: the expected state follows a deterministic linear recursion toward the least-squares memory, while the random iterates form a stable Markov chain under the stated step-size condition.
For the vectorized memory , the exact expected recursion is
Its fixed point is , the least-squares memory. The random state need not converge to that point; instead, it converges in distribution to a stationary law whose mean is exactly .
Why the Mean Can Converge When Individual Memories Do Not
Now the version for readers who want more of the machinery: the key distinction is between averaging the update and asking a single random trajectory to stop moving. In an over-capacity setting, associations can be inconsistent, so the stochastic updates continue to respond to whichever association was sampled. The mean update, however, averages those sample-wise corrections into a linear recursion.
The paper defines the least-squares memory by minimizing the expected squared prediction error, . In words, it is the memory with the smallest average squared mismatch over the input-association distribution. With the vectorized feature , the prediction is ; the paper’s expected recursion has the least-squares state as its unique fixed point. Under the stated admissible step-size condition, the mean error contracts geometrically. This is a claim about the expectation, not pointwise convergence of each random iterate. So what replaces convergence of an individual memory?
Why the Random State Has a Stationary Distribution
Here is the part that gets technical: each random update defines a transition of a time-homogeneous Markov chain on the vectorized memory space. The stated contraction on probability laws with finite second moment gives a unique stationary distribution, and the law of the iterates converges to it geometrically from any initialization. Its stationary mean is exactly .
That separates two kinds of stability. The distribution settles even though a realized memory may keep fluctuating; and the mean of that settled distribution has no offset from the least-squares solution. The source also describes a Wasserstein-2 synchronous-coupling contraction in its appendix analysis, but the main result needed here is the existence, uniqueness, and geometric convergence of the stationary law. What controls whether the size of those fluctuations stays bounded?
Why the Expected Memory Norm Stays Bounded
Now the norm-bound layer: the analysis bounds the least-squares memory using explained target energy, with residual energy only shrinking that bound. In the non-expansive regime , it further bounds the steady state and, when initialized at zero, every iterate; the transient factor decays geometrically. The paper states that from the first step onward the expected memory is bounded by a constant determined by the data distribution alone.
This is an expected-memory stability result, not a promise that every possible sample path has a fixed maximum norm. It is useful precisely because a random memory can keep changing while its expected size remains controlled. How should you read that guarantee in practice?
Minimal Causal Code
The loop below makes the sampled update visible. It illustrates the stochastic least-squares step; it does not implement the paper’s separate norm-bound proof.
import torch
def run_delta_memory(features, targets, beta, steps, s0):
# features[t] is the vectorized association feature a_i.
# targets[t] is its scalar target c_i.
s = s0.clone()
states = []
for t in range(steps):
a = features[t]
c = targets[t]
residual = a @ s - c
s = s - beta * residual * a
states.append(s.clone())
return s, torch.stack(states)
What You Gain, and What You Lose
You gain a precise stability picture for random associations: the expected memory targets the least-squares solution, the stochastic dynamics approach a unique stationary distribution, and expected memory norms are bounded under the stated conditions. You do not gain pointwise convergence of every iterate to one memory in the inconsistent case; the stationary state can retain sampling-driven fluctuations. The guarantees also depend on the assumptions, including random sampling and an admissible fixed step size. This module is about those dynamics, not the separate gated sequence-mixer architecture or its chunkwise execution.
The mean can settle at least squares even when each sampled memory keeps moving—stability is about the whole distribution, not a frozen trajectory.