Manuscript Offprint

arXiv:2610.13073

Double-Take: Improving Capacity, Binding, and Selectivity In Long-Context Within Bidirectional Memory

Vakul Raghavan, Utkarsh Grover, Mingyang Mao, Chengwen Wang, Xiaomin Lin

ABSTRACT

Processing a long sequence does not guarantee that distant information remains usable. As context grows, a fixed-size memory must retain many associations, connect information across positions, and preserve relevant structure without being overwhelmed by everything it observes. These are distinct requirements: a memory may store more information without representing the relationships needed for retrieval, and it may transport those relationships without preserving the ones that matter. Thus, the challenge is not simply extending context length, but constructing a memory that remains usable as context grows. We study this problem in large-chunk test-time training (TTT) and identify two basic failures: single-step writes accumulate interference, limiting capacity, while self-associative writes cannot form cross-position bindings. We introduce Double-Take (DT), which repairs these failures with multi-step unpinned updates and cross-position mixing, and adds bidirectional change-sensitive writes for selective retention. Capacity alone leaves end-to-end recall at the 0.10 chance floor; adding binding raises it to 0.92. Trained only on 32 kb genomic contexts, DT reaches 0.927 AUROC at 131 kb and 0.856 near 1 Mb, while transferring zero-shot from human to mouse. Together, these results identify capacity, binding, and selectivity as three requirements for usable long-range memory.

1 INTRODUCTION

Long-context modeling is increasingly measured by how many tokens a model can process, but a large context window does not guarantee that the information inside it remains usable. Long-context language models can lose access to relevant information depending on where it appears in the sequence (Liu et al., 2024), and controlled evaluations show that performance often degrades sharply as context length and retrieval complexity increase (Hsieh et al., 2024). Similar limitations appear in efficient sequence models, where associative recall accounts for a substantial part of the gap with attention-based models (Arora et al., 2024a). Together, these results point to a distinction that context length alone does not capture: processing distant information and remembering it are different problems.

This distinction becomes more important as models scale to sequences that cannot remain explicitly addressable. Full attention preserves direct token-to-token interaction but incurs quadratic cost (Vaswani et al., 2017); efficient architectures instead summarize or compress history through structured sequence operators or recurrent states (Gu & Dao, 2023; Nguyen et al., 2023; Schiff et al., 2024). Once information is compressed, three questions become unavoidable. How many distinct associations can survive as new information arrives? Can the memory preserve a relationship between events that occurred at different positions? And, when the context becomes very large, which of those relationships should remain prominent? Genomics makes all three questions concrete: individual nucleotides can matter, their regulatory partners may lie tens of kilobases to megabases away, and only a small fraction of the intervening sequence may be relevant to that interaction (Rao et al., 2014; Dixon et al., 2012; Zhou & Troyanskaya, 2015). The difficulty is therefore not merely reaching farther, but preserving useful structure while doing so.

Test-time training (TTT) (Sun et al., 2024) offers a natural way to revisit this problem because it replaces a fixed recurrent state with an adaptive fast-weight memory that is updated as the sequence is processed. Large-chunk TTT (LaCT) extends this idea efficiently to long sequences (Zhang et al., 2025). Yet examining what happens when a large chunk is written into that memory exposes the same three questions in a particularly simple form. A single update superposes many associations, so new writes interfere with those already stored. Even if that interference is reduced, same-position key-value writes contain no explicit relationship between different positions. And even if both problems are resolved, transporting every association equally gives the memory no mechanism for distinguishing structure that matters from content that merely occurred. These are three different limitations: capacity, binding, and selectivity.

This observation leads directly to Double-Take (DT). Multi-step unpinned updates allow competing associations to be resolved rather than collapsed into a single write, increasing capacity. Local cross-position mixing exposes relationships before they enter memory, enabling binding. Finally, bidirectional change-sensitive writes expose differences between opposing contexts, providing a mechanism for selective retention. DT therefore follows from a simple view of long-range memory: additional context becomes useful only when a model can retain enough information, relate information across positions, and preserve the relationships that matter. Building on this mechanism we present the following contributions:

• We identify interference-limited capacity and the inability of self-associative writes to form cross-position bindings as two limitations of large-chunk test-time memory.

• We repair capacity with multi-step unpinned updates, enable cross-position binding through local mixing, and introduce bidirectional memory for selective retention.

• We show that DT remains informative more than 30×30\times beyond its training context, directly recruits information outside the local receptive field through its test-time memory, and transfers zero-shot from human to mouse.

References (26)