Everything Everywhere All at Once: LLMs can In-Context Learn Multiple Tasks in Superposition
Abstract
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.
Community
We explore a surprising phenomenon related to in-context learning: LLMs can perform multiple, computationally distinct ICL tasks simultaneously during a single inference call, a capability we term "task superposition".
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Task Diversity Shortens the ICL Plateau (2024)
- Training Nonlinear Transformers for Chain-of-Thought Inference: A Theoretical Generalization Analysis (2024)
- In-Context Learning with Representations: Contextual Generalization of Trained Transformers (2024)
- Out-of-distribution generalization via composition: a lens through induction heads in Transformers (2024)
- Revisiting In-context Learning Inference Circuit in Large Language Models (2024)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper