atlas

Research map / Probabilistic and scientific modeling / Uncertainty and Gaussian processes

In-Context Learning Strategies Emerge Rationally

NeurIPS 2025 · Probabilistic and scientific modeling › Uncertainty and Gaussian processes · approach: Bayesian view of meta-learning · 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.

Proposes a hierarchical Bayesian model that explains in-context learning in Transformers as a posterior-weighted mixture of memorizing and generalizing predictors, with pretraining shifting posterior weights via a loss-complexity tradeoff.

Problem

Why do Transformers trained on mixtures of tasks learn different in-context strategies (memorizing vs. generalizing) and why does the preferred strategy transition with training time and task diversity (transient generalization, task-diversity thresholds)?

Approach

Frames ICL strategies as two Bayesian predictors (memorizing with discrete prior over seen tasks, generalizing with continuous prior over true distribution), and models pretraining as Bayesian posterior updating over them using power-law loss scaling and a Kolmogorov-complexity simplicity prior, yielding a closed-form loss-complexity tradeoff with only three fitted parameters.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase task diversityTransformers trained on task mixtures · Balls & Urns, Linear Regression, and Classificationrelative distance to the generalizing predictorHelped
Train for more steps at middle task diversityTransformers trained on task mixtures · Balls & Urns, Linear Regression, and Classificationrelative distance to the memorizing predictorHelped
Increase MLP widthTransformer · Balls & Urnsrelative distance to the memorizing predictorHelped
Use learning-rate annealingTransformer · Balls & Urns; time to transienceadherence to Bayes-optimal trajectoryHelped
Use learning-rate annealingTransformer · Balls & Urns; later transience pointsrate of progress toward memorizationHurt
Model transience time as a function of task diversityHierarchical Bayesian model · Balls & Urnstime to transienceHelped
Remove the assumed computational constraints from the functional form (ablation)Hierarchical Bayesian model · Transformer next-token predictionsprediction accuracyHurt

Surprising findings

Limitations

Experimental setup

Datasets: synthetic balls and urns sequences synthetic linear regression sequences synthetic binary classification sequences

Benchmarks: synthetic balls and urns synthetic linear regression synthetic binary classification

Metrics: symmetrized KL divergence Euclidean distance R^2 Spearman rank correlation agreement relative distance

Baselines: Linear Interpolation of Algorithms (LIA) dMMSE ridge regression estimator

Builds on: rational analysis power-law scaling of loss Kolmogorov complexity coding theorem linear interpolation of algorithms

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