Thompson Sampling via Fine-Tuning of LLMs
Not on the map. Why?
Abstract (arXiv)
Bayesian optimization in large unstructured discrete spaces is often hindered by the computational cost of maximizing acquisition functions due to the absence of gradients. We propose a scalable alternative based on Thompson sampling that eliminates the need for acquisition function maximization by directly parameterizing the probability that a candidate yields the maximum reward. Our approach, Thompson Sampling via Fine-Tuning (ToSFiT) leverages the prior knowledge embedded in prompt-conditioned large language models, and incrementally adapts them toward the posterior. Theoretically, we derive a novel regret bound for a variational formulation of Thompson Sampling that matches the strong guarantees of its standard counterpart. Our analysis reveals the critical role of careful adaptation to the posterior probability of maximality -- a principle that underpins our ToSFiT algorithm. Empirically, we validate our method on three diverse tasks: FAQ response refinement, thermally stable protein search, and quantum circuit design. Within a collection of methods covering in-context Bayesian optimization, reinforcement learning, and evolutionary search, ToSFiT exhibits both state-of-the-art sample efficiency and computational efficiency.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 28 of its 63 references that are in the map. First posted on arXiv 15 Oct 2025.
Builds on
28 of 63 references.
References · 28
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2018Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actorcited by 4,885
- 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,926
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,261
- 2017A Tutorial on Thompson Samplingcited by 433
- 2019Scalable Global Optimization via Local Bayesian Optimizationcited by 374
- 2017On Kernelized Multi-armed Banditscited by 352
- 2013Learning to Optimize Via Posterior Samplingcited by 256
- 2022Efficient Training of Language Models to Fill in the Middlecited by 255
- 2013Bayesian Optimization in a Billion Dimensions via Random Embeddingscited by 182
16 more
- 2014An Information-Theoretic Analysis of Thompson Samplingcited by 178
- 2017Batched Large-scale Bayesian Optimization in High-dimensional Spacescited by 117
- 2022More Than a Toy: Random Matrix Models Predict How Real-World Neural Representations Generalizecited by 91
- 2017Parallel and Distributed Thompson Sampling for Large-scale Accelerated Exploration of Chemical Spacecited by 76
- 2019Adaptive and Safe Bayesian Optimization in High Dimensions via One-Dimensional Subspacescited by 73
- 2019No-Regret Bayesian Optimization with Unknown Hyperparameterscited by 51
- 2021Improving black-box optimization in VAE latent space using decoder uncertaintycited by 51
- 2024A Sober Look at LLMs for Material Discovery: Are They Actually Good for Bayesian Optimization Over Molecules?cited by 48
- 2024Qiskit HumanEval: An Evaluation Benchmark For Quantum Code Generative Modelscited by 30
- 2021Diversified Sampling for Batched Bayesian Optimization with Determinantal Point Processescited by 24
- 2025Latent Bayesian Optimization via Autoregressive Normalizing Flowscited by 19
- 2023Probabilistic Inference in Reinforcement Learning Done Rightcited by 11
- 2021Variational Bayesian Optimistic Samplingcited by 7
- 2025Simplifying Bayesian Optimization Via In-Context Direct Optimum Samplingcited by 7
- 2024Optimistic Games for Combinatorial Bayesian Optimization with Application to Protein Designcited by 4
- 2025LITE: Efficiently Estimating Gaussian Probability of Maximalitycited by 3
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026LABO: LLM-Accelerated Bayesian Optimization through Broad Exploration and Selective Experimentationcited by 6
- 2026A Theoretical Analysis of Test-Driven Code Generationcited by 3
- 2026Tree-Structured Synergy of Large Language Models and Bayesian Optimization for Efficient CASHcited by 2
- 2026POETS: Uncertainty-Aware LLM Optimization via Compute-Efficient Policy Ensemblescited by 0
- 2026Agentic Search Spaces for Tabular Machine Learningcited by 0
- 2026Feedback-Calibrated Protein Optimization with Batch-Aligned Tail Arbitrationcited by 0
- 2026Feedback-Calibrated Protein Optimization with Batch-Aligned Tail Arbitration29 Sep 2026
- 2026Agentic Search Spaces for Tabular Machine Learning14 Sep 2026
- 2026LABO: LLM-Accelerated Bayesian Optimization through Broad Exploration and Selective Experimentation21 May 2026
- 2026POETS: Uncertainty-Aware LLM Optimization via Compute-Efficient Policy Ensembles8 May 2026
- 2026A Theoretical Analysis of Test-Driven Code Generation5 Feb 2026
- 2026Tree-Structured Synergy of Large Language Models and Bayesian Optimization for Efficient CASH18 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2024Inference-Aware Fine-Tuning for Best-of-N Sampling in Large Language Models
- 2025Optimal Stopping vs Best-of-N for Inference Time Optimization
- 2025LLMs for Bayesian Optimization in Scientific Domains: Are We There Yet?
- 2026Quantized Evolution Strategies: High-precision Fine-tuning of Quantized LLMs at Low-precision Cost
- 2026Scalable Power Sampling: Unlocking Efficient, Training-Free Reasoning for LLMs via Distribution Sharpening
- 2026Predicting and improving test-time scaling laws via reward tail-guided search
- 2025LLINBO: Trustworthy LLM-in-the-Loop Bayesian Optimization
- 2025Reasoning BO: Enhancing Bayesian Optimization with Long-Context Reasoning Power of LLMs