English

LLMs Are In-Context Bandit Reinforcement Learners

Computation and Language 2025-09-30 v4 Artificial Intelligence Machine Learning

Abstract

Large Language Models (LLMs) excel at in-context learning (ICL), a supervised learning technique that relies on adding annotated examples to the model context. We investigate a contextual bandit version of in-context reinforcement learning (ICRL), where models learn in-context, online, from external reward, instead of supervised data. We show that LLMs effectively demonstrate such learning, and provide a detailed study of the phenomena, experimenting with challenging classification tasks and models of sizes from 500M to 70B parameters. This includes identifying and addressing the instability of the process, demonstrating learning with both semantic and abstract labels, and showing scaling trends. Our findings highlight ICRL capabilities in LLMs, while also underscoring fundamental limitations in their implicit reasoning about errors.

Keywords

Cite

@article{arxiv.2410.05362,
  title  = {LLMs Are In-Context Bandit Reinforcement Learners},
  author = {Giovanni Monea and Antoine Bosselut and Kianté Brantley and Yoav Artzi},
  journal= {arXiv preprint arXiv:2410.05362},
  year   = {2025}
}

Comments

Published at COLM 2025

R2 v1 2026-06-28T19:11:54.738Z