Manuscript Offprint
arXiv:2611.04902Attending to Memory Writes Reduces Seed Variability in Recurrent Length Generalization
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Recurrent memory requires learning useful updates, but attention added to assist learning can also compromise length generalization. We study bounded delta attention: causal attention over uncorrected update proposals whose bounded correction enters the recurrent update. Its implementation in TraceRelay combines additive phase recurrence with attention computed before a parallel scan. On prefix-supervised modulo-5, trained at lengths 1–40, three findings characterize its behavior at length 80. First, upper delta attention attains 70.81 ± 8.26% accuracy across seven seeds, versus 69.21 ± 22.42% for the local-attention recurrent baseline (mean ± sample SD): a 63.2% reduction in SD with a similar mean. Upper state attention also reduces variation, reaching 74.75 ± 6.24%, so this benefit is not unique to update-level attention. Disabling the upper delta correction retains 70.62 ± 8.60%. Second, blocking gradients at the delta-attention inputs changes accuracy to 65.25 ± 12.40% in the matched seven-seed comparison, increasing SD by 50.2%. It also delays a 99% validation threshold on average among the same six seeds that reach it; the 95% threshold is reached earlier on average with input-gradient blocking across all seven seeds. Third, lower delta attention exhibits substantially less extrapolation degradation than lower state attention: 62.60% versus 19.40%, against a 71.06% baseline. Removing its correction reduces accuracy to 22.56%; its advantage over lower state attention also persists under input-gradient blocking. These observations motivate bounded update-level attention as a recurrent learning scaffold, combining reduced seed variation with less severe degradation in a placement where state attention fails. Improved credit assignment is a candidate explanation, not an established mechanism. Longer-length failures and mixed all-layer results delimit the evidence; next-token-trained recurrent memory remains a future objective.
1 Introduction
Maintaining useful information over a long interaction requires more than recovering an earlier token. A model may need to revise a belief, accumulate a quantity, or preserve the current status of a task as new observations arrive. Such computations motivate recurrent state updates, but access to a recurrent path does not ensure that training consistently discovers an update rule that generalizes. State-tracking experiments show that strong performance within the training lengths can coexist with length-specific solutions and poor transfer to longer sequences [1].
Attention offers a natural way to connect distant computations during learning. Temporal attention and skip connections have previously improved recurrent optimization and credit assignment [2, 3]. However, attention can also change which computation a recurrent hybrid learns. Delayed Attention Training (DAT) demonstrates that jointly trained attention can compromise an RNN's length generalization and that delaying attention can improve it [4]. SWAX shows that shorter training-time attention windows can improve long-context recall in recurrent hybrids [5]. These findings motivate examining how a temporal shortcut is coupled to recurrence, alongside when it is trained and how far it can reach.
https://github.com/swgoo/trace_relay
We study a particularly simple coupling: attention over proposed recurrent increments. A local computation first produces an update . Causal attention accesses the current and previous uncorrected updates and produces a bounded correction. The corrected increment then enters the recurrent transition. We call this operation bounded delta attention. In the TraceRelay implementation used here, the transition accumulates phase angles and exposes their sine and cosine features. The correction can therefore be bounded directly in radians.
Our empirical question is whether this update-level route can support useful recurrent learning while mitigating the extrapolation degradation observed with long-window attention over state representations. We use modulo-5 prefix tracking, which has a small sufficient state and an exactly repeatable update rule. Every input position receives its prefix-state label; no generated intermediate answer is fed back as an input. This isolates a state-update problem while providing dense supervision.
The results center on three observations. First, upper layer's delta attention reduces the observed spread across seven seeds while retaining a similar mean to the local-attention recurrent baseline; most performance remains when its correction is disabled at evaluation. Second, blocking the attention-input gradient route increases the length-80 spread again in a matched seven-seed comparison. It delays the 99% validation-accuracy threshold on average among the same six seeds that reach it, while reaching the 95% threshold earlier on average across all seven seeds. Third, lower layer's delta attention causes substantially less extrapolation degradation than state attention, but depends strongly on its correction at inference. This advantage over lower state attention also persists under input-gradient blocking, indicating that the forward correction contributes alongside the additional gradient route.
Upper layer's state attention remains a strong control, with a higher length-80 mean and smaller SD than upper delta attention. Scheduled removal, training-time diagnostics, and all-layer variants further characterize the intervention behavior. The contribution is therefore a specific bounded update mechanism and evidence about how it affects learned variability and inference-time dependence, rather than a general ranking of attention types.
The evidence also bounds the interpretation. The attention targets, parameter counts, direct receptive fields, and output constraints differ between the state- and delta-attention variants.
Our focus is the signal accessed by attention and its entry point into recurrence. The proposed branch reads raw update proposals, applies a bounded correction, and supplies the corrected increments to a fixed additive phase transition. Because the proposals are independent of the same layer's accumulated phase, attention can be evaluated before the scan. This organization preserves parallel evaluation while introducing content-dependent paths among proposed updates.
Attention can also compete with recurrent learning. Delayed Attention Training (DAT) improves hybrid length generalization by postponing attention training; its modulo-only experiments also show failure where a pure LSTM generalizes [4]. SWAX finds that wider sliding windows can weaken long-term memorization in attention-xLSTM hybrids and studies stochastic windows to balance local access and recurrent memory [5]. Irie et al. [7] further show that synchronous versus delayed delivery to local-attention/DeltaNet memory systems changes algorithmic performance. Together, these results motivate examining attention's coupling to recurrence, alongside its training schedule and reach. We study a bounded route into the update stream within this established problem.
Structured recurrence and phase representations. Unitary RNNs use complex-valued, norm-preserving recurrent matrices to address difficult long-term optimization [8, 9]. The Linear Recurrent Unit combines linear, diagonal recurrence with suitable initialization and normalization for efficient parallel training [10]. Bounded delta attention extends the current implementation by correcting unaccumulated increments. The phase representation makes the correction scale interpretable as a per-update angular bound, whose implications for optimization and extrapolation remain empirical.
State tracking as a controlled diagnostic. Tang et al. [11] analyze natural-language entity tracking and find evidence for query-dependent consolidation rather than incremental state maintenance in the studied pretrained models. Their mechanistic findings motivate our concern about learning ongoing recurrent updates. Ebrahimi et al. [1] find substantial differences between recurrent networks and Transformers in modular-state-tracking sample efficiency and cross-length transfer under multiple supervision regimes. Buitrago Ruiz and Gu [12] connect recurrent extrapolation failures to incomplete training coverage of attainable states. These findings distinguish fitting training examples from learning reusable transitions. Our modulo-five task provides aligned prefix-state supervision without previous-answer inputs, enabling controlled comparisons of the resulting update computations.
3 Bounded attention over recurrent updates
We study where a recurrent model should use a wider attention window: over representations containing accumulated state, or over the increments that update that state. TraceRelay provides both a local attention pathway and an explicit phase recurrence in every layer. A window of always includes the previous positions and the current position. All attention operations are causal multi-head attention with RoPE and learned query, key, value, and output projections.
3.1 Local writes, phase inheritance, and reads
Let denote the input to one layer, suppressing the layer index. The separate learned RMSNorm layers , , and are applied before write attention, read attention, and the SwiGLU feed-forward sublayer, respectively. The operator attends to . A short write operation produces a raw phase increment:
Here is a learned, bias-free linear projection applied to the write-attention output at each position, separately from the attention module's own output projection. The coordinatewise tanh and factor convert its output into a raw phase increment bounded in magnitude by radians per coordinate. The baseline applies . With , phase inheritance is
This defines interleaved recurrent lanes. The write at attends to the current local interval and immediately updates the phase inherited from just before that interval. Write queries, keys, and
(a) Bounded correction before recurrent integration

(b) Long state-read comparator

