Pith. sign in

REVIEW 4 cited by

Can In-context Learning Really Generalize to Out-of-distribution Tasks?

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2410.09695 v3 pith:4ZDYVDIJ submitted 2024-10-13 cs.LG cs.AI

Can In-context Learning Really Generalize to Out-of-distribution Tasks?

classification cs.LG cs.AI
keywords tasksabilityin-contextlearncontextdemonstrateempiricalexperiments
verification ladder T0 review T1 audit T2 compute T3 formal T4 reserved
0 comments
read the original abstract

In this work, we explore the mechanism of in-context learning (ICL) on out-of-distribution (OOD) tasks that were not encountered during training. To achieve this, we conduct synthetic experiments where the objective is to learn OOD mathematical functions through ICL using a GPT-2 model. We reveal that Transformers may struggle to learn OOD task functions through ICL. Specifically, ICL performance resembles implementing a function within the pretraining hypothesis space and optimizing it with gradient descent based on the in-context examples. Additionally, we investigate ICL's well-documented ability to learn unseen abstract labels in context. We demonstrate that such ability only manifests in the scenarios without distributional shifts and, therefore, may not serve as evidence of new-task-learning ability. Furthermore, we assess ICL's performance on OOD tasks when the model is pretrained on multiple tasks. Both empirical and theoretical analyses demonstrate the existence of the \textbf{low-test-error preference} of ICL, where it tends to implement the pretraining function that yields low test error in the testing context. We validate this through numerical experiments. This new theoretical result, combined with our empirical findings, elucidates the mechanism of ICL in addressing OOD tasks.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 4 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. The Generalization Spectrum: A Chromatographic Approach to Evaluating Learning Algorithms

    cs.LG 2026-06 unverdicted novelty 7.0

    Introduces the Generalization Spectrum evaluation framework to track per-example generalization across transfer distances in competitive programming tasks.

  2. The Generalization Spectrum: A Chromatographic Approach to Evaluating Learning Algorithms

    cs.LG 2026-06 unverdicted novelty 6.0

    The Generalization Spectrum framework shows RL turns memorization into near-transfer more efficiently than SFT, ICL transfer depends on correspondence, and local gains often fail to expand far-transfer radius.

  3. InPhyRe Discovers: Large Multimodal Models Struggle in Inductive Physical Reasoning

    cs.AI 2025-09 conditional novelty 6.0

    Large multimodal models do far worse when collision videos violate familiar physics, and their small gains come from text exemplars, not the videos.

  4. Is Chain-of-Thought Reasoning of LLMs a Mirage? A Data Distribution Lens

    cs.AI 2025-08 unverdicted novelty 6.0

    CoT reasoning is a brittle mirage governed by distribution discrepancy between training and test data, demonstrated via controlled experiments in the new DataAlchemy environment.