mlsanityData to 7 Oct 2026

In-Context Function Learning in Large Language Models

arXiv 2602.11863 ↗First posted 12 Feb 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) can learn from a few demonstrations provided at inference time. We study this in-context learning phenomenon through the lens of Gaussian Processes (GPs). We build controlled experiments where models observe sequences of multivariate scalar-valued function samples drawn from known GP priors. We evaluate prediction error in relation to the number of demonstrations and compare against two principled references: (i) an empirical GP-regression learner that gives a lower bound on achievable error, and (ii) the expected error of a 1-nearest-neighbor (1-NN) rule, which gives a data-driven upper bound. Across model sizes, we find that LLM learning curves are strongly influenced by the function-generating kernels and approach the GP lower bound as the number of demonstrations increases. We then study the inductive biases of these models using a likelihood-based analysis. We find that LLM predictions are most likely under less smooth GP kernels. Finally, we explore whether post-training can shift these inductive biases and improve sample-efficiency on functions sampled from GPs with smoother kernels. We find that both reinforcement learning and supervised fine-tuning can effectively shift inductive biases in the direction of the training data. Together, our framework quantifies the extent to which LLMs behave like GP learners and provides tools for steering their inductive biases for continuous function learning tasks.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 28 of its 42 references that are in the map. First posted on arXiv 12 Feb 2026.

Builds on

28 of 42 references.

References · 28

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2025Qwen3 Technical Reportcited by 8,195
  4. 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,678
  5. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  6. 2025Understanding R1-Zero-Like Training: A Critical Perspectivecited by 1,276
  7. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  8. 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
  9. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  10. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  11. 2025SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-trainingcited by 655
  12. 2025Open-Reasoner-Zero: An Open Source Approach to Scaling Up Reinforcement Learning on the Base Modelcited by 450
16 more
  1. 20218-bit Optimizers via Block-wise Quantizationcited by 395
  2. 2023Larger language models do in-context learning differentlycited by 386
  3. 2023Trained Transformers Learn Linear Models In-Contextcited by 331
  4. 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
  5. 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 112
  6. 2023A Theory of Emergent In-Context Learning as Implicit Structure Inductioncited by 86
  7. 2023Understanding In-Context Learning in Transformers and LLMs by Learning to Learn Discrete Functionscited by 62
  8. 2023Meta-in-context learning in large language modelscited by 59
  9. 2024From Words to Numbers: Your Large Language Model Is Secretly A Capable Regressor When Given In-Context Examplescited by 55
  10. 2024LLM Processes: Numerical Predictive Distributions Conditioned on Natural Languagecited by 54
  11. 2024Is In-Context Learning in Large Language Models Bayesian? A Martingale Perspectivecited by 51
  12. 2023Measuring Inductive Biases of In-Context Learning with Underspecified Demonstrationscited by 49
  13. 2023Calibrating Transformers via Sparse Gaussian Processescited by 21
  14. 2024Estimating the Hallucination Rate of Generative AIcited by 20
  15. 2015The Human Kernelcited by 11
  16. 2023Reinforcement Learning Fine-tuning of Language Models is Biased Towards More Extractable Featurescited by 3

Built on by

Not cited yet.