Figure 1: Two locations for a long-window attention operation within a TraceRelay layer. (a) attention reads raw local phase increments, adds the coordinate-wise bounded correction , and then integrates the corrected increment through the stride-six recurrent phase update. The long correction uses neither accumulated phase states nor an independent memory controller. (b) The state-read comparator widens read attention after the recurrent update and state-feature construction. The diagram omits projection and normalization details given in the text. A window of 40 includes 40 past positions and the current position; the correction branch is enabled only in the designated layers.
values depend only on this layer's inputs; a strided prefix scan therefore computes the phases in parallel.
The phase enters the residual stream before read attention:
The learned projection follows the attention output projection. The phase feature map is coordinatewise; the equations omit masking, under which uninitialized memory contributes zero.
3.2 Attention over raw increments
An optional attention module computes a bounded correction before the scan:
Its queries, keys, and values are projections of raw increments, without an additional RMSNorm. Corrected increments are never fed back as this attention module's source. Thus the operation can connect updates across recurrent lanes while retaining parallel computation of corrections and the subsequent scan.
The nonnegative coefficient bounds each correction coordinate in radians: . Holding the incoming phase and raw increment fixed, the associated phasor perturbation obeys
This is a per-update, per-coordinate bound.
3.3 State-attention controls and direct reach
The baseline has in all three layers, hence . A state-attention control widens one existing read window to 40. A single-layer -attention model instead keeps all reads short and adds an increment-attention module with . Lower, middle, and upper placements refer to layers one, two, and three. Widening a read does not change the same layer's phase recurrence for fixed layer inputs, but it changes the layer output and can consequently affect upper layers' writes and future recurrent states. The wider window covers every training prefix but remains fixed at evaluation; it is not unrestricted full attention on longer sequences.
Removing only the phase-inheritance edges leaves direct receptive-field width
where when no correction contributes. The baseline, single state-attention, single -attention, and all-layer -attention models have widths 31, 66, 71, and 151, respectively, when . They have different parameter allocations and direct reach (Table 2); this is not an exact capacity-matched substitution. In particular, length 80 lies inside the all-layer model's direct field, so its accuracy there alone does not establish reliance on inherited phase beyond local access.
4 Experiments
4.1 Modular state tracking and training
Inputs are IID symbols , with target state
A bias-free projection embeds each one-hot symbol, and a final normalization and classifier predict the inclusive prefix state. The loss is mean cross-entropy over all input-aligned positions in a minibatch. This aligned intermediate-state supervision (ACoT; 1) feeds neither targets nor previous predictions back into the input. It is not natural-language next-token prediction.
All reported training runs complete 40,000 updates. Each minibatch contains 64 fresh sequences of a single length sampled uniformly from 1–40. Models have three layers, hidden width 128, feed-forward width 512, four attention heads, and zero dropout. AdamW uses learning rate , weight decay 0.01, 100 warmup updates, cosine decay to one tenth of the peak, and gradient clipping at 1. Training uses BF16. Table 1 records the remaining shared settings.
4.2 Comparisons and training seeds
The main baseline, upper state attention, upper attention, and upper input-SG comparisons use the same seven seeds 42–48. Supplementary placement, scale, and scaffold comparisons use the same seeds 42–44 for every condition, including the corresponding baseline and upper-layer subsets. The principal correction scale is , selected after exploratory completed runs with 0.2, 0.1, and 0.05. The seven-seed comparisons test variability under the same task and protocol.
For a given seed, all shared parameters in the variants are copied from an identically initialized baseline. The additional attention weights use a separate seeded stream, with the same initial values at each tested placement and independent parameters when present in multiple layers. The post-initialization random-number state is restored, and symbol and length streams are matched. The state-attention extension uses the historical source snapshot; preflight checks verify matching baseline initialization, training settings, and a reproduced historical evaluation.
Table 1: Shared training and evaluation protocol. Main upper comparisons use seeds 42–48; supplementary placement, scale, and scaffold comparisons use seeds 42–44 for every condition, including the corresponding upper subsets.
| Component | Setting |
|---|---|
| Task and supervision | Modulo-5 inclusive prefix state; one-hot symbols; label at every position; no target feedback |
| Architecture | Three layers; hidden width 128; SwiGLU width 512; four attention heads; zero dropout |
| Training data | Fresh IID symbols; one length per minibatch of 64 sequences |
| Training budget | 40,000 updates; 2,560,000 sequences per run |
| Optimizer | AdamW: learning rate , weight decay 0.01, , |
| Schedule and numerics | 100 warmup updates; cosine decay to 0.1 of peak; BF16; gradient norm clipped at 1 |
| Local and long windows | Write/read windows 5; selected state-read or increment-attention window 40; windows count past positions plus current |
| Validation | 2,000 length-40 sequences; ordinary cross-entropy; generator seed 20261023 |
| Checkpoints | LAST at update 40,000 is primary; minimum ID-validation-CE BEST is a sensitivity analysis |
| Evaluation | 1,024 fixed held-out sequences per length; generator seed 20261024; final-position accuracy |
| Common evaluation lengths | 20, 40, 80, 160, and 320; additional lengths only where recorded |
Table 2: Model configurations and direct receptive fields with phase-inheritance edges excluded. Every layer retains write window 5 and phase stride 6. The correction scale is positive in the listed fields; setting it to zero restores direct field 31 while retaining the trained parameters.
| Design | Read windows | windows | Parameters | |
|---|---|---|---|---|
| Baseline | All 5 | None | 1,182,213 | 31 |
| State attention | One 40; others 5 | None | 1,182,213 | 66 |
| Single attention | All 5 | One 40 | 1,247,749 | 71 |
| All-layer attention | All 5 | All 40 | 1,378,821 | 151 |
Lower, middle, and upper placements have identical parameter counts within each attention design. State attention widens an existing reader; attention adds 65,536 parameters per active layer. The two designs therefore differ in parameter allocation, direct reach, attention inputs, and correction constraint.
Additional all-layer experiments apply correction attention in every layer. Their three schedules are constant (A), constant 0.02 (B), and 0.05 through update 24,000 followed by linear decay to zero at update 36,000 (C). Thus C trains its final 4,000 updates with zero correction and has direct field 31 at the final checkpoint, despite retaining the extra parameters. These experiments use seeds 42–44 and the same total budget.
4.3 Training-path ablations and diagnostics
We complete a further 12 runs: four configurations with seeds 42–44 and the same 40,000-update budget. Upper fixed repeats the selected upper configuration with diagnostics. Upper input-SG and lower input-SG stop gradients at all raw-update inputs to correction attention, while keeping . Writing sg for stop-gradient, the intervention is
The notation includes the current query and all current/past key and value inputs. It removes their additional gradient route through the helper, not the main recurrent gradient through the uncorrected update. The attention projections remain trainable and the correction still enters the carry. For identical weights and inputs, input-SG leaves forward values unchanged; parameter counts and direct receptive fields also match the full-gradient configuration. It does not isolate past-value gradients from query gradients.
Upper decay retains all gradient paths and uses the same 24k-36k linear schedule as the earlier all-layer C experiment, but only at the upper layer. Its final 4,000 updates have zero correction. All four configurations match the original initialization and training streams. The instrumented upper-fixed runs reproduce the historical final weights and data/length generator states bit-for-bit, and the upper-fixed and upper-decay checkpoints match at initialization and 24k. The repeated fixed runs therefore add measurements, not independent seeds.
The upper input-SG comparison uses seven distinct training seeds 42–48, each completing 40,000 updates. Preflight checks confirm the corresponding full-gradient initialization and post-initialization random-number state; the model settings, training budget, and symbol/length streams are matched. The input-gradient comparison counts each training seed once. Lower input-SG, upper decay, and the four-condition diagnostic comparison retain seeds 42–44.
Diagnostics use 512 fixed validation examples at each of lengths 40 and 80, with unchanged inputs for ON and OFF. We record 24 checkpoints: initialization, updates 250, 500, and 1,000, then every 2,000 updates through 40,000. Measurements include aligned cross-entropy and the coordinate/token RMS of the raw update and actual scaled correction. The absolute ON-OFF cross-entropy difference is computed within each seed before averaging. These probes neither select checkpoints nor control training; their random-number states are restored. They are distinct from the 1,024-example final test evaluations. As a complementary learning-speed summary, we record the first ordinary 2,000-example length-40 validation final-position accuracy of at least 99%, checked every 250 updates. For the seven-seed upper input-gradient comparison, we also compute the first 95% crossing from the same logged validation evaluations.
4.4 Checkpoint selection and evaluation
The primary checkpoint is LAST, after 40,000 updates. BEST, chosen solely by minimum ordinary length-40 validation cross-entropy, provides a sensitivity analysis; extrapolation scores do not select checkpoints. Validation uses 2,000 fixed length-40 examples. Final evaluation uses 1,024 independently generated held-out sequences per length, shared across configurations and seeds and verified by fingerprints. The principal metric is final-position accuracy, with chance level 20%. All seven-seed comparisons include lengths 20, 40, 80, 160, and 320; additional recorded lengths are reported only where available.
For -OFF, we reevaluate the same checkpoint with runtime and unchanged inputs, without retraining. This probes reliance on the correction at inference, not equivalence of training trajectories to the baseline. An inference-time intervention is not an independently trained control. We report means, sample standard deviations, and individual seed outcomes descriptively; we do not treat ON/OFF evaluations of one checkpoint as additional training seeds.
5 Results
We examined whether an attention route can assist recurrent learning while limiting the extrapolation degradation associated with a long state read. Three findings organize the results: upper delta attention reduces observed seed variation, an input-gradient intervention partially reverses that reduction, and lower delta attention causes much less degradation than lower state attention while remaining necessary at inference. Upper state attention also reduces seed variation and is included as a central control. Unless marked BEST, results use the checkpoint after 40,000 optimizer updates. Accuracy is measured at the final input position. SDs are sample

