atlas

Research map / Architectures and efficiency / RNNs and normalization

In-Context Learning and Occam's Razor

ICML 2025 · Architectures and efficiency › RNNs and normalization · approach: Layer-wise analysis of language models · 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.

Links in-context learning's next-token prediction loss to prequential coding and Occam's razor, showing ICL meta-learns learners that jointly minimize training error and model complexity, with experiments on synthetic regression/Mastermind/HMM tasks.

Problem

Explaining why in-context learning generalizes well from small data and why standard ML only minimizes training error, lacking a principled way to directly favor simple models (Occam's razor).

Approach

Shows the next-token prediction loss used to train in-context learners equals prequential code length, so meta-training a sequence model with it directly minimizes compression length, i.e., training error plus model complexity; contrasts with a train-risk ICL control that only minimizes training error.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use next-token prediction (prequential ICL) instead of past-token prediction (train-risk ICL)ICL · Linear, sinusoidal, and Mastermind tasks, short contextsgeneralization errorHelped
use next-token prediction (prequential ICL) instead of past-token prediction (train-risk ICL)ICL · Linear, sinusoidal, and Mastermind tasks, large context lengthsgeneralization errorNo clear effect
use next-token prediction (prequential ICL) instead of past-token prediction (train-risk ICL)ICL · HMMgeneralization errorHelped
train an ICL learner on the full sequence rather than only the latter half (ablation)In-context learner · Prequential coding evaluationprequential code lengthHelped
use prequential ICL instead of an SGD-based learnerLearner · All tasks, low-data regimesgeneralization errorHelped
use an SGD-based learner instead of prequential ICLLearner · All tasks, enough training datageneralization errorNo clear effect
use an SGD-based learner instead of prequential ICLLearner · Mastermind, large-data regimegeneralization errorHelped
apply regularization to SGDSGD-based learner · Low-data regimesprequential code lengthHurt
remove the bottleneck from the Transformer (ablation)ICL architecture · Mastermindprequential code lengthHelped
replace the Transformer with an SSM architecture (ablation)ICL architecture · HMMprequential code lengthHelped
use a small task-trained ICL model instead of GPT-4oMastermind predictor · Mastermindprequential code lengthHelped
use a small task-trained ICL model instead of a marginal-distribution baselineMastermind predictor · Mastermindprequential code lengthHelped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic linear regression tasks synthetic sinusoidal regression tasks Mastermind synthetic HMM sequences

Benchmarks: synthetic linear regression synthetic sinusoidal regression Mastermind HMM next-token prediction noisy polynomial regression

Metrics: MSE cross-entropy prequential code length generalization error

Baselines: train-risk ICL SGD-based learner regularized SGD GPT-4o Mamba 1 Mamba 2

Builds on: prequential coding minimum description length memory-based meta-learning

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