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 57

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.

What compositional reasoning failures limit large language models despite scale? What training dynamics and scale trigger emergence of reasoning capabilities? Do language models develop actual world models or merely task heuristics? How does synthetic data quality and diversity affect downstream model capabilities? How do neural networks achieve compositional generalization at scale? Does RL create genuinely new reasoning capabilities or refine existing ones? How do agent-learned skills transfer and improve across different tasks? Can prompt-based context override biases that were embedded during pretraining? Why can't prompting alone inject genuinely new knowledge into models? How should agents manage memory granularity to improve long-term performance? How should systems decide whether to retrieve or reason alone? How do recommenders balance exploiting fresh signals against maintaining preference stability? How do spurious versus genuine rewards shape model reasoning and behavior? What trajectory-level metrics beyond task success best evaluate agent performance? What mechanisms preserve shared understanding in evolving conversations? How do pretraining biases affect reward signal effectiveness in RLVR? How should retrieval systems handle complex multi-step reasoning? What role does sparsity play in model behavior and scaling decisions? What makes step-level supervision effective for complex reasoning traces? Can mechanistic interpretability reliably guide practical model design choices? Why can recurrent transformers achieve reasoning capabilities that standard transformers cannot? Why does adding new knowledge through fine-tuning degrade existing capabilities? What training data selection strategies maximize generalization across difficulty levels? Why do token-level mechanisms matter for learning to reason? Can local safety checks guarantee system-level behavioral safety? Why do locally safe actions create system-level safety gaps? Can preference-based training achieve better behavior optimization than supervised fine-tuning alone? Does encoded knowledge in language models actually influence their outputs? Why does memory consolidation cause performance regression in continual learning? Can memory architectures handle ultra-long context better than attention? Can reasoning scale in latent space without tokens?

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 · 191 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