mlsanityData to 14 Oct 2026

In-context superposition: human-like working memory interference in large language models

arXiv 2604.09670 ↗First posted 1 Apr 2026cs.LG cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

Intelligent systems must maintain and manipulate task-relevant information online to adapt to dynamic environments. This capacity, known as working memory, is fundamental to human reasoning. Yet, human working memory is strikingly limited, maintaining only three to four items in a brain with billions of neurons. Surprisingly, large language models (LLMs), despite different substrates and direct access to prior context through attention, exhibit similar working memory limitations. Why should such different systems face analogous constraints? We propose that working memory limitations reflect a general trade-off of shared representations: representational compression and reuse support efficient learning and generalization, but also cause simultaneously active representations to interfere. We show a two-layer transformer trained on a working memory task can solve it perfectly, but diverse trained LLMs exhibit human-like limitations: performance declines with memory load, while retrieval is biased by recency and stimulus statistics. Mirroring humans, working memory performance in LLMs is also associated with broader model capability. Mechanistically, we show that LLMs encode multiple memories in entangled representations --- a condition we call in-context superposition --- and progressively suppress competing content while aligning the target with the readout. Moreover, a causal intervention that suppresses interfering information improves performance. Together, these findings suggest that working memory capacity reflects the ability to select task-relevant information under interference, a computational challenge shared by biological and artificial systems.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 7 of its 35 references that are in the map. First posted on arXiv 1 Apr 2026.

Builds on

7 of 35 references.

References · 7

  1. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  2. 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
  3. 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
  4. 2023Instruction-Following Evaluation for Large Language Modelscited by 1,228
  5. 2022Toy Models of Superpositioncited by 971
  6. 2023Working Memory Capacity of ChatGPT: An Empirical Studycited by 23
  7. 2025Strong Memory, Weak Control: An Empirical Study of Executive Functioning in LLMscited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2023Empowering Working Memory for Large Language Model Agents
  2. 2024Self-Attention Limits Working Memory Capacity of Transformer-Based Models
  3. 2026Memory Retrieval in Transformers: Insights from The Encoding Specificity Principle
  4. 2024Everything Everywhere All at Once: LLMs can In-Context Learn Multiple Tasks in Superposition
  5. 2026Emerging Human-like Strategies for Semantic Memory Foraging in Large Language Models
  6. 2022Rethinking the Role of Scale for In-Context Learning: An Interpretability-based Case Study at 66 Billion Scale
  7. 2026Linguistic properties and model scale in brain encoding: from small to compressed language models
  8. 2025Large Language Models Are Human-Like Internally