atlas

Research map / Large language models / Language, safety and interpretability

Everything Everywhere All at Once: LLMs can In-Context Learn Multiple Tasks in Superposition

ICML 2025 · Large language models › Language, safety and interpretability · approach: Reasoning mechanisms and failure modes · 0 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.

Shows that LLMs (GPT-3.5, Llama-3, Qwen-1.5) can in-context learn multiple distinct tasks simultaneously in one prompt ("task superposition"), that it emerges even when training on one task at a time, that transformers can express it theoretically, and that convex combinations of task vectors reproduce it.

Problem

Whether LLMs can perform multiple computationally distinct in-context learning tasks at once in a single inference call, and how this capability arises and is represented internally.

Approach

Defines "task superposition": when a prompt mixes in-context examples from several tasks, the model's output probabilities reflect a mixture of those tasks, weighted roughly by the in-context task proportions. The paper shows this empirically in pretrained LLMs, in small GPT-2 models trained one task at a time, constructs a transformer that implements it, and shows task-vector interpolation can re

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
mix in-context examples from multiple tasks in one promptGPT-3.5, Llama-3 70B, and Qwen-1.5 72B · Four task-mixture settingsprobability assigned to correct task outputsHelped
train on one task at a time, then provide mixed-task examples at inferenceGPT-2 trained from scratch · Retrieval tasks and addition tasksprobability assigned to correct task outputsHelped
combine task vectors using a convex combinationLlama-3 8B · Copy tasks and translation tasksprobability assigned to correct task outputsHelped
use task-vector interpolation instead of mixed in-context examplesLlama-3 8B · Copy tasks and translation tasksirrelevant-output probabilityHurt
increase model sizeQwen-1.5 · Six-task numerical transformation settingnumber of task answers in top-6 outputsHelped
increase model sizeQwen-1.5 · Six-task numerical transformation settingKL divergence from in-context task distributionHelped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic retrieval tasks (ret1-ret8) synthetic addition tasks (plus0-plus9) country capital/continent/capitalization prompts multilingual addition prompts copy and add tasks

Benchmarks: synthetic multi-task ICL prompts (addition, translation, country facts, letter tasks)

Metrics: output probability of task answers r (number of tasks in top-K outputs) KL divergence to in-context task distribution

Builds on: task vectors Bayesian in-context learning superposition of simulators

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