Everything Everywhere All at Once: LLMs can In-Context Learn Multiple Tasks in Superposition
On the map: Mechanistic interpretability → Knowledge and representations inside LLMs
Abstract (arXiv)
Large Language Models (LLMs) have demonstrated remarkable in-context learning (ICL) capabilities. In this study, we explore a surprising phenomenon related to ICL: LLMs can perform multiple, computationally distinct ICL tasks simultaneously, during a single inference call, a capability we term "task superposition". We provide empirical evidence of this phenomenon across various LLM families and scales and show that this phenomenon emerges even if we train the model to in-context learn one task at a time. We offer theoretical explanations that this capability is well within the expressive power of transformers. We also explore how LLMs internally compose task vectors during superposition. Furthermore, we show that larger models can solve more ICL tasks in parallel, and better calibrate their output distribution. Our findings offer insights into the latent capabilities of LLMs, further substantiate the perspective of "LLMs as superposition of simulators", and raise questions about the mechanisms enabling simultaneous task execution.
Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Placed in Knowledge and representations inside LLMs, one of 13 directions in Mechanistic interpretability. Builds on 40 of its 46 references that are in the map. First posted on arXiv 8 Oct 2024.
Builds on
40 of 46 references.
References · 40
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2023Qwen Technical Reportcited by 3,344
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2022Editing Models with Task Arithmeticcited by 1,120
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
- 2022Transformers learn in-context by gradient descentcited by 732
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
- 2023Larger language models do in-context learning differentlycited by 394
- 2023In-Context Learning Creates Task Vectorscited by 312
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
28 more
- 2023Function Vectors in Large Language Modelscited by 308
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 298
- 2023Role-Play with Large Language Modelscited by 294
- 2024Long-context LLMs Struggle with Long In-context Learningcited by 286
- 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
- 2022Can language models learn from explanations in context?cited by 249
- 2023In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steeringcited by 245
- 2022In-context Reinforcement Learning with Algorithm Distillationcited by 190
- 2023Looped Transformers are Better at Learning Learning Algorithmscited by 149
- 2022LIFT: Language-Interfaced Fine-Tuning for Non-Language Machine Learning Taskscited by 148
- 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 118
- 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 118
- 2022Teaching Algorithmic Reasoning via In-context Learningcited by 112
- 2024Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Taskscited by 105
- 2021Statistically Meaningful Approximation: a Case Study on Approximating Turing Machines with Transformerscited by 102
- 2023How Many Pretraining Tasks Are Needed for In-Context Learning of Linear Regression?cited by 96
- 2023In-Context Learning through the Bayesian Prismcited by 83
- 2022Z-ICL: Zero-Shot In-Context Learning with Pseudo-Demonstrationscited by 70
- 2019Superposition of many models into onecited by 64
- 2024Is In-Context Learning in Large Language Models Bayesian? A Martingale Perspectivecited by 57
- 2024Is Mamba Capable of In-Context Learning?cited by 45
- 2024Dual Operating Modes of In-Context Learningcited by 43
- 2024PICLe: Eliciting Diverse Behaviors from Large Language Models with Persona In-Context Learningcited by 29
- 2022DataMUX: Data Multiplexing for Neural Networkscited by 18
- 2024Can MLLMs Perform Text-to-Image In-Context Learning?cited by 13
- 2021Multiversal views on language modelscited by 6
- 2024Superposed Decoding: Multiple Generations from a Single Autoregressive Inference Passcited by 4
- 2024Identifying and Analyzing Performance-Critical Tokens in Large Language Modelscited by 2
Built on by
Citing papers per year: 2024: 1; 2025: 5; 2026: 8.
14 papers.
Sort:
By area:
- 2025MMRAG: Multi-Mode Retrieval-Augmented Generation with Large Language Models for Biomedical In-Context Learningcited by 13
- 2024Practical Considerations for Agentic LLM Systemscited by 9
- 2025Understanding Task Vectors in In-Context Learning: Emergence, Functionality, and Limitationscited by 9
- 2025Just-in-time and distributed task representations in language modelscited by 9
- 2025In-Context Occam's Razor: How Transformers Prefer Simpler Hypotheses on the Flycited by 5
- 2026Regulatory gray areas of LLM Termscited by 2
- 2026Shared Lexical Task Representations Explain Behavioral Variability In LLMscited by 2
- 2025Exploring Task Performance with Interpretable Models via Sparse Auto-Encoderscited by 1
- 2026UsefulBench: Towards Decision-Useful Information as a Target for Information Retrievalcited by 1
- 2026Reconciling In-Context and In-Weight Learning via Dual Representation Space Encodingcited by 0
- 2026TabPFN-MT: A Natively Multitask In-Context Learner for Tabular Datacited by 0
- 2026Distributed Sparse Interventions in Language Modelscited by 0
- 2026MetaSteer: Context-Conditioned, nonlinear Steering via Attention-Projection Adaptation30 Sep 2026
- 2026Your Transformer Can Hold Two Thoughts at Once: Evidence of Linear Superposition in LLMs24 Sep 2026
- 2026Distributed Sparse Interventions in Language Models8 Jul 2026
- 2026TabPFN-MT: A Natively Multitask In-Context Learner for Tabular Data16 May 2026
- 2026Shared Lexical Task Representations Explain Behavioral Variability In LLMs23 Apr 2026
- 2026UsefulBench: Towards Decision-Useful Information as a Target for Information Retrieval17 Apr 2026
- 2026Reconciling In-Context and In-Weight Learning via Dual Representation Space Encoding13 Mar 2026
- 2026Regulatory gray areas of LLM Terms13 Jan 2026
- 2025Just-in-time and distributed task representations in language models28 Aug 2025
- 2025Exploring Task Performance with Interpretable Models via Sparse Auto-Encoders8 Jul 2025
- 2025In-Context Occam's Razor: How Transformers Prefer Simpler Hypotheses on the Fly24 Jun 2025
- 2025Understanding Task Vectors in In-Context Learning: Emergence, Functionality, and Limitations10 Jun 2025
- 2024Practical Considerations for Agentic LLM Systemscited by 9
- 2024Practical Considerations for Agentic LLM Systems5 Dec 2024
- 2025Understanding Task Vectors in In-Context Learning: Emergence, Functionality, and Limitationscited by 9
- 2025Just-in-time and distributed task representations in language modelscited by 9
- 2025In-Context Occam's Razor: How Transformers Prefer Simpler Hypotheses on the Flycited by 5
- 2026Regulatory gray areas of LLM Termscited by 2
- 2026Shared Lexical Task Representations Explain Behavioral Variability In LLMscited by 2
- 2025Exploring Task Performance with Interpretable Models via Sparse Auto-Encoderscited by 1
- 2026UsefulBench: Towards Decision-Useful Information as a Target for Information Retrievalcited by 1
- 2026Reconciling In-Context and In-Weight Learning via Dual Representation Space Encodingcited by 0
- 2026TabPFN-MT: A Natively Multitask In-Context Learner for Tabular Datacited by 0
- 2026Distributed Sparse Interventions in Language Modelscited by 0
- 2026MetaSteer: Context-Conditioned, nonlinear Steering via Attention-Projection Adaptationcited by 0
- 2026MetaSteer: Context-Conditioned, nonlinear Steering via Attention-Projection Adaptation30 Sep 2026
- 2026Distributed Sparse Interventions in Language Models8 Jul 2026
- 2026TabPFN-MT: A Natively Multitask In-Context Learner for Tabular Data16 May 2026
- 2026Shared Lexical Task Representations Explain Behavioral Variability In LLMs23 Apr 2026
- 2026UsefulBench: Towards Decision-Useful Information as a Target for Information Retrieval17 Apr 2026
- 2026Reconciling In-Context and In-Weight Learning via Dual Representation Space Encoding13 Mar 2026
- 2026Regulatory gray areas of LLM Terms13 Jan 2026
- 2025Just-in-time and distributed task representations in language models28 Aug 2025
- 2025Exploring Task Performance with Interpretable Models via Sparse Auto-Encoders8 Jul 2025
- 2025In-Context Occam's Razor: How Transformers Prefer Simpler Hypotheses on the Fly24 Jun 2025
- 2025Understanding Task Vectors in In-Context Learning: Emergence, Functionality, and Limitations10 Jun 2025
Similar, not cited
Close in wording, no citation either way
- 2024Do Large Language Models Have Compositional Ability? An Investigation into Limitations and Scalability
- 2023Concept-aware Training Improves In-context Learning Ability of Language Models
- 2025Illusion or Algorithm? Investigating Memorization, Emergence, and Symbolic Processing in In-Context Learning
- 2025From Compression to Expression: A Layerwise Analysis of In-Context Learning
- 2026Understanding Large Language Models
- 2025Rethinking the Unsolvable: When In-Context Search Meets Test-Time Scaling
- 2025Neither Stochastic Parroting nor AGI: LLMs Solve Tasks through Context-Directed Extrapolation from Training Data Priors
- 2023TART: A plug-and-play Transformer module for task-agnostic reasoning