SYNTHESIS NOTE
Topics›Reasoning Architectures›this note

Why do trajectories matter more than individual examples for in-context learning?

Can language models learn new sequential decision-making tasks from context alone, and if so, what data properties make this possible? This explores why isolated state-action pairs fail where full trajectories succeed.

Synthesis note · 2026-02-22 · sourced from Reasoning Architectures

In-context learning for supervised tasks works by providing a few input-output examples. Naively applying this to sequential decision making (providing a few state-action pairs) fails to enable ICL of new tasks. The key finding: the context must contain full or partial trajectories from the same environment level as the query — not just isolated examples. This property is called trajectory burstiness.

Why the difference matters: In supervised learning, examples can be from different instances — the model learns the function mapping. In sequential decision making, the model must generalize from the same level/environment to handle the wide range of states it may encounter at deployment. A sparse set of state-action pairs doesn't cover the state space; full trajectories do.

Trajectory burstiness is the probability that a given input sequence contains at least two trajectories from the same level. When this property is present in pre-training data, the model acquires the capacity to learn new tasks from demonstrations at inference time without weight updates.

Additional factors that increase ICL performance:

Generalization scope demonstrated: Train/test tasks differ greatly — different states, actions, dynamics, and reward functions. The model generalizes from, e.g., platform games to maze navigation from a handful of expert demonstrations. This is substantially harder than prior work that generalizes across reward function variants of the same environment.

The implication for dataset construction: sequential decision-making ICL requires a data distribution property (trajectory burstiness) that standard language modeling data does not naturally contain. This is a data structural requirement, not just a scale requirement.

This connects to Does training data format shape reasoning strategy more than domain? — here the structural property is at the trajectory level rather than the reasoning step level, but the principle is the same: data structure determines capability.

Inquiring lines that read this note 59

This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.

Do language models encode knowledge that influences generation, or primarily imitate surface patterns? How do curriculum design and feedback approaches affect model learning? How does decomposing tasks into separate stages affect reasoning quality and safety? How does diversity prevent model convergence on superficial patterns? How do neural networks learn compositional structure from training? Does reinforcement learning create genuinely new reasoning capabilities or only refine existing ones? Which reinforcement learning modifications most improve dialogue quality in language models? When do multi-agent systems improve over single frontier models? Does pretraining establish the ceiling for what reward learning can improve? How does fine-tuning trade off accuracy against reasoning quality? What are the fundamental limits of prompting for language models? How does model capacity affect learning performance on diverse downstream tasks? Do accumulated memories help or hurt continual learning in models? What representations best capture screen understanding for task execution? What structural patterns sustain successful multi-turn dialogue and prevent breakdown? How should retrieval strategies adapt to multi-step reasoning demands? How do sequence length and task type interact with sparsity tolerance? What makes process supervision effective for training complex reasoning models? Should agents compress episodic memory or retain raw interaction histories? Can models develop genuine introspective capability, or only mimic it? Can recurrent computation unlock reasoning capabilities that fixed-depth models cannot? Can real-time working alliance measurement improve therapy outcomes? Can AI agents improve their skills through accumulated experience and reuse? Do single-axis benchmarks accurately measure agent capability for real deployment? Why do training associations persist despite contradictory contextual information? What prediction granularity best trains models to generate reliable reasoning? Can mechanistic interpretability methods reliably reveal what models actually know? Should governance of agentic AI systems be runtime or design-time? Do individually safe AI actions create unsafe outcomes in integrated systems? Can latent reasoning match or exceed explicit reasoning performance? Can language models reason beyond surface pattern matching?

Related concepts in this collection 5

This note in its neighbourhood — explore the map, then jump to a related concept in the list below.

Concept map
17 direct connections · 193 in 2-hop network ·dense cluster Open in graph ↗

Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph

your link semantically near linked from elsewhere

Related papers in this collection 8

Papers most semantically related to this note, ranked by cosine similarity in the embedding space.

Original note title

trajectory burstiness — same-level trajectories in context — is required for in-context learning of sequential decision-making across new tasks