# Memory Mosaics at scale

- **ID:** 1311
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2507.03285
- **Authors:** Jianyu Zhang, Léon Bottou (NYU / FAIR, Meta)
- **Venue:** arXiv 2507.03285v3 (cs.AI), submitted 4 Jul 2025, revised 14 Jan 2026; Oral @ NeurIPS 2025
- **Published:** 2025
- **Source:** x
- **Language:** en
- **Access:** free
- **Topics:** associative memory, attention replacement, in-context learning, new-knowledge storage, kernel regression retrieval
- **Added:** 2026-10-08
- **Verified:** 2026-10-08
- **Page:** https://papers.projxon.ai/entries/1311

## Summary

Memory Mosaics (Zhang et al., 2025) replace transformer attention blocks with networks of associative memories: each unit stores key-value pairs (keys encode the recent past, values the near future) and retrieves via Gaussian kernel regression (fuzzy, soft retrieval), using L2-normalized keys, a symmetric key/query kernel, and no explicit position encoding. Memory Mosaics v2 scales this to 10B size (llama-8B scale) trained on 1T real-world tokens, adding three modifications: adaptive kernel bandwidth scheduled with memory size, a gated time-variant key feature extractor, and a 3-level memory design (short-term, long-term, persistent). The paper evaluates across three dimensions. Memory mosaics v2 only MATCH transformers on training-knowledge storage (first dimension) but significantly outperform them on new-knowledge storage and in-context learning (second and third dimensions): on new-knowledge storage, a 1T-token MM v2 beats a 1T-token transformer by 12.3% (53.4% vs 41.1%), and an 8x-data transformer (8T tokens) still lags by 6.5% (46.9% vs 53.4%); on anonymous-label in-context learning, the 8T transformer lags by a large margin, while on easier semantic-label ICL the 8T transformer matches MM v2. The paper frames this as 'predictive disentanglement' — compositional, in-context behavior achieved in a comparatively transparent way versus transformers. Code: github.com/facebookresearch/MemoryMosaics. Paper is CC BY-NC-ND 4.0 (non-commercial, no-derivatives).

## Research notes

- Discovery: @CrazyShyyt (~1.1K followers, verified) X post 2026-10-08 ~5:33 AM ET (~3.8K views, 98 likes, 86 bookmarks), a hype-framed thread ('might end the transformer era'). The user then shared the direct PDF link https://arxiv.org/pdf/2507.03285, confirming this is the paper to catalog. HONESTY CAVEATS (recorded per the catalog honesty contract): (1) the thread's 'outperformed a traditional Transformer trained on 8T tokens' claim overstates scope — the paper's 1T-vs-8T result applies ONLY to new-knowledge storage and anonymous-label ICL, not general language modeling; on training-knowledge storage MM v2 merely MATCHES transformers, and on semantic-label ICL the 8T transformer catches up; (2) the paper is NOT new — submitted 4 Jul 2025 (v1), revised 14 Jan 2026 (v3), Oral @ NeurIPS 2025 — the thread presents it as fresh 'Meta published' news; (3) 'automatic disentanglement' refers to the paper's narrower 'predictive disentanglement' framing (transparent compositional behavior), not a general solution to disentanglement; (4) like-for-like caveat: the 8T transformer baseline comparison is on the authors' chosen new-task dimensions, and transformers trained on MORE data actually degraded on anonymous-label tasks, suggesting these evals specifically stress transformer weaknesses rather than measuring general capability. Relevance to the user's LLM pretraining: a non-attention architecture claiming 8x data efficiency on new-task learning would matter enormously to his 3:1 SWA:full-attention hybrid stack, BUT the comparison that matters to him — general training-knowledge storage / language modeling — is a TIE, so this is not evidence his stack should change; the regime where MM wins (inference-time new-task learning, few-shot with anonymized labels) is the narrow landing zone. CC BY-NC-ND 4.0 license recorded.

## Similar entries

- [Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attention](https://papers.projxon.ai/entries/564) (paper, #564)
- [Balancing Memory Pathways: Analyzing and Improving Memory Utilization in Hybrid LMs](https://papers.projxon.ai/entries/1282) (paper, #1282)
- [Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modeling](https://papers.projxon.ai/entries/1244) (paper, #1244)
- [Memory Caching: RNNs with Growing Memory](https://papers.projxon.ai/entries/461) (paper, #461)
- [EngramEdit: Decoupled Knowledge Updates in LLMs through Conditional Memory](https://papers.projxon.ai/entries/1319) (paper, #1319)
- [Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories](https://papers.projxon.ai/entries/487) (paper, #487)
