Meta-in-context learning in large language models

Julian Coda-Forno, Marcel Binz, Zeynep Akata, M. Botvinick, Jane X. Wang +1 more
2/12/2026

No official code found. Best implementation: juliancodaforno/meta-in-context-learning (6 stars, last commit 2024-04-05).

Abstract

Large language models have shown tremendous performance in a variety of tasks. In-context learning -- the ability to improve at a task after being provided with a number of demonstrations -- is seen as one of the main contributors to their success. In the present paper, we demonstrate that the in-context learning abilities of large language models can be recursively improved via in-context learning itself. We coin this phenomenon meta-in-context learning. Looking at two idealized domains, a one-dimensional regression task and a two-armed bandit task, we show that meta-in-context learning adaptively reshapes a large language model's priors over expected tasks. Furthermore, we find that meta-in-context learning modifies the in-context learning strategies of such models. Finally, we extend our approach to a benchmark of real-world regression problems where we observe competitive performance to traditional learning algorithms. Taken together, our work improves our understanding of in-context learning and paves the way toward adapting large language models to the environment they are applied purely through meta-in-context learning rather than traditional finetuning.

View on arXivView PDF

Code Implementations(1)

61PythonOct 27, 20232 years ago

Similar Papers

Cite this paper

@article{codaforno2026metaincontext,
  title  = {Meta-in-context learning in large language models},
  author = {Julian Coda-Forno and Marcel Binz and Zeynep Akata and M. Botvinick and Jane X. Wang and Eric Schulz},
  year   = {2026},
  eprint = {2305.12907},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2305.12907},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.12907.svg)](https://codeofpaper.com/paper/2305.12907)

Discussion