atlas

Research map / Architectures and efficiency / Attention and transformers

Memory Mosaics at scale

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Attention head mechanisms · 1 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.

Scales Memory Mosaics (associative-memory networks) to llama-8B scale (9.9B params, 1T tokens) with three architectural changes (adaptive bandwidth, gated time-variant key extractor, 3-level memory), showing better new-knowledge storage and in-context learning than matched transformers, including transformers trained on 8x more data.

Problem

Whether the compositional and in-context learning advantages of Memory Mosaics, shown only at GPT-2 scale on small synthetic data, persist when scaled to LLM sizes and real-world data.

Approach

Replace transformer attention with associative-memory blocks using symmetric L2-normalized keys, add adaptive kernel bandwidth, a gated time-variant key extractor, and a 3-level memory split into short-term, long-term, and persistent memory; evaluate on persistent-knowledge, new-knowledge (RULER multi-document QA), and in-context classification dimensions.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Memory Mosaics v2 instead of a transformerLarge model · RULER multi-unrelated-documents QA, task-length 32kscore: 41.1 vs 53.4; 12.3%Helped
Use Memory Mosaics v2 instead of a transformerLarge model · Persistent-knowledge benchmarks (13-task avg)average score: 57.1 vs 56.8No clear effect
Train the transformer on 8T rather than 1T tokensTransformer large · RULER multi-unrelated-documents QA, task-length 32kscore: 41.1 -> 46.9Helped
Train the transformer on 8T rather than 1T tokensTransformer · Anonymous-label in-context classificationaccuracyHurt
Remove long-term memory after training (ablation)Memory Mosaics v2 large · Persistent-knowledge benchmarks (13-task avg)average score: 56.8 vs 56.6No clear effect
Add long-term memory (ablation)Memory Mosaics v2 large · Persistent-knowledge benchmarks (6-task avg)average score: 34.9 -> 42.1Helped
Add long-term memory (ablation)Memory Mosaics v2 large · RULER QA, task-length 32kscore: 20.2 -> 53.4Helped
Use stochastic long-term memory size during training (ablation)Memory Mosaics v2 small · RULER QA, task-length 32k, no fine-tuningscore: 15.9 -> 31.7 (+15.8)Helped
Augment the transformer with long-short-term attention (ablation)Transformer · In-context classificationaccuracyNo clear effect
Use Memory Mosaics v2 rather than a transformerLarge model · Semantic-label in-context classificationaccuracy: more than 10%Helped
Provide more demonstration shotsMemory Mosaics v2 · In-context classificationaccuracyHelped
Fine-tune for one mini-batchMemory Mosaics v2 · RULER QA, task-length 32kaccuracy: 22%Helped

Surprising findings

Limitations

Experimental setup

Datasets: diverse pretraining datamix (unnamed) RULER Banking77 Tacred Goemotion

Benchmarks: obqa arc easy winogrande arc challenge piqa boolq hellaswag nq siqa tqa gsm8k mmlu

Metrics: accuracy

Baselines: transformer large transformer small rwkv-v5-7b mamba-2.8b-slimpj llama2-7b mistral-7b-v0.2-base qwen-1.5-7b-base

Builds on: Memory Mosaics transformer llama architecture RULER

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