α-PFN: Fast Entropy Search via In-Context Learning

Herilalaina Rakotoarison, Steven Adriaensen, Tom Viering, Carl Hvarfner, Samuel Müller +2 more
6/5/2026
4 citations
cs.LG

Official code: automl/AlphaPFN (3 stars, Python, MIT, last commit 2026-06-03).

Abstract

Information-theoretic acquisition functions such as Entropy Search (ES) offer a principled exploration-exploitation framework for Bayesian optimization (BO). However, their practical implementation relies on complicated and slow approximations, i.e., a Monte Carlo estimation of the information gain.

Show full abstract

This complexity can introduce numerical errors and requires specialized, hand-crafted implementations. We propose a two-stage amortization strategy that learns to approximate entropy search-based acquisition functions using Prior-data Fitted Networks (PFNs) in a single forward pass. A first PFN is trained to be conditioned on information about the optima; second, the $α$-PFN is trained to predict the expected information gain by training on information gains measured with the first PFN. The $α$-PFN offers a flexible learned approximation, which replaces the complex heuristic approximations with a single forward pass per candidate, enabling rapid and extensible acquisition evaluation. Empirically, our approach is competitive with state-of-the-art entropy search implementations on synthetic and real-world benchmarks, while accelerating the different entropy search variants across all our experiments, with speed ups over 50x. Source code: https://github.com/automl/AlphaPFN.

View on arXivView PDF

Code Implementations(1)

automl/AlphaPFNOfficial100%
MIT

Fast Entropy Search via In-context Learning

30PythonMay 12, 20266 months agoMIT

Similar Papers

Cite this paper

@article{rakotoarison2026pfn,
  title  = {α-PFN: Fast Entropy Search via In-Context Learning},
  author = {Herilalaina Rakotoarison and Steven Adriaensen and Tom Viering and Carl Hvarfner and Samuel Müller and Frank Hutter and Eytan Bakshy},
  year   = {2026},
  eprint = {2606.07134},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.07134v2}
}

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/2606.07134.svg)](https://codeofpaper.com/paper/2606.07134)

Discussion