Figure 2: Matched training-seed outcomes for the seven-seed upper-layer comparison at LAST (40k updates). Each line connects models with the same training seed. The models use , and OFF sets the correction scale to zero at inference on the same weights. SG blocks the raw-update Q/K/V input gradients through correction attention during training. The upper state comparator widens the last read window to 40. At , upper state has both a higher mean and a lower sample standard deviation than upper ON ( versus ). Input-SG changes upper delta accuracy to . OFF closely follows ON within each training condition; performance degrades substantially at .
standard deviations across training seeds, in percentage points, not confidence intervals. Chance accuracy is 20%.
5.1 Upper attention reduces seed variation; the delta effect persists after removal
Table 3: Upper-layer comparison over seven seeds (42–48), LAST at 40k updates. Entries are final-position accuracy (%), mean sample standard deviation. ON and OFF share weights; OFF disables only the correction at inference. Input-SG blocks the raw-update Q/K/V gradients through the correction branch. Upper state uses a longer read window and is trained separately.
| Condition | ||||
|---|---|---|---|---|
| Short-only | ||||
| Upper state | ||||
| Upper ON | ||||
| Upper OFF | ||||
| Upper input-SG ON | ||||
| Upper input-SG OFF |
The seven-seed comparison first distinguishes fitting the training-length regime from generalizing beyond it. All four trained configurations have mean length-40 accuracy above 98%, yet their length-80 outcome distributions differ substantially (Table 3). Across seeds 42–48, the local-attention recurrent baseline reaches , compared with for upper delta attention. The sample SD is 63.2% smaller, a factor of 2.71, while the mean differs by +1.60 percentage points. The baseline ranges from 33.11% to 86.62%; delta attention ranges from 61.52% to 80.08%. Several stronger baseline seeds decrease while the two weakest improve (Figure 2). The result is a narrower extrapolation distribution with a similar mean, rather than an improvement for every seed or evidence that training-length fitting previously failed.
The state-attention control shares the reduction. Upper state attention reaches 74.75 ± 6.24%, with both a higher mean and a smaller SD than upper delta attention. Thus reduced seed variation is an observed benefit of both upper-attention designs, not a distinctive property of delta attention. The subsequent comparisons ask how the bounded update route contributes during learning and whether it avoids the severe extrapolation degradation observed with state attention at the lower layer.
Appendix A reports individual outcomes for all seven training seeds.
The upper delta correction is largely dispensable at evaluation. Setting its scale to zero on the same seven checkpoints leaves 70.62 ± 8.60% accuracy. The average ON-OFF difference is 0.20 percentage points and the largest absolute per-seed difference is 1.27 points. The similar mean and reduced spread therefore largely persist without the correction at inference. This is consistent with a contribution during learning whose benefit remains in the trained network.
5.2 Blocking the upper input-gradient route partially reverses the variance reduction
Table 4: Upper delta attention with and without gradients at its raw-update Q/K/V inputs, using seeds 42–48 and constant scale 0.05. ON/OFF entries are length-80 final-position accuracy (%), mean ± sample SD over all seven seeds at LAST 40k. OFF changes only the inference-time correction scale. First 95% and First 99% give optimizer updates to the first ordinary length-40 validation final-position accuracy at or above each threshold, checked every 250 updates on 2,000 fixed examples; these are first crossings, not sustained attainment. The 95% statistics use all seven seeds (42–48); the 99% statistics use the same six reached seeds (42–47) in both rows. Seed 48 does not reach 99% within 40k in either condition and is not imputed. and give the attained counts. Each training seed is counted once.
| Training gradients | ON: L = 80 | OFF: L = 80 | First 95% | First 99% | ||
|---|---|---|---|---|---|---|
| Full gradient | 70.81 ± 8.26 | 70.62 ± 8.60 | 17,750 ± 2,983 | 7/7 | 28,583 ± 5,610 | 6/7 |
| Input-SG | 65.25 ± 12.40 | 65.37 ± 12.20 | 17,179 ± 3,068 | 7/7 | 31,667 ± 2,705 | 6/7 |
We compare upper delta attention with input-SG on the same seven seeds 42–48. Input-SG blocks all raw-update Q/K/V input gradients through correction attention while retaining its forward computation, trainable attention projections, and the main recurrent gradient path (Section 4.3). Parameter count and direct field match; at identical weights and inputs, the forward values are identical.
Length-80 accuracy changes from 70.81 ± 8.26% with full gradients to 65.25 ± 12.40% with input-SG (Table 4). The SD increases by a factor of 1.50 (50.2%), alongside a 5.57-point decrease in the mean. Full gradients yield higher accuracy in six of seven matched seeds (Table 14). This partially reverses the variance reduction: the input-SG SD remains below the matched baseline's 22.42 points, a 44.7% reduction from baseline rather than the full-gradient reduction of 63.2%.
The difference persists after disabling the correction at evaluation: full-gradient and input-SG checkpoints retain 70.62 ± 8.60% and 65.37 ± 12.20%, respectively. This places part of the observed difference in the trained network rather than solely in the correction used for the current
Lower placement | L=80 | seeds 42-44

Figure 3: Lower-layer extrapolation and inference-time correction dependence at (seeds 42–44, LAST 40k). Bars, error bars, and dots show mean accuracy, sample SD, and individual seeds. The state-read configuration is near chance (20%); delta attention with retains substantially more accuracy. Setting the trained correction scale to zero returns accuracy near chance. Lines connect ON/OFF evaluations of the same checkpoint and seed. Recurrent carry remains active in OFF. Length 80 exceeds the direct fields of all four configurations; parameter counts and constraints differ between the state- and delta-attention designs.
prediction. Together, the interventions support a contribution from the additional input-gradient route to learned extrapolation outcomes.
The learning-speed comparison depends on the validation-accuracy threshold. Both conditions reach 95% length-40 validation accuracy in all seven seeds. The first crossing occurs at updates with full gradients and with input-SG (mean sample SD; Table 4). Input-SG reaches this threshold earlier in six of seven seeds and 571 updates earlier on average. Blocking the helper input gradients therefore does not delay mean attainment of 95% accuracy in this comparison.
At 99%, both conditions reach length-40 validation accuracy in the same six seeds, 42–47; seed 48 does not reach it within 40,000 updates in either condition. Among those six seeds, the first crossing occurs at a mean of 28,583 updates with full gradients, versus 31,667 with input-SG, an average delay of 3,083 updates. Five of the six cross later with input-SG; seed 46 crosses earlier. Nonattainment is reported separately rather than imputed or included as a crossing time. The SD of the 99% first-crossing time is smaller with input-SG (2,705 versus 5,610 updates). A more uniform threshold-crossing time therefore coexists with greater variation in extrapolation accuracy. Learning speed, training-time variability, and extrapolation variability are distinct outcomes. Individual crossings and BEST sensitivity appear in Appendix E.
5.3 Lower delta attention causes less extrapolation degradation than state attention
The lower-layer comparison tests the update route at a placement where a long state read severely degrades an otherwise learnable recurrent task. For seeds 42–44, the baseline reaches at length 80, while lower state attention reaches , near chance. Lower delta attention with reaches (Figure 3). Its mean is 43.20 percentage points above lower state attention, while remaining 8.46 points below the baseline. The corresponding mean decrease for lower state attention is 51.66 points. Thus the bounded update design exhibits substantially less extrapolation degradation in this placement.
The lower correction remains functionally necessary. Setting the correction scale to zero on the same lower-delta checkpoints reduces accuracy to 22.56 ± 5.70%, a loss of 40.04 percentage points. The recurrent carry and all other trained weights remain active. Consequently, the smaller degradation cannot be explained by a model that simply ignores its correction: the trained network depends strongly on it at inference. This differs from the upper-layer removal result. The full placement and removal sweeps appear in Appendices A and C.
Lower input-SG reaches 66.28 ± 14.05% with the correction and 29.88 ± 15.23% without it. Its advantage over lower state attention and its removal sensitivity therefore persist without the additional attention-input gradient route. The lower result cannot be attributed solely to that route. In combination with the upper intervention, it supports examining both the forward correction and its gradient connections as placement-dependent contributors to recurrent learning.
Scope of the three findings. The findings concern length-80 generalization under the stated task and training budget. Performance degrades substantially at longer lengths, and checkpoint selection can change the mean ordering (Appendix B). All-layer corrections have mixed effects (Appendix D). Scheduled upper removal and training-time correction diagnostics are supplementary analyses in Appendices E and F. The combined evidence motivates a learning aid that can reduce observed seed variation while causing less damage in the lower placement; it does not establish a universal placement or a unique internal mechanism.
6 Discussion and limitations
Recurrent memory requires learning useful updates. Our motivation is to maintain and revise information over an extended task through recurrent memory. Latent compression methods such as AutoCompressors show that useful summaries can be learned with a language-model objective without human compression targets [13]. Repeatedly integrating new observations into a summary is a recurrent computation, but providing a recurrent state does not ensure that useful writes and updates are easy to learn. The information written now may only affect a prediction much later, making temporal credit assignment a central training problem [2, 14]. The present study investigates an update-level learning aid for that problem, using length generalization as a diagnostic of learned recurrent behavior.
Attention can assist learning and offer alternative solutions. An attention route can connect distant computations directly while also allowing a model to solve training examples without maintaining a reusable state update. DAT demonstrates shortcut reliance and impaired length generalization in jointly trained hybrids; SWAX shows that wider attention windows can weaken long-context memorization [4, 5]. These findings motivate the hypothesis that learning assistance and competition with recurrent computation can coexist. Tang et al. [11] observe query-dependent aggregation rather than incremental state tracking in the studied language models. Such query-time aggregation (QTA) may reduce pressure to learn ongoing memory updates when it suffices on the training distribution.
What the results establish. The seven-seed experiment shows a 63.2% reduction in length-80 sample SD with a similar mean for upper delta attention. This concerns variation in extrapolation outcomes among models with high training-length accuracy. Upper state attention has a higher mean and smaller SD, so attention-based assistance is a shared observation rather than a benefit unique to delta attention. The research question is how to obtain that assistance while limiting degradation of recurrent generalization. In the matched seven-seed comparison, input-SG lowers mean length-80 accuracy from 70.81% to 65.25% and increases sample SD from 8.26 to 12.40 points. It partially reverses the upper delta reduction, including after correction removal, which supports a role for the additional gradient connection during learning. Improved credit assignment is a plausible explanation, but the experiments do not establish it as the cause of the baseline's seed spread.
The lower comparison diagnoses the coupling to recurrence. Lower state attention performs near chance on a task the baseline can learn and extrapolate, whereas the bounded update design causes much less extrapolation degradation. This comparison remains informative even if an upper-only configuration is preferred in later applications: it tests the helper where the state-read design is most damaging in our experiments. The lower delta correction is actively used, as its removal eliminates most of the length-80 performance. Its advantage over lower state attention also survives input-gradient blocking. Thus a purely backward-shortcut explanation is insufficient; the forward correction, its bounded interface, and learning through the remaining paths can contribute. State-based attention can also influence future recurrence in attentive RNNs [2, 6], and our state-read control can do so through subsequent layers. The relevant distinction is the implemented coupling to the update stream, not a universal claim that state attention has no consequences for future states.
Bounding a correction while retaining temporal connections. In TraceRelay, attention accesses uncorrected proposals, and its output enters the increment that is subsequently accumulated. The correction therefore affects later states within the same layer. Phase coordinates make its per-update bound directly interpretable as an angular displacement. This provides a simple way to restrict the correction available at each step while preserving content-dependent paths among proposals. It may encourage useful uncorrected writes, but the bound does not guarantee that the helper is secondary: small corrections can accumulate, change higher-layer proposals, and be amplified by later projections. Upper OFF retention is consistent with a learning scaffold, yet it also occurs with input-SG, and fixed-scale diagnostics do not show correction amplitudes vanishing. Moreover, the phase carry already has an identity derivative away from wrap boundaries. The proposed route changes available credit-assignment paths; it is not needed to create the first non-vanishing carry gradient.
Toward task-oriented recurrent memory. A prospective design can retain short local attention and use a limited number of bounded update helpers while evaluating whether long state reads provide additional task-level benefits. If sustained task performance can be learned through this route, internal exact retrieval need not dictate the architecture; external retrieval could supply historical details when needed. This is a design objective, not a tested retrieval system. The upper-only and mixed all-layer results motivate selective placement rather than repeating the helper at every depth. Lower corrections change the representations from which higher layers form updates, so multiple helpers may interact even when individually bounded. That explanation remains hypothetical. The next question is whether useful recurrent memory can be learned under a language-model objective; the present experiment does not demonstrate semantic compaction or sustained natural-language task quality.
7 Conclusion
Taken together, our results suggest that strengthening temporal skip connections in memory-write computations is a promising direction for improving credit assignment in recurrent models. Bounded delta attention connects raw update proposals and constrains the correction before it enters recurrence. On prefix-supervised modulo-5, upper delta attention reduces seed variation while retaining a baseline-like mean, and this behavior largely persists after removing the correction at inference. Blocking gradients through the attention inputs partially reverses this effect, supporting the value of feedback paths that reach the computations producing memory writes.
The lower-layer comparison provides complementary evidence: directing bounded attention to updates causes substantially less extrapolation degradation than attending to accumulated state representations. The lower model still relies on its correction at inference, indicating that useful forward corrections and training-time feedback need to be considered together. These findings motivate attention-based shortcuts within the memory-writing process as an alternative to long state reads for assisting recurrent learning. Extending this approach to recurrent memory trained with a language-model objective is a natural next step.
References
[1] Reza Ebrahimi, Michaël Defferrard, Sunny Panchal, and Roland Memisevic. On the “Induction Bias” in sequence models. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 27550–27568. PMLR, 2026. URL https://proceedings.mlr.press/v306/ebrahimi26a.html.
[2] Nan Rosemary Ke, Anirudh Goyal, Olexa Bilaniuk, Jonathan Binas, Michael C. Mozer, Chris Pal, and Yoshua Bengio. Sparse attentive backtracking: Temporal credit assignment through reminding. In Advances in Neural Information Processing Systems, volume 31, 2018. URL https://proceedings.neurips.cc/paper/2018/hash/e16e74a63567ecb44ade5c87002bb1d9-Abstract.html.
[3] Wayne W. M. Soo, Vishwa Goudar, and Xiao-Jing Wang. Training biologically plausible recurrent neural networks on cognitive tasks with long-term dependencies. In Advances in Neural Information Processing Systems, volume 36, 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/file/65ccdfe02045fa0b823c5fa7ffd56b66-Paper-Conference.pdf.
[4] Buu Phan, Reza Ebrahimi, Sanjay Haresh, and Roland Memisevic. Delayed attention training improves length generalization in Transformer-RNN hybrids. arXiv preprint arXiv:2510.00258, 2025. URL https://arxiv.org/abs/2510.00258.
[5] Loïc Cabannes, Maximilian Beck, Gergely Szilvasy, Matthijs Douze, Maria Lomeli, Jade Copet, Pierre-Emmanuel Mazaré, Gabriel Synnaeve, and Hervé Jégou. Short window attention enables long-term memorization. arXiv preprint arXiv:2509.24552, 2025. URL https://arxiv.org/abs/2509.24552v3. Version 3, revised May 2026.
[6] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In International Conference on Learning Representations, 2015. URL https://arxiv.org/abs/1409.0473.
[7] Kazuki Irie, Morris Yau, and Samuel J. Gershman. Blending complementary memory systems in hybrid quadratic-linear transformers. In Advances in Neural Information Processing Systems, volume 38, 2025. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/009e57699fe159424167f3693453e5dd-Abstract-Conference.html.
[8] Martin Arjovsky, Amar Shah, and Yoshua Bengio. Unitary evolution recurrent neural networks. In Proceedings of the 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pages 1120–1128. PMLR, 2016. URL https://proceedings.mlr.press/v48/arjovsky16.html.
[9] Scott Wisdom, Thomas Powers, John R. Hershey, Jonathan Le Roux, and Les Atlas. Full-capacity unitary recurrent neural networks. In Advances in Neural Information Processing Systems, volume 29, 2016. URL https://proceedings.neurips.cc/paper/2016/hash/d9ff90f4000eacd3a6c9cb27f78994cf-Abstract.html.
[10] Antonio Orvieto, Samuel L. Smith, Albert Gu, Anushan Fernando, Caglar Gulcehre, Razvan Pascanu, and Soham De. Resurrecting recurrent neural networks for long sequences. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 26670–26698. PMLR, 2023. URL https://proceedings.mlr.press/v202/orvieto23a.html.
[11] Zilu Tang, Qiao Zhao, Gabriel Franco, Derry Tanti Wijaya, Aaron Mueller, Sebastian Schuster, and Najoung Kim. Do language models track entities across state changes? In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 119466–119503. PMLR, 2026. URL https://proceedings.mlr.press/v306/tang26ah.html.
[12] Ricardo Buitrago Ruiz and Albert Gu. Understanding and improving length generalization in recurrent models. arXiv preprint arXiv:2507.02782, 2025. URL https://arxiv.org/abs/2507.02782v2.
[13] Alexis Chevalier, Alexander Wettig, Anirudh Ajith, and Danqi Chen. Adapting language models to compress contexts. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 3829–3846. Association for Computational Linguistics, 2023. doi: 10.18653/v1/2023.emnlp-main.232. URL https://aclanthology.org/2023.emnlp-main.232/.
[14] Akarsh Kumar and Phillip Isola. Pretraining recurrent networks without recurrence. arXiv preprint arXiv:2606.06479, 2026. URL https://arxiv.org/abs/2606.06479v2. Version 2, revised July 2026.
--- Short-only mean (seeds 42-44 in every panel)

Figure 4: Attention source, placement, and correction scale at evaluation length . State denotes a read window of 40 in one layer; each condition instead keeps read and write windows at 5 and adds a window-40 bounded correction to raw phase increments in the indicated layer. Bars show means, error bars sample standard deviations, and points seeds 42-44 at LAST (40k updates). All placements use the same three seeds, including the upper state and scale-0.05 subset of Table 3. The short-only reference mean is reused across panels. exceeds the short-only, state, and single- direct fields (31, 66, and 71, respectively). Comparisons do not match parameter count, source representation, or correction constraint; the figure therefore does not isolate attention source as the sole causal factor. The dotted gray line is 20% chance accuracy.
A Seed-level results and supplementary placement comparisons
Tables 6 and 7 report the upper-comparison results for all seven seeds 42–48. The supplementary placement, scale, and scaffold comparisons use the same seeds 42–44 for every condition, including upper-layer settings. The baseline and upper rows reuse the corresponding subset of the seven-seed results; they are not additional independent runs. These are paired training-seed comparisons; the common seed controls initialization and training streams as described in the experimental protocol. Pairing does not make different architectures follow the same optimization trajectory.
Figure 4 and Table 5 give the supplementary placement and scale comparisons. With ,
Table 5: Supplementary lower/middle/upper placement comparisons at LAST (40k updates). Values are final-position accuracy in percent, reported as mean sample standard deviation across the same seeds 42–44 in every row. Baseline and upper rows reuse the corresponding subset of Table 3. The state and models are not parameter-matched; Table 2 gives their distinct interventions and direct fields.
| Condition | |||||
|---|---|---|---|---|---|
| Short-only | — | ||||
| Lower state | — | ||||
| Lower | 0.05 | ||||
| Middle state | — | ||||
| Middle | 0.05 | ||||
| Upper state | — | ||||
| Upper | 0.05 |
middle delta attention reaches at length 80. The scale sweep is not monotone:
smaller correction scales do not always improve extrapolation. Upper scale 0.05 was selected for the seed extension because it combined a baseline-like mean with a smaller observed spread.
Table 6: Individual-seed upper-layer final-position accuracies (%), LAST checkpoints. BEST denotes the minimum ordinary length-40 validation cross-entropy within the completed 40k run.
| Seed | Condition | ||||
|---|---|---|---|---|---|
| 42 | Short-only | 98.93 | 83.40 | 58.59 | 34.28 |
| 42 | Upper state | 98.63 | 82.71 | 53.03 | 32.62 |
| 42 | Upper ON | 99.22 | 79.88 | 39.65 | 20.51 |
| 42 | Upper OFF | 99.32 | 79.88 | 39.55 | 20.31 |
| 42 | Upper input-SG ON | 99.22 | 82.03 | 54.49 | 25.39 |
| 42 | Upper input-SG OFF | 99.22 | 81.84 | 54.49 | 25.39 |
| 43 | Short-only | 100.00 | 85.64 | 23.63 | 19.34 |
| 43 | Upper state | 99.71 | 69.24 | 19.04 | 19.92 |
| 43 | Upper ON | 99.90 | 68.46 | 19.53 | 18.16 |
| 43 | Upper OFF | 99.71 | 68.26 | 19.82 | 17.09 |
| 43 | Upper input-SG ON | 98.24 | 66.11 | 22.95 | 20.41 |
| 43 | Upper input-SG OFF | 98.24 | 66.41 | 22.56 | 20.61 |
| 44 | Short-only | 98.34 | 44.14 | 19.53 | 21.78 |
| 44 | Upper state | 100.00 | 78.32 | 20.21 | 19.24 |
| 44 | Upper ON | 98.93 | 65.72 | 17.68 | 19.43 |
| 44 | Upper OFF | 98.83 | 65.14 | 17.58 | 20.12 |
| 44 | Upper input-SG ON | 99.41 | 57.91 | 19.53 | 22.27 |
| 44 | Upper input-SG OFF | 99.41 | 58.30 | 20.12 | 21.97 |
| 45 | Short-only | 99.02 | 86.33 | 53.52 | 25.68 |
| 45 | Upper state | 99.41 | 82.23 | 48.44 | 30.37 |
| 45 | Upper ON | 99.32 | 77.83 | 41.89 | 21.88 |
| 45 | Upper OFF | 99.32 | 78.12 | 42.09 | 22.36 |
| 45 | Upper input-SG ON | 99.32 | 67.87 | 39.45 | 22.07 |
| 45 | Upper input-SG OFF | 99.32 | 68.26 | 39.45 | 21.88 |
| 46 | Short-only | 98.14 | 33.11 | 18.36 | 21.29 |
| 46 | Upper state | 99.71 | 68.16 | 18.85 | 19.63 |
| 46 | Upper ON | 98.83 | 62.21 | 22.46 | 19.53 |
| 46 | Upper OFF | 98.73 | 60.94 | 22.66 | 19.43 |
| 46 | Upper input-SG ON | 99.02 | 50.59 | 19.92 | 21.29 |
| 46 | Upper input-SG OFF | 99.22 | 50.59 | 20.02 | 21.29 |
| 47 | Short-only | 98.44 | 86.62 | 33.01 | 17.68 |
| 47 | Upper state | 96.48 | 72.66 | 26.86 | 19.92 |
| 47 | Upper ON | 99.32 | 80.08 | 55.76 | 28.32 |
| 47 | Upper OFF | 99.32 | 80.27 | 55.57 | 29.00 |
| 47 | Upper input-SG ON | 99.12 | 79.59 | 55.57 | 28.42 |
| 47 | Upper input-SG OFF | 99.22 | 79.20 | 55.96 | 28.22 |
| 48 | Short-only | 98.44 | 65.23 | 26.37 | 20.41 |
| 48 | Upper state | 99.71 | 69.92 | 22.46 | 19.53 |
| 48 | Upper ON | 98.63 | 61.52 | 17.77 | 21.48 |
| 48 | Upper OFF | 98.54 | 61.72 | 17.68 | 20.70 |
| 48 | Upper input-SG ON | 98.54 | 52.64 | 18.85 | 20.80 |
| 48 | Upper input-SG OFF | 98.44 | 53.03 | 18.46 | 21.78 |
B Length and checkpoint sensitivity
Figure 5 shows substantial degradation beyond length 80. At length 160, the seven-seed baseline, upper delta, and upper state means are 33.29%, 30.68%, and 29.84%; at length 320 they are 22.92%, 21.33%, and 23.03%. A small SD near chance should not be read as reliable recurrent generalization. Upper input-SG reaches at length 160 and at length 320. The full-gradient mean advantage at length 80 therefore does not extend uniformly to longer evaluation sequences.
Table 7: Individual-seed upper-layer final-position accuracies (%), BEST checkpoints. BEST denotes the minimum ordinary length-40 validation cross-entropy within the completed 40k run.
| Seed | Condition | ||||
|---|---|---|---|---|---|
| 42 | Short-only | 99.32 | 86.82 | 59.57 | 34.96 |
| 42 | Upper state | 98.93 | 83.20 | 55.18 | 32.52 |
| 42 | Upper ON | 99.32 | 86.13 | 50.78 | 28.61 |
| 42 | Upper OFF | 99.32 | 86.04 | 51.07 | 28.61 |
| 42 | Upper input-SG ON | 99.12 | 79.00 | 57.13 | 33.50 |
| 42 | Upper input-SG OFF | 99.22 | 79.39 | 56.84 | 33.79 |
| 43 | Short-only | 100.00 | 87.01 | 25.39 | 18.55 |
| 43 | Upper state | 99.61 | 71.58 | 21.88 | 20.21 |
| 43 | Upper ON | 100.00 | 76.27 | 21.68 | 18.07 |
| 43 | Upper OFF | 100.00 | 75.39 | 21.97 | 17.87 |
| 43 | Upper input-SG ON | 99.02 | 55.57 | 23.14 | 19.73 |
| 43 | Upper input-SG OFF | 98.93 | 55.57 | 23.24 | 20.21 |
| 44 | Short-only | 99.51 | 57.71 | 18.65 | 21.09 |
| 44 | Upper state | 99.90 | 78.03 | 20.21 | 18.26 |
| 44 | Upper ON | 99.32 | 58.79 | 18.95 | 18.36 |
| 44 | Upper OFF | 99.41 | 58.50 | 18.36 | 18.65 |
| 44 | Upper input-SG ON | 99.41 | 45.70 | 20.02 | 20.21 |
| 44 | Upper input-SG OFF | 99.41 | 46.97 | 20.70 | 20.31 |
| 45 | Short-only | 99.02 | 88.28 | 54.79 | 26.86 |
| 45 | Upper state | 99.22 | 85.55 | 52.93 | 32.52 |
| 45 | Upper ON | 99.32 | 78.32 | 43.95 | 21.97 |
| 45 | Upper OFF | 99.32 | 78.42 | 44.14 | 22.75 |
| 45 | Upper input-SG ON | 99.12 | 67.68 | 39.26 | 21.78 |
| 45 | Upper input-SG OFF | 99.12 | 67.58 | 38.87 | 21.09 |
| 46 | Short-only | 99.22 | 36.82 | 18.16 | 21.29 |
| 46 | Upper state | 99.32 | 69.92 | 18.65 | 18.95 |
| 46 | Upper ON | 98.83 | 62.21 | 22.46 | 19.53 |
| 46 | Upper OFF | 98.73 | 60.94 | 22.66 | 19.43 |
| 46 | Upper input-SG ON | 99.02 | 43.65 | 20.70 | 21.29 |
| 46 | Upper input-SG OFF | 99.02 | 44.63 | 20.31 | 21.29 |
| 47 | Short-only | 99.41 | 89.94 | 33.59 | 19.73 |
| 47 | Upper state | 99.02 | 85.55 | 42.48 | 19.73 |
| 47 | Upper ON | 99.41 | 79.98 | 54.00 | 25.10 |
| 47 | Upper OFF | 99.41 | 79.88 | 53.42 | 25.20 |
| 47 | Upper input-SG ON | 99.12 | 75.68 | 52.44 | 28.22 |
| 47 | Upper input-SG OFF | 99.12 | 75.39 | 52.44 | 28.12 |
| 48 | Short-only | 98.83 | 77.83 | 21.97 | 20.41 |
| 48 | Upper state | 99.71 | 68.75 | 21.88 | 17.48 |
| 48 | Upper ON | 98.73 | 60.64 | 16.02 | 21.09 |
| 48 | Upper OFF | 98.63 | 60.64 | 16.50 | 20.41 |
| 48 | Upper input-SG ON | 98.63 | 64.84 | 17.38 | 18.95 |
| 48 | Upper input-SG OFF | 98.63 | 64.84 | 17.58 | 18.95 |
Checkpoint selection also changes the mean comparison. Using each run’s minimum in-distribution validation-cross-entropy checkpoint, the length-80 means are 74.92% for the baseline and 71.76% for upper delta attention, with SDs of 20.20 and 10.96 points. The reduced spread persists, but the baseline-like mean at the final checkpoint does not imply a mean advantage under every checkpoint rule. Upper input-SG reaches 61.73 ± 13.90% at the validation-selected BEST checkpoints, compared with 71.76 ± 10.96% for full gradients; the length-80 mean decrease and SD increase therefore also appear under this checkpoint rule in the seven-seed comparison.
BEST uses only in-distribution validation cross-entropy. No extrapolation metric selects a checkpoint, and runs may reach BEST at different steps.
Table 8: Individual-seed lower-layer comparisons at LAST 40k. Values are final-position accuracy (%).
| Condition | Seed | ||||
|---|---|---|---|---|---|
| State | 42 | 98.34 | 19.73 | 18.36 | 20.21 |
| State | 43 | 98.34 | 18.85 | 20.31 | 17.29 |
| State | 44 | 98.44 | 19.63 | 21.97 | 21.39 |
| 42 | 99.12 | 68.07 | 22.66 | 19.34 | |
| 43 | 99.41 | 46.78 | 18.75 | 23.05 | |
| 44 | 98.83 | 44.53 | 19.43 | 19.34 | |
| 42 | 99.41 | 81.93 | 31.93 | 19.53 | |
| 43 | 96.39 | 54.10 | 20.61 | 22.46 | |
| 44 | 99.32 | 53.12 | 21.48 | 19.92 | |
| 42 | 98.93 | 74.61 | 29.00 | 18.65 | |
| 43 | 96.88 | 64.26 | 17.48 | 19.73 | |
| 44 | 99.12 | 48.93 | 21.68 | 22.07 |
Table 9: Individual-seed middle-layer comparisons at LAST 40k. Values are final-position accuracy (%).
| Condition | Seed | ||||
|---|---|---|---|---|---|
| State | 42 | 99.02 | 61.23 | 20.31 | 19.73 |
| State | 43 | 99.02 | 69.53 | 19.53 | 20.02 |
| State | 44 | 99.02 | 68.46 | 21.00 | 21.00 |
| 42 | 99.51 | 78.32 | 40.43 | 19.43 | |
| 43 | 95.12 | 51.86 | 16.89 | 21.19 | |
| 44 | 99.41 | 78.32 | 17.97 | 20.80 | |
| 42 | 99.22 | 75.88 | 39.84 | 27.44 | |
| 43 | 99.51 | 74.12 | 20.90 | 19.73 | |
| 44 | 98.44 | 49.41 | 21.19 | 20.02 | |
| 42 | 99.51 | 86.52 | 57.03 | 31.35 | |
| 43 | 99.02 | 79.59 | 23.93 | 18.46 | |
| 44 | 98.83 | 65.43 | 21.58 | 19.34 |
Table 10: Individual-seed upper-layer comparisons at LAST 40k. Values are final-position accuracy (%). Seeds 42–44 are shown for every condition to match the lower/middle comparisons; upper state and scale 0.05 reuse a subset of Table 3.
| Condition | Seed | ||||
|---|---|---|---|---|---|
| State | 42 | 98.63 | 82.71 | 53.03 | 32.62 |
| State | 43 | 99.71 | 69.24 | 19.04 | 19.92 |
| State | 44 | 100.00 | 78.32 | 20.21 | 19.24 |
| 42 | 99.41 | 70.80 | 48.93 | 24.41 | |
| 43 | 100.00 | 86.23 | 21.09 | 17.58 | |
| 44 | 99.51 | 62.21 | 20.61 | 21.19 | |
| 42 | 99.41 | 75.78 | 54.79 | 28.42 | |
| 43 | 97.66 | 42.48 | 19.63 | 19.43 | |
| 44 | 99.22 | 59.57 | 18.26 | 20.02 | |
| 42 | 99.22 | 79.88 | 39.65 | 20.51 | |
| 43 | 99.90 | 68.46 | 19.53 | 18.16 | |
| 44 | 98.93 | 65.72 | 17.68 | 19.43 |

Figure 5: Seven-seed upper-layer results across evaluation lengths at LAST. Left: mean final-position accuracy with one sample standard deviation shaded and clipped to [0,100]. Right: the same standard deviations in percentage points. The training-length boundary is 40; all displayed longer lengths exceed the relevant direct fields. A small spread near chance is not evidence of successful recurrence. Distinct colors, line styles, and markers identify conditions; OFF uses open markers. At , upper state, upper , and upper input-SG have smaller sample SDs than the short-only reference. The full-gradient advantage over input-SG at length 80 does not extend uniformly to longer lengths.
Table 11: Seven-seed checkpoint-selection sensitivity. LAST is the primary fixed-budget endpoint; BEST is selected by ordinary length-40 validation cross-entropy, not by extrapolation performance. Entries are accuracy (%), mean sample standard deviation. OFF is evaluated on the corresponding ON checkpoint.
| Condition | LAST: | BEST: | LAST: | BEST: |
|---|---|---|---|---|
| Short-only | ||||
| Upper state | ||||
| Upper ON | ||||
| Upper OFF | ||||
| Upper input-SG ON | ||||
| Upper input-SG OFF |
C Correction removal across placements and scales
OFF sets the trained correction scale to zero and keeps the recurrent carry and all other trained weights active. This intervention uses the same evaluation examples as ON. It is not a separately trained model without the auxiliary route. The contrast between the larger lower-layer losses and small upper-layer changes shows that removal behavior depends on placement and scale. It does not prove that every individual prediction or hidden trajectory is unchanged when aggregate accuracy is retained.
D All-layer corrections
All three layers receive a window-40 delta-attention module. The constant schedules use scale 0.05 (A) or 0.02 (B). The decaying schedule (C) holds 0.05 through step 24,000, decreases it

Figure 6: Inference-time correction removal across placement and scale, using the same LAST weights before and after removal. Bars show means over the same seeds 42–44 in every panel; error bars show sample standard deviations. Upper scale 0.05 uses the corresponding three-seed subset of Table 3. OFF sets but retains recurrent phase inheritance and every local read/write operation. The effect depends strongly on placement: lower-layer models can depend on the correction even at , whereas upper-layer ON and OFF results are close. This intervention diagnoses dependence on the learned correction at inference; it does not establish how training would behave without that correction.
Table 12: Inference-time correction removal across placement and scale at LAST. Mean accuracy (%) sample standard deviation over seeds 42–44. OFF sets the correction scale to zero while retaining the trained parameters, recurrent inheritance, and local read/write paths. Upper scale 0.05 uses the same three seeds as the other settings, a subset of Table 3.
| Placement | ON: | OFF: | ON: | OFF: | |
|---|---|---|---|---|---|
| Lower | 0.2 | ||||
| Lower | 0.1 | ||||
| Lower | 0.05 | ||||
| Middle | 0.2 | ||||
| Middle | 0.1 | ||||
| Middle | 0.05 | ||||
| Upper | 0.2 | ||||
| Upper | 0.1 | ||||
| Upper | 0.05 |
linearly to zero at step 36,000, and trains the remaining 4,000 steps with zero correction. This scheduled removal differs from evaluation-only OFF on the constant-scale checkpoints.
At length 80, constant scale 0.05 and the decaying schedule yield and . Constant scale 0.02 reaches . On the same seeds 42–44, upper-only

Figure 7: Supplementary all-layer correction experiments (seeds 42–44, LAST 40k). A and B keep scales 0.05 and 0.02 constant in all three layers. C starts at 0.05, decays linearly from step 24k to 36k, and is already zero at LAST; its scheduled and forced-OFF evaluations therefore coincide. With nonzero correction, the direct field is 151: is within that field, while is beyond it. With correction disabled the direct field is 31. Bars, error bars, and points show means, sample standard deviations, and seeds. B reaches 74.12% at , within its direct field, and 30.53% at ; the corresponding short-only means are 71.06% and 33.92%. Increasing the number of correction layers does not uniformly improve extrapolation.
Table 13: Supplementary all-layer experiments at LAST 40k, seeds 42–44. Every layer has a window-40 correction branch. C decays linearly between steps 24k and 36k and has zero correction at LAST. Its scheduled and OFF rows are therefore identical. Entries are mean accuracy (%) ± sample standard deviation.
| Schedule | Evaluation | ||||
|---|---|---|---|---|---|
| A: Constant 0.05 | Scheduled | ||||
| A: Constant 0.05 | OFF | ||||
| B: Constant 0.02 | Scheduled | ||||
| B: Constant 0.02 | OFF | ||||
| C: 0.05, decay to 0 | Scheduled | ||||
| C: 0.05, decay to 0 | OFF |
scale 0.05 reaches (Table 5); these supplementary all-layer experiments do not establish a consistent improvement in both accuracy and spread.
The direct field spans 151 positions with active corrections and returns to 31 with zero correction. Thus length-80 accuracy alone cannot establish use of recurrent carry in the active all-layer designs. The schedule changes both correction strength and direct access; these comparisons do not isolate attention count or exhaust possible schedules.
E Scaffold ablations: seeds, sensitivity, and measurement checks
Table 14 gives all seven upper input-gradient outcomes at both validation-accuracy thresholds. All seven seeds reach 95% in both conditions; the two seed-48 nonattainments at 99% are reported separately. The supplementary scaffold tables and length curves use seeds 42–44 for every condition. Upper fixed/input-SG reuse this subset of the seven-seed results to allow comparisons with upper decay and lower input-SG on the same training seeds. The learning diagnostics also use seeds 42–44.
Table 14: Matched seven-seed upper input-gradient intervention. Accuracies (%) are ordinary length-80 final-position scores at LAST 40k; ON/OFF share each trained checkpoint. The last four columns give optimizer updates to the first ordinary length-40 validation final-position accuracy of at least 95% or 99%, checked every 250 updates on 2,000 fixed examples. All seven seeds reach 95% in both conditions; seed 48 does not reach 99% in either condition. These are first crossings, not sustained attainment. A Not reached entry denotes nonattainment within the common budget. Input-SG blocks the helper input gradients while retaining trainable attention projections and the main recurrent route.
| Seed | δ ON | SG ON | δ OFF | SG OFF | δ: 95% | SG: 95% | δ: 99% | SG: 99% |
|---|---|---|---|---|---|---|---|---|
| 42 | 79.88 | 82.03 | 79.88 | 81.84 | 17,750 | 15,500 | 29,500 | 33,000 |
| 43 | 68.46 | 66.11 | 68.26 | 66.41 | 13,250 | 21,250 | 21,250 | 32,750 |
| 44 | 65.72 | 57.91 | 65.14 | 58.30 | 19,250 | 18,000 | 28,500 | 33,250 |
| 45 | 77.83 | 67.87 | 78.12 | 68.26 | 14,750 | 12,000 | 24,500 | 26,250 |
| 46 | 62.21 | 50.59 | 60.94 | 50.59 | 20,500 | 18,750 | 37,750 | 33,000 |
| 47 | 80.08 | 79.59 | 80.27 | 79.20 | 17,250 | 15,500 | 30,000 | 31,750 |
| 48 | 61.52 | 52.64 | 61.72 | 53.03 | 21,500 | 19,250 | Not reached | Not reached |
Table 15: Supplementary training-path ablations using the same seeds 42–44 in every row, LAST 40k. Entries are final-position accuracy (%), mean ± sample SD. Input-SG stops gradients at all raw-update Q/K/V inputs of correction attention; the correction and its parameters remain active. Fixed uses scale 0.05. Upper decay reaches zero at 36k, so its ON and OFF endpoints coincide. Upper fixed/input-SG reuse the corresponding three-seed subset of Table 4. Upper fixed is an instrumented repeat and lower fixed reuses completed runs; neither adds independent seeds.
| Condition | ON: L = 40 | ON: L = 80 | OFF: L = 80 |
|---|---|---|---|
| Upper fixed | |||
| Upper input-SG | |||
| Upper decay | |||
| Lower input-SG | |||
| Lower fixed |
(a) Upper ablations

(b) Lower ablations
Figure 8: Length sensitivity of the scaffold ablations at LAST (40k), using the same seeds 42–44 for every curve. Lines show means; bands show one sample SD clipped to [0,100]. The short-only, lower-state, and lower-fixed controls reuse completed runs. Upper fixed/input-SG use the corresponding three-seed subset of Table 4. All settings degrade substantially beyond length 80. Upper decay has zero correction at evaluation; the other delta curves use their trained scale of 0.05. No configuration is selected using these extrapolation scores.
Table 16: Individual-seed scaffold results for the same seeds 42–44 in every condition. Accuracy (%) uses the fixed LAST test set at . The last column is the first ordinary validation final-position accuracy of at least 99%, checked every 250 updates on 2,000 examples. It is a first crossing, not sustained attainment; “Not reached” refers to this validation threshold within 40k, not failure on every evaluation.
| Condition | Seed | ON | OFF | First 99% (step) |
|---|---|---|---|---|
| Upper fixed | 42 | 79.88 | 79.88 | 29,500 |
| Upper fixed | 43 | 68.46 | 68.26 | 21,250 |
| Upper fixed | 44 | 65.72 | 65.14 | 28,500 |
| Upper input-SG | 42 | 82.03 | 81.84 | 33,000 |
| Upper input-SG | 43 | 66.11 | 66.41 | 32,750 |
| Upper input-SG | 44 | 57.91 | 58.30 | 33,250 |
| Upper decay | 42 | 82.52 | 82.52 | 30,750 |
| Upper decay | 43 | 75.88 | 75.88 | 21,250 |
| Upper decay | 44 | 63.38 | 63.38 | 31,500 |
| Lower input-SG | 42 | 79.69 | 47.46 | 32,500 |
| Lower input-SG | 43 | 67.48 | 21.58 | 31,250 |
| Lower input-SG | 44 | 51.66 | 20.61 | Not reached |
Table 17: Length and checkpoint sensitivity for the scaffold ablations, using the same seeds 42–44 in every row. Entries are final-position accuracy (%), mean sample SD. BEST is selected solely by ordinary length-40 validation cross-entropy. Upper decay is already at zero scale at every selected BEST checkpoint.
| Condition | LAST: | LAST: | BEST: | BEST: |
|---|---|---|---|---|
| Upper fixed | ||||
| Upper input-SG | ||||
| Upper decay | ||||
| Lower input-SG |
Scheduled upper-only removal. Table 15 includes upper decay, which finishes at at length 80 after 4,000 updates with zero correction. This supports planned removal in the tested upper configuration. The result differs from the all-layer decay mean of 52.64% but does not establish an optimal schedule. Lower input-SG also depends on its correction within the training lengths: OFF reduces its length-40 accuracy to .
Every training run completes 40,000 updates. Instrumented fixed repeats add diagnostic measurements without adding independent training seeds. Frozen per-seed endpoint and diagnostic records support all tables and curves. The source audit checks shared evaluation fingerprints, correction bounds, completed budgets, and unchanged training random-number streams. The upper-fixed and upper-decay model checkpoints and data streams are identical at initialization and update 24,000. The seven-seed upper input-SG audit verifies completed budgets, matching evaluation fingerprints, and matching model/training settings. Its raw metrics and source hashes are frozen alongside the other evidence.
For the supplementary scaffold experiments, Table 16 makes the threshold definition and individual outcomes explicit. The lower input-SG seed 44 does not cross 99% on the ordinary validation set during training; this does not imply that the other metrics or independent final test set fail similarly. Table 17 and Figure 8 report length and checkpoint sensitivity for these supplementary experiments. At length 80, the BEST means for upper decay and lower input-SG are 73.96% and 66.50%, respectively. All upper-decay BEST checkpoints occur after the scale reaches zero.

(a) Upper: learning curves

(b) Upper: correction magnitude
(c) Upper: effect of removal
(d) Lower input-SG: dependence

Figure 9: Learning diagnostics on 512 fixed length-40 validation examples at 24 checkpoints. Bold lines average seeds 42–44; thin lines show individual seeds. (a) ON aligned cross-entropy. (b) Actual correction RMS, including the scheduled scale. (c) The per-seed absolute ON-OFF cross-entropy difference, averaged after taking the absolute value; the vertical scale is symmetric-log with a linear region below . (d) Lower input-SG remains strongly dependent on its forward correction. Shading marks the upper decay interval (24k–36k). Fixed-scale upper corrections remain nonzero while their effect on loss becomes small. Diagnostics do not select checkpoints or control training.
As an additional carry-use check, suppressing recurrent phase inheritance while retaining each run's scheduled correction gives length-80 means of 19.95% for upper decay and 19.92% for lower input-SG. This evaluation-only intervention is distinct from disabling delta attention. It supports reliance on recurrent carry at length 80 without identifying the learned update algorithm. The data and artifact-generation checks are included in the source bundle; no raw model checkpoints are required to rebuild figures.
F Correction magnitude and functional dependence during training
Figure 9 follows the correction during training. On the fixed length-40 probes, upper-fixed correction RMS rises from 0.0251 radians at update 1,000 to 0.0423 at 8,000 and remains 0.0414 at 40,000. It does not naturally decay to zero. Meanwhile, the mean absolute ON-OFF aligned cross-entropy difference falls from 0.00840 at update 1,000 to 0.000123 at 40,000, with intermediate fluctuations. The upper correction can remain numerically substantial relative to its 0.05-radian bound while having little effect on the measured loss. A small absolute loss effect therefore does not require the helper to shrink. This does not establish spontaneous disappearance of the helper or that the uncorrected writes absorb its computation.
Lower input-SG provides a contrasting trajectory. At 40,000 its correction RMS is only 0.0178 radians, smaller than the upper-fixed value, but removing it raises the aligned probe cross-entropy from 0.0186 by 4.1795. Thus larger removal damage does not imply a larger correction. The upper-decay correction and ON-OFF gap become exactly zero at 36k by construction. These diagnostics separate the measured amplitude, the effect of removal, and the imposed schedule; none alone identifies the internal state semantics.