Open Interpretability Models Contributors Research Posts About

Titans: Learning to Memorize at Test Time

Source

Citation. Ali Behrouz, Peilin Zhong and Vahab Mirrokni, all at Google Research. "Titans: Learning to Memorize at Test Time". arXiv 2501.00663 [cs.LG], v1 31 December 2024. Paper. Preprint, no venue given. The arXiv page lists only v1, and we read v1. The paper links no code and no data. The conclusion says that the authors "intend to make the code we used to train and evaluate our models available soon". The paper has no funding section, no acknowledgements and no statement about tools or help from an LLM. Issue #4846 gives the year as 2024, which agrees with the arXiv date.

Status. Planned. #4782 would use it in its strand on weight-space programming and fast weights, and #5144 asks the question that it bears on most. No code, skill or protocol in this repo depends on it. The maintainer designs any campaign to fix a model, so this page reports evidence and records questions only.

Read. We read the arXiv v1 PDF on 2026-11-19. We extracted its text with pdftotext and read all of it. That covers the abstract, Sections 1 to 6, Tables 1 to 5, the references and Appendices A to C. The model that wrote this page (Claude Opus 5.5) read the text itself, with no subagent. We did not see the figures as images. So the results of Figures 6 to 9 are here only as the body text and the captions give them. That includes BABILong (Figure 6), memory depth (Figures 7 and 8) and throughput (Figure 9). Some equations came out of the extraction with their layout broken. We read them against the text around them. We also read the arXiv abstract page for the version history.

Summary

Claim. A small MLP can act as a long-term memory that learns while the model reads. Gradient steps on a key–value loss write each new token into its weights, with momentum and a forget gate. Combined with attention over a limited window, this memory gives "Titans". The authors report that Titans beat Transformers and recent linear recurrent models on language modelling, recall, time series and DNA tasks.

Method.

Findings, as the source reports them.

Setting Result
340M / 15B tokens, Wiki ppl and mean accuracy of 8 tasks (Table 1) Transformer++ 31.52, 42.92. Gated DeltaNet 27.01, 45.42. LMM 26.18, 46.17. MAC 25.43, 47.36. MAG 25.07, 47.54. MAL 24.69, 46.55
400M / 15B tokens (Table 1) Transformer++ 30.63, 45.64. Gated DeltaNet-H2 24.19, 47.69. LMM 25.03, 47.83. MAC 25.61, 48.65. MAG 23.59, 48.60. MAL 23.93, 47.87
760M / 30B tokens (Table 1) Transformer++ 25.21, 48.69. Gated DeltaNet-H2 19.88, 51.49. LMM 20.04, 51.56. MAC 19.93, 52.51. MAG 18.61, 52.50. MAL 19.07, 50.97
S-NIAH-W at 16K, accuracy (Table 2) TTT 0.0, Mamba2 0.0, DeltaNet 0.0, LMM 80.6, MAC 95.2, MAG 88.2, MAL 90.4
S-NIAH-PK at 16K (Table 2) TTT 88.4, Mamba2 5.4, DeltaNet 71.4, LMM 96.2, MAC 98.4
Ablation from LMM, ppl / reasoning / long context (Table 5) LMM 27.01 / 47.83 / 92.68. Linear memory 28.49 / 46.97 / 85.34. No momentum 28.98 / 45.49 / 87.12. No weight decay 29.04 / 45.11 / 85.60
Ablation, other rows (Table 5) No convolution 28.73 / 45.82 / 90.28. No persistent memory 27.63 / 46.35 / 92.49
Time series, ETTm1 MSE (Table 3) Neural memory 0.358, Simba 0.383, PatchTST 0.387
Genomics, top-1 accuracy (Table 4) Neural memory highest on Enhancer Cohn (75.2) and Enhancer Ens (89.6). HyenaDNA higher on Human Reg. (93.8 against 89.3) and Human OCR Ens. (80.9 against 79.9)
BABILong (Figure 6, text only) "Titans (MAC) outperforms all baselines, including extremely large models, e.g., GPT4." No numbers in the text
Memory depth (§5.5, text only) Deeper memory gives lower perplexity at all lengths, and slower training. No numbers in the text
Context length (abstract, §1, §6) Titans "scale to larger than 2M context window size". No table in the text gives a length above 16K

Where the claims go beyond the evidence

The authors state some limits themselves. A footnote says that v1 aims at "insights/evidences" and that larger models will come in a later version. §5.5 says that deeper memory trains more slowly. §4.3 names MAL's main drawback.

Use in this repo