In-Context Learning

Also known as ICL

Overview

In-context learning (ICL) studies how a model can infer a task, rule, or preference from information in its prompt and apply it to new inputs, making adaptation possible without task-specific weight updates. Common approaches include few-shot demonstrations, retrieval and ordering strategies, synthetic-task pretraining for prior-fitted models, and test-time optimization of prompts or memory; evaluations range from synthetic regression and Markov tasks to language, vision, time-series, graph, and robotics benchmarks. Theory and mechanistic studies examine what algorithms attention and recurrent models implement, and how context length, training-task diversity, and architecture affect generalization. A central tension is that models may encode contextual information yet fail to use it reliably: performance can be sensitive to example quality, order, noise, and conflict with pretrained priors, while longer contexts increase inference costs.

Latest papers

CardsList

402 papers64 papers in the last four weeks, up 52% on the four weeks before. 0.4% of all new papers.

  1. Test time training enhances in-context learning of nonlinear functions

    Sep 30, 2025Kento Kuwataka, Taiji SuzukiSingle-Index ModelsTest-Time Training

  2. GraphPFN: A Prior-Data Fitted Graph Foundation Model

    Sep 25, 2025Dmitry Eremeev, Oleg Platonov, Gleb Bazhenov +2Synthetic Data PretrainingIn-Context Learning

  3. Discovering New Theorems via LLMs with In-Context Proof Learning in Lean

    Sep 16, 2025Kazumi Kasaura, Naoto Onda, Yuta Oriike +3Automated Theorem ProvingIn-Context Learning

  4. ICR-RL: Deep Reinforcement Learning via In-Context Regression

    Sep 14, 2025David Schiff, Ofir Lindenbaum, Yonathan EfroniReinforcement LearningIn-Context Learning

  5. LLMs are Bayesian, In Expectation, Not in Realization

    Jul 15, 2025Leon Chlon, Fatima Sheaib, Zein Khamis +3Bayesian InferenceIn-Context Learning

  6. Context Tuning for In-Context Optimization

    Jul 6, 2025Jack Lu, Ryan Teehan, Zhenbang Yang +1Few-Shot LearningIn-Context Learning

  7. InComeS: Integrating Compression and Selection Mechanisms into LLMs for Efficient Model Editing

    May 28, 2025Shuaiyi Li, Zhisong Zhang, Yang Deng +6In-Context LearningModel Editing

  8. In-context Learning vs. Instruction Tuning: The Case of Small and Multilingual Language Models

    Mar 3, 2025David Ponce, Thierry EtchegoyhenMultilingual Language ModelsMultilingual Language Model Evaluation

  9. From Markov to Laplace: How Mamba In-Context Learns Markov Chains

    Feb 14, 2025Marco Bondaschi, Nived Rajaraman, Xiuying Wei +5MambaSelective SSMs

  10. LLM Program Optimization via Retrieval Augmented Search

    Jan 31, 2025Sagnik Anupam, Alexander Shypula, Osbert BastaniLarge Language Model-Guided OptimizationIn-Context Learning

  11. Learning in the Recurrent State: Gradient Descent with Linear Recurrent Networks

    Oct 15, 2024Yudou Tian, Neeraj Mohan Sushma, Harshvardhan Mestha +3In-Context LearningLinear RNNs

  12. From system models to class models: An in-context learning paradigm

    Aug 25, 2023Marco Forgione, Filippo Pura, Dario PigaMeta-LearningIn-Context Learning