In-Context Learning for Latent Space Bayesian Optimization

Tuan A. Vu, Harri Lähdesmäki, Julien Martinelli
6/8/2026
cs.LGstat.ML

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Bayesian optimization (BO) is a central tool for sample-efficient design, and latent-space Bayesian optimization (LSBO) extends it to structured objects such as molecules and proteins. In parallel, tabular foundation models such as TabPFN and TabICL now achieve state-of-the-art regression performance and are increasingly used as BO surrogates. Because their Bayesian behavior is induced by large synthetic pretraining collections, the composition of this pretraining distribution is crucial. LSBO creates a distinctive mismatch: the induced map from latent code to objective value differs markedly from the regression tasks used to train current in-context models. We address this mismatch by complementing the pretraining stage of tabular foundation model surrogates with synthetic optimization tasks defined on the latent space of a molecular VAE. The continued-pretraining objective features a regularizer that anchors the model to the original checkpoint, preserving its broad regression prior while avoiding overspecialization to the adaptation tasks. On held-out molecular optimization benchmarks, the resulting model achieves strong performance, supporting the relevance of LSBO-specific adaptation for in-context surrogates.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{vu2026incontext,
  title  = {In-Context Learning for Latent Space Bayesian Optimization},
  author = {Tuan A. Vu and Harri Lähdesmäki and Julien Martinelli},
  year   = {2026},
  eprint = {2606.09664},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.09664v1}
}

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

Discussion