SYNTHESIS NOTE
Topics›LLM Architecture›this note

Can neural memory modules scale language models beyond attention limits?

Can separating short-term attention from adaptive long-term memory allow models to efficiently handle context windows exceeding 2M tokens while maintaining competitive performance?

Synthesis note · 2026-02-22 · sourced from LLM Architecture

Titans (2501.00663) introduces a neural long-term memory module that addresses a fundamental contradiction in linear recurrent models: they are designed for efficiency on long contexts, but long contexts cannot be properly compressed into small fixed-size states.

The architectural insight is that attention and memory serve fundamentally different functions. Attention operates as short-term memory — accurate direct dependency modeling within the current context window, but quadratic cost limits its reach. Neural memory operates as long-term memory — compressed and persistent, memorizing data that is surprising or close to surprising tokens. The memory update mechanism considers the proportion of memory size to data surprise, resulting in adaptive memory management.

Three integration variants are proposed: memory as context (attending to memory alongside current context), memory as gating (memory modulates attention output), and memory as a layer (memory replaces some attention layers). Each variant trades off between integration depth and computational overhead.

The results establish that Titans outperform both standard Transformers (with the same context window) and modern linear recurrent models across language modeling, common-sense reasoning, genomics, and time series. Critically, Titans scale to context windows larger than 2M tokens while showing competitive performance with Transformers that use the entire context — the long-context problem is addressed without the quadratic penalty. The persistent nature of the memory module makes it a natural substrate for Can models precompute answers before users ask questions? — the memory can store precomputed inferences between interactions, and sleep-time processing can populate the memory with anticipated query-relevant information.

Since Can models reason without generating visible thinking tokens?, the Titans architecture offers a complementary path: rather than scaling reasoning depth through recurrent computation, it scales memory breadth through adaptive memorization. Both bypass the limitations of standard attention but along different architectural dimensions.

Miras unifying framework (2504.13173): The "It's All Connected" paper reconceptualizes Transformers, Titans, and modern linear recurrent models as associative memory modules that learn a mapping of keys to values using an internal objective — termed "attentional bias." The paper observes that most existing sequence models use either dot-product similarity or ℓ2 regression objectives as their attentional bias. Miras provides a general framework with four design choices: (i) associative memory architecture, (ii) attentional bias objective, (iii) retention gate, and (iv) memory learning algorithm. Forgetting mechanisms are reinterpreted as retention regularization — providing a principled basis for forget gates across architectures. Three novel sequence models — Moneta, Yaad, and Memora — go beyond existing linear RNNs while maintaining fast parallelizable training. Different Miras configurations yield models with varying strengths: some excel at language modeling, others at commonsense reasoning or recall-intensive tasks. This generalizes the Titans insight: the attention-as-short-term/memory-as-long-term distinction is one instance of a broader design space where attentional bias objective and retention mechanism can be independently varied.

Inquiring lines that read this note 149

This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.

How does offloading cognition to AI assistance affect learning retention? What conversation mechanics enable genuine human-AI communicative participation? How do transformer circuits and attention mechanisms enable or limit reasoning? What explains the gap between LLM semantic understanding and production? How can language models effectively manage long-context memory without quality degradation? Why does consolidated memory sometimes hurt continual learning more than no memory? What are the trade-offs between memory capacity and continuous task learning? What reasoning limitations and biases do language models systematically exhibit? How do diffusion language models compare to autoregressive architectures? How can parameter sparsity improve interpretability while maintaining model capability? What conversational structures and patterns determine dialogue effectiveness and coherence? How do different post-training structures affect learning outcomes? How should test-time compute be allocated adaptively across task difficulties? Do language models learn underlying linguistic structure or merely surface patterns? How do mechanistic features and representations drive model behavior? Does learning articulatory physics explain speech communication superiority? How does model scale affect fine-tuning and downstream task performance? How do benchmark scores relate to real-world task completion? Do language models truly understand their encoded knowledge or merely retrieve patterns? What determines how neural networks organize their internal knowledge representations? What makes context and memory handling unique in persistent AI systems? How can agents learn and retain useful knowledge across diverse environments? What determines whether visible reasoning traces improve task performance? How does scaling test-time compute compare to increasing model size? Can scaling alone produce compositional generalization in neural networks? What determines when personalization helps versus harms model behavior? Does parallel reasoning outperform sequential approaches in reasoning efficiency? Does prompting inject new knowledge into models or activate existing knowledge? Does architectural recurrence enable computational capabilities that fixed-depth models cannot achieve? Does reinforcement learning create new reasoning capabilities or refine existing ones? What distinguishes genuine understanding from correct linguistic performance? How should agent memory systems balance granularity, management, and reuse? How should context management strategies balance efficiency with agent reliability?

Related concepts in this collection 6

This note in its neighbourhood — explore the map, then jump to a related concept in the list below.

Concept map
17 direct connections · 114 in 2-hop network ·medium cluster Open in graph ↗

Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph

your link semantically near linked from elsewhere

Related papers in this collection 8

Papers most semantically related to this note, ranked by cosine similarity in the embedding space.

Original note title

neural memory modules that adaptively memorize surprising tokens complement attention as long-term vs short-term memory — scaling to 2M+ context