English

In-Context Learning for Pure Exploration

Machine Learning 2026-03-03 v3 Artificial Intelligence

Abstract

We study the problem active sequential hypothesis testing, also known as pure exploration: given a new task, the learner adaptively collects data from the environment to efficiently determine an underlying correct hypothesis. A classical instance of this problem is the task of identifying the best arm in a multi-armed bandit problem (a.k.a. BAI, Best-Arm Identification), where actions index hypotheses. Another important case is generalized search, a problem of determining the correct label through a sequence of strategically selected queries that indirectly reveal information about the label. In this work, we introduce In-Context Pure Explorer (ICPE), which meta-trains Transformers to map observation histories to query actions and a predicted hypothesis, yielding a model that transfers in-context. At inference time, ICPE actively gathers evidence on new tasks and infers the true hypothesis without parameter updates. Across deterministic, stochastic, and structured benchmarks, including BAI and generalized search, ICPE is competitive with adaptive baselines while requiring no explicit modeling of information structure. Our results support Transformers as practical architectures for general sequential testing.

Keywords

Cite

@article{arxiv.2506.01876,
  title  = {In-Context Learning for Pure Exploration},
  author = {Alessio Russo and Ryan Welch and Aldo Pacchiano},
  journal= {arXiv preprint arXiv:2506.01876},
  year   = {2026}
}

Comments

Published as a conference paper at ICLR 2026

R2 v1 2026-07-01T02:54:49.590Z