Glossary · term

Neural Long-Term Memory (Test-Time Memorization)

Neural long-term memory, introduced in architectures such as Google's Titans, is a differentiable memory module that learns to memorize historical context directly into fast-updating neural weights at inference time using gradient-based surprise signals. Unlike standard attention—which serves as accurate but quadratically costly short-term memory—or fixed linear recurrent states that overwrite older information, a neural memory module updates its parameters more strongly when encountering unexpected inputs and applies weight decay to forget stale data. It is a sequence-modeling architecture for multi-million-token contexts, not an external database or application-layer RAG store.

Training2024-12-31R4Maturity: 2/5

Origin and context

Linear recurrent models and State Space Models (such as Mamba and RWKV) compress history into a fixed-size state vector, struggling when long-range tasks require recalling dense factual details across millions of tokens. Building on Test-Time Training (TTT) layers (Sun et al., 2024), Google Research introduced Titans on 31 December 2024. Titans pairs a short-window attention branch (short-term memory) with a deep multi-layer neural memory module whose weights are updated online during inference via momentum-smoothed gradients of an associative memory loss ("surprise") plus adaptive weight decay.

Sources: s1, s2, s3

Why it matters

Neural long-term memory reframes inference-time context tracking as an online optimization problem with momentum and forgetting. By allocating high capacity to surprising tokens and decaying routine transitions, it bridges the gap between quadratic full attention and fixed-state recurrent models on needle-in-a-haystack and long-horizon reasoning benchmarks.

Sources: s1, s2

Example

In a Memory-as-Context (MAC) Titans block processing a two-million-token genomic or log stream, incoming segments are chunked; the model queries its deep neural memory weights for relevant historical context, runs local softmax attention over the current segment plus retrieved memory tokens, and then updates the neural memory weights using the associative gradient norm of the current segment.

Sources: s1, s3

Maturity and evidence

Neural long-term memory is rated maturity 2 (emerging): it builds on peer-reviewed Test-Time Training research and Google Research’s Titans specification with open community replications, but it has not yet displaced standard transformer + KV-cache or hybrid SSM-attention architectures in mainstream production models.

Sources: s1, s2, s3

Limits and open questions

Updating neural parameters along the sequence dimension at inference time requires specialized chunk-wise parallel scan kernels to utilize GPU tensor cores efficiently, and compressed weight memory still cannot guarantee lossless verbatim quotation of arbitrary spans the way an external RAG index or exact KV cache can.

Sources: s2, s3

Related terms

References

Last updated: 2026-10-19

In the Skills Atlas

This term is also covered in the Skills Atlas as long context modeling skill.

In the Skills Atlas

This term is also covered in the Skills Atlas as agent memory systems skill.

In the Skills Atlas

This term is also covered in the Skills Atlas as transformer architecture skill.

In the Skills Atlas

This term is also covered in the Skills Atlas as state space models skill.

Cite or link to this resource · CC BY 4.0
Free to quote, link, and reuse with attribution

Referencing this analysis in documentation, research, or an engineering write-up? Copy a formatted link or citation below:

Show citation text & canonical URL
Markdown: [Neural Long-Term Memory (Test-Time Memorization) — AI Glossary — Skills Intelligence](https://www.skillsintelligence.tools/glossary/term/neural-long-term-memory)
APA: Skills Intelligence. (2026). Neural Long-Term Memory (Test-Time Memorization) — AI Glossary. Skills Intelligence AI Glossary. Retrieved from https://www.skillsintelligence.tools/glossary/term/neural-long-term-memory