Reproduce “Thompson Sampling via Fine-Tuning of LLMs” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Nicolas Menet, Aleksandar Terzić, Michael Hersche, Andreas Krause, Abbas Rahimi

Researchers at IBM Research and ETH Zürich developed Thompson Sampling via Fine-Tuning (TOSFIT), an approach that leverages fine-tuned Large Language Models (LLMs) to directly parameterize the probability of maximality in Bayesian Optimization. This method addresses the challenge of intractable acquisition function maximization in large, unstructured discrete search spaces, achieving state-of-the-art sample and computational efficiency across tasks such as natural language generation, protein design, and quantum circuit synthesis.

Key insights

  • Directly parameterizing the probability of maximality with a fine-tuned generative LLM provides an effective and scalable solution to the acquisition function maximization bottleneck in complex discrete spaces.
  • The inherent prior knowledge from LLM pre-training and precise prompt conditioning is crucial for initializing an effective optimization policy, and this knowledge should be carefully preserved through cautious, low-learning-rate fine-tuning.
  • The uncertainty-aware entropy regularization within TOSFIT's objective promotes a stable exploration-exploitation trade-off, leading to more consistent policy diversity compared to methods with constant or undirected exploration.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.