atlas

Research map / Architectures and efficiency / Attention and transformers

Titans: Learning to Memorize at Test Time

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: State space and recurrent sequence models · 18 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Titans, a family of architectures built on a deep neural long-term memory that learns to memorize at test time via a surprise-driven, momentum-and-decay associative memory update, with three ways to combine it with attention (MAC, MAG, MAL).

Problem

Transformers have quadratic cost and limited context, while linear recurrent models compress long history into small vector or matrix states that cannot hold very long contexts; existing memory designs lack surprise-based updates, forgetting, and deep memory.

Approach

A deep MLP long-term memory is trained in the inner loop at test time to store key-value associations, with surprise defined as the gradient of an associative memory loss, combined with past-surprise momentum and adaptive weight decay; attention acts as short-term memory and the neural memory as long-term memory, combined via MAC, MAG, or MAL variants. Training is parallelized by chunking into mat

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add attention using MAC (ablation)LMM · Long Contextacc: 92.68 -> 97.95Helped
Add attention using MAG (ablation)LMM · Language Modelingppl: 27.01 -> 25.70Helped
Add attention using MAL (ablation)LMM · Reasoningacc: 47.83 -> 47.87No clear effect
Replace deep memory with linear memory (ablation)LMM · Long Contextacc: 92.68 -> 85.34Hurt
Remove convolution (ablation)LMM · Reasoningacc: 47.83 -> 45.82Hurt
Remove momentum from surprise measure (ablation)LMM · Reasoningacc: 47.83 -> 45.49Hurt
Remove weight decay (forgetting mechanism) (ablation)LMM · Language Modelingppl: 27.01 -> 29.04Hurt
Remove persistent memory (ablation)LMM · Reasoningacc: 47.83 -> 46.35Hurt
Use MAC instead of MAGTitans hybrid architecture · Long-context NIAHaccuracyHelped
Increase memory depth (ablation)Neural Memory · Pile sequence modelingperplexityHelped
Increase memory depth (ablation)Neural Memory · Training throughputtokens per secondHurt
Replace Simba's Mamba module with neural memorySimba · ETTm1MSE: 0.383 -> 0.358Helped

Surprising findings

Limitations

Experimental setup

Datasets: FineWeb-Edu Pile subset Wikitext LAMBADA PIQA HellaSwag WinoGrande ARC-e ARC-c SIQA BoolQ RULER S-NIAH

Benchmarks: Wikitext LAMBADA PIQA HellaSwag WinoGrande ARC-e ARC-c SIQA BoolQ RULER S-NIAH BABILong GenomicsBenchmarks

Metrics: perplexity accuracy MSE MAE training throughput

Baselines: Transformer++ RetNet GLA Mamba Mamba2 DeltaNet TTT Gated DeltaNet Samba

Builds on: linear transformers DeltaNet Gated DeltaNet TTT Mamba2 Recurrent Memory Transformer

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy