Attending to Memory Writes Reduces Seed Variability in Recurrent Length Generalization
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 % accuracy across seven seeds, versus % 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 %, so this benefit is not unique to update-level attention. Disabling the upper delta correction retains %. Second, blocking gradients at the delta-attention inputs changes accuracy to % 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.
Create a lesson
Related papers
Agent-as-a-Verifier: From Scores to Evidence for General Verification
Shared title terminologycs.LGYuxuan Sun, Hao, Chen et al.
On Grokking and the Dynamics of Generalization
Shared title terminologycs.LGMalik Amir
State Space Attention: Learning Context-Dependent Memory Retention
Shared title terminologycs.LGEge Çakar, Cengiz Pehlevan
The Geometry Is the Memory: Task-Density Routing for Continual LoRA
Shared title terminologycs.LGAlireza Heidari, Thomas Veasey, Mariano Tepper
SGD with Large Learning Rates: General Analysis & Improved Rates
Shared title terminologycs.LGKonstantinos Emmanouilidis, Ziqing Xu, Salma Tarmoun et al.
Optimistic Hedge in General-Sum Games: Fundamental Limits and Regret Bounds via Temporal Approximation
Shared title terminologycs.LGYuval Dagan, Nadav Eisen, Liad Erez et al.