Manuscript Offprint

arXiv:2610.11743

TraceRelay: Attention-Aligned Recurrence over Rolling Traces

Sungwoo Goo, Hwi-yeol Yun, Sangkeun Jung

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We present TraceRelay, an attention-aligned recurrent architecture that distributes persistent representations over a rolling sequence of low-dimensional traces. Local right-looking attention forms increments from lower-layer representations; delivery is delayed until all attended inputs are in the causal past. A fixed additive phase recurrence accumulates the delayed increments, and left-looking attention reads the resulting residual-augmented stream. A stride-wise prefix sum supports parallel prefill and bounded-buffer continuation. We study 36 small-model runs on Equal Repeats, bounded Dyck closing-type prediction, and causal Most-Freq generation, using three seeds per setting. At trained length 256, Equal Repeats models with recurrent phase inheritance reach 98.81–99.69% accuracy versus 50.73–51.63% for separately trained variants without inheritance, despite the latter receiving more updates. Accuracy drops sharply at lengths beyond the training range. At the longest evaluated lengths, models with more dimensions in the middle layer's recurrent traces perform better on Dyck (76.34% versus 55.49% close accuracy at length 4096), whereas models with fewer trace dimensions perform better on five-symbol Most-Freq (70.74% versus 55.60% exact generation at length 1024). These contrasting cases motivate further study of how the size of recurrent representations should be chosen for different tasks, without establishing a general rule across tasks or model configurations.

1 Introduction

Attention provides a direct interface to multiple past representations, whereas recurrence transports information through time. The Transformer demonstrated that attention-based sequence computation can be trained without a token-wise recurrent cell [1]. However, full attention incurs quadratic attention arithmetic and a key-value cache that grows with the processed context. Moreover, availability is not utilization: positional sensitivity in Lost in the Middle and the length-dependent failures studied by RULER show that accepting a longer input does not guarantee effective use of it [2, 3]. These findings do not imply that attention bandwidth is irrelevant; they motivate separating accessible history from useful persistent information.

Recurrent and state-space models provide another allocation of that information. Mamba and Mamba-2 demonstrate input-dependent state updates and efficient parallel formulations of structured recurrence [4, 5]. Nevertheless, recurrence and attention need not cooperate automatically. SWAX reports that larger sliding windows can weaken long-term memory learning, while excessively small windows harm tasks benefiting from local context [6]. Thus, removing access and providing unrestricted access can each create difficulties, for different reasons.

We ask a narrower architectural question: can recurrence be organized around attention, so that attention learns what to write and retrieve while the temporal transition remains simple? TraceRelay answers with a rolling trace organization. It forms a candidate update using a short

Code and model checkpoints are available at https://github.com/swgoo/trace_relay.

right context, delivers the update only after a causal delay, accumulates it as a phase increment, and exposes the resulting representation to ordinary left-window attention. Memory formation is available throughout the input stream, rather than being activated only when a downstream query requests recall.

The accompanying design hypothesis is long in temporal reach, narrow in representational bandwidth. A longer read window gives task loss access to intermediate recurrent representations; a narrower projected channel limits the capacity of that same forward path. H-Net offers complementary motivation for non-uniform capacity allocation: it compresses sequence resolution and allocates richer computation to inner stages [7]. Our proposed hierarchy instead preserves the temporal grid while varying trace width and read horizon.

This study contributes the explicit delayed-write/phase-accumulation/left-read graph, its causal and parallel execution account, and a controlled evaluation protocol. The empirical questions are whether phase inheritance contributes beyond the corresponding ablation without inheritance, whether bounded structured state is usable, and whether a compact aggregate can support autoregressive generation.