Do Distractors Overwrite or Dilute? Contextual Noise in Delta-Rule Memories

Language models are easily thrown off by irrelevant text. A single off-topic sentence inserted into a grade-school math problem can collapse their consistency. Almost everything we know about this failure comes from Transformers, where each new word spreads attention over every previous word, so irrelevant words thin out the attention paid to the relevant ones. A growing family of efficient models works differently. Delta-rule recurrent networks, which store the whole past in a fixed-size matrix, update that matrix by error correction: they look up what they currently believe about a key and then replace that belief with the new value. In a memory like this, irrelevant text should not thin out the signal. It should overwrite it, and only when the distractor reuses the same key, for example the same person's name. This note proposes to test that prediction directly. The aim is to measure whether distraction in delta-rule models is a collision-driven overwrite rather than a length-driven dilution. If it is, we then test whether a write gate that sees how much it is about to erase can resist it.

The idea in two sentences: the delta rule's defining feature, targeted overwriting, is also a targeted attack surface, so delta-rule models should be robust to irrelevant text that shares no keys with the facts they need and fragile to irrelevant text that does, especially when it arrives after the relevant fact. We will quantify this exactly using the model's own update equation, compare it against Transformers and decay-only recurrent models, and test whether exposing the erasure magnitude to the write gate fixes it more cheaply than fine-tuning on distractors.

Core Claim

The delta rule was introduced to let fast-weight memories erase stale associations, as shown by Schlag et al.. It was later made fast enough to train at scale by Yang et al.'s chunkwise-parallel DeltaNet, and it was combined with a data-dependent forgetting factor in Gated DeltaNet. In the gated form, the memory matrix $M_t$ is updated from key $k_t$, value $v_t$, write strength $\beta_t$ and decay $\alpha_t$. If we ask what the memory returns for some earlier "gold" key $k_g$, the update decomposes exactly:

$$M_t k_g = \alpha_t\big[M_{t-1}k_g - \beta_t (k_t^\top k_g)\, M_{t-1}k_t\big] + \beta_t (k_t^\top k_g)\, v_t .$$

The first factor $\alpha_t$ is uniform decay, which grows with the number of intervening tokens no matter what they say. The terms scaled by the key overlap $k_t^\top k_g$ are erasure and rewriting, and they are large only when the incoming token's key collides with the gold key. This yields three predictions that separate delta-rule distraction from softmax dilution. First, damage should track key overlap far more than distractor length. Second, there should be an order asymmetry: a colliding distractor placed after the gold fact destroys it, while the same distractor placed before the fact is itself overwritten and becomes harmless. Third, the damage should be readable token by token from the overlap-weighted erasure term, with no probing classifier needed.

Shi et al. supply the motivating behavioral fact: the irrelevant sentences that do the most harm on GSM-IC are in-topic and reuse role names. Under our account, that is precisely a key collision. No paper in the file measures distraction in any delta-rule model. Gated DeltaNet, Q-Delta and DeltaNet are evaluated on clean needle retrieval and unperturbed benchmarks. SANE studies a different failure in delta-rule models: norm blow-up over millions of tokens. That is numerical runaway, not semantic overwriting at ordinary lengths.

Research Program

Matched model suite. We train models from scratch on FineWeb-Edu, the corpus used by Gated DeltaNet, Q-Delta and the hybrid model, at 340M parameters on 15B tokens, with a 1.3B confirmation run for the best and worst architectures. Each architecture uses the same tokenizer, data order and parameter budget. The suite contains a softmax Transformer, Mamba2 (decay-only gating), DeltaNet (pure delta), Gated DeltaNet (decay plus delta), Q-Delta (query-aware delta) and the synchronous hybrid from Blending Complementary Memory Systems, which pairs a softmax window with a DeltaNet memory. Q-Delta deserves special attention because the file flags an open risk: a query-driven update might lock onto distractors that share query words.

Controlled distraction tasks. These are where the predictions can be stated sharply. We extend multi-query associative recall and single-needle retrieval with distractor key-value pairs. We vary three factors independently: key overlap with the gold key (identical, partially shared tokens, or disjoint), position relative to the gold pair (before or after), and filler length. We also build a templated arithmetic task in the style of GSM-IC with entity-tracking word problems and inserted irrelevant sentences. Its distractor categories mirror Shi et al.'s: in-topic versus off-topic, and overlapping versus new role names, plus in-range numbers. Models are fine-tuned only on clean versions and tested on distracted ones.

Mechanistic accounting. For every distracted example, we track the cosine between $M_t k_g$ and $v_g$ through the sequence in each delta-rule layer and head. Using the equation above, we attribute each drop to decay or to overlap-weighted erasure. The account is confirmed if erasure explains most of the accuracy loss under colliding distractors and decay explains most of it under long filler.

A collision-aware write gate. This is a targeted fix whose value depends on what the diagnosis shows. Gated DeltaNet computes $\beta_t$ from the current token alone, so it cannot know whether it is about to overwrite a confident existing association. We add a single extra input to the gate network: the predicted erasure magnitude $\beta_t\lVert M_{t-1}k_t\rVert$, computed before the write. This adds negligible compute because $M_{t-1}k_t$ is already needed for the error term. The gate is trained with the same distractor-augmented data given to the baselines. The open question is whether access to this quantity lets the model refuse spurious overwrites without also refusing legitimate ones, such as a variable being reassigned. We therefore always pair distraction tests with a state-tracking control: variable reassignment and parity, the tasks on which the hybrid paper showed delta memories succeed. A fix that buys robustness by killing overwriting fails this control.

Natural-text transfer. At 1.3B we evaluate on GSM-IC after clean GSM8K fine-tuning. We also evaluate multi-document question answering on Natural Questions and TriviaQA with distractor passages, varying passage count and placing the gold passage before or after hard negatives. This follows the retrieval-depth stress tests of Cho et al. and Yoran et al..

Baselines

The naive reference point is each architecture fine-tuned only on clean data and tested on distracted inputs. This is the "do nothing" condition, and every robustness number is reported as a drop relative to the same model's clean accuracy. That framing matches how both Shi et al. and the contextual distraction study of Wang et al. report harm.

The instructed-prompt baseline prepends Shi et al.'s instruction to ignore irrelevant information. For orientation, Shi et al. report code-davinci-002 GSM-IC micro-accuracy of 72.4% rising to 77.8% with this instruction, with macro accuracy often under 30%. No reported result was found on Lacuna for any delta-rule or linear-recurrent model on GSM-IC, so our clean-only runs establish that reference.

The strongest competitor on the question "can delta memories learn to resist distractors?" is Gated DeltaNet fine-tuned on exactly the same distractor-augmented data as our gate, with the same steps, learning-rate sweep and seeds. Its data-dependent $\beta_t$ and $\alpha_t$ could in principle learn suppression without our extra input. On clean needle retrieval the strongest reported delta number is Q-Delta at 48.0 on S-NIAH-3 at 4K context versus 21.4 for Gated DeltaNet (Park et al., Q-Delta). Q-Delta is therefore run under the same augmentation as a second strong competitor. The hybrid softmax-plus-DeltaNet model is the strongest architectural competitor, because its exact softmax window can recover a fact the recurrent memory overwrote.

The key ablation isolates the gate's new input. We compare against an identical gate that receives a random input of matched scale, and against a gate given $\lVert k_t\rVert$ instead of the erasure magnitude. Beating the augmented Gated DeltaNet means a statistically reliable reduction in the colliding-after-gold drop across three seeds, with no more than one point lost on the reassignment and parity controls and no perplexity regression on held-out FineWeb-Edu.

Why not just…?

Why not just tell the model to ignore irrelevant text? Shi et al. found the instruction lifts micro-accuracy only modestly and leaves consistency poor. Wang et al. report that it is ineffective against adaptive distractors, which still cause about 45% average degradation. We include it anyway, because a small recurrent model may respond differently. Our prediction is that an instruction cannot undo an overwrite that already happened inside the state.

Why not just fine-tune on distractor data? This is the real threat, because Gated DeltaNet's gates are already input-dependent. The matched-augmentation baseline settles it. If plain augmentation closes the colliding-after-gold gap while passing the reassignment control, the gate adds nothing and we will say so. The diagnostic contribution stands regardless: the order asymmetry and the erasure attribution. Our reason to expect a gap is structural. A gate that sees only the current token cannot tell "this name is being reassigned" from "this name appears in an irrelevant aside" without knowing what the memory already holds, and the erasure magnitude is the cheapest summary of that.

Why not just filter or compress the context externally? Pipelines such as CompAct and distraction-aware retrieval bands help, but they add a second model. Yoran et al. found that NLI filters often discard useful passages. More importantly, the GSM-IC-style distractors live inside a single problem statement, where document-level filtering does not apply. We report a filter-then-read baseline on the multi-document question-answering setting only, where it is meaningful.

Why not just use a hybrid with a softmax window, or a bigger state? A hybrid may recover overwritten facts, and our suite measures whether it does. If it does, that is itself evidence for the overwrite account: the window holds what the matrix lost. A larger state, per Liu et al., reduces crowding by unrelated keys. Under the equation above, however, it does not reduce erasure from a genuinely colliding key. We test this with a Gated DeltaNet that has an expanded state, where the account predicts a smaller length effect and an unchanged collision effect.

Decisive Checks

The overwrite account is supported only if three things hold for delta-rule models but not for the Transformer. Distractors with colliding keys placed after the gold fact must cause a much larger drop than the same distractors placed before it. Disjoint-key distractors of equal length must cause a much smaller drop than colliding ones. And the overlap-weighted erasure term must account for most of the loss in gold-readout cosine. The account is falsified if delta-rule models show the Transformer's profile instead: harm that grows with distractor count and depends weakly on order and overlap. The gate is supported only if it beats matched-augmentation Gated DeltaNet on the colliding-after-gold condition while holding the reassignment and parity controls. Finally, the natural-text runs must show the same order asymmetry on GSM-IC role-overlap distractors and on gold-before versus gold-after passage orderings in question answering. Without that, the synthetic findings are a curiosity rather than an explanation.