A Bayesian approach for prompt optimization in pre-trained language models
Not on the map. Why?
Abstract (arXiv)
A prompt is a sequence of symbol or tokens, selected from a vocabulary according to some rule, which is prepended/concatenated to a textual query. A key problem is how to select the sequence of tokens: in this paper we formulate it as a combinatorial optimization problem. The high dimensionality of the token space com-pounded by the length of the prompt sequence requires a very efficient solution. In this paper we propose a Bayesian optimization method, executed in a continuous em-bedding of the combinatorial space. In this paper we focus on hard prompt tuning (HPT) which directly searches for discrete tokens to be added to the text input with-out requiring access to the large language model (LLM) and can be used also when LLM is available only as a black-box. This is critically important if LLMs are made available in the Model as a Service (MaaS) manner as in GPT-4. The current manu-script is focused on the optimization of discrete prompts for classification tasks. The discrete prompts give rise to difficult combinatorial optimization problem which easily become intractable given the dimension of the token space in realistic applications. The optimization method considered in this paper is Bayesian optimization (BO) which has become the dominant approach in black-box optimization for its sample efficiency along with its modular structure and versatility. In this paper we use BoTorch, a library for Bayesian optimization research built on top of pyTorch. Albeit preliminary and obtained using a 'vanilla' version of BO, the experiments on RoB-ERTa on six benchmarks, show a good performance across a variety of tasks and enable an analysis of the tradeoff between size of the search space, accuracy and wall clock time.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 28 of its 36 references that are in the map. First posted on arXiv 1 Dec 2023.
Builds on
28 of 36 references.
References · 28
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2021Towards a Unified View of Parameter-Efficient Transfer Learningcited by 872
- 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 689
- 2019Scalable Global Optimization via Local Bayesian Optimizationcited by 374
- 2022Black-Box Tuning for Language-Model-as-a-Servicecited by 256
- 2021High-Dimensional Bayesian Optimization with Sparse Axis-Aligned Subspacescited by 141
- 2022GrIPS: Gradient-free, Edit-based Instruction Search for Prompting Large Language Modelscited by 127
16 more
- 2018Transforming Question Answering Datasets Into Natural Language Inference Datasetscited by 99
- 2016Multi-Information Source Optimizationcited by 84
- 2022Local Latent Space Bayesian Optimization over Structured Inputscited by 79
- 2022Black-box Prompt Learning for Pre-trained Language Modelscited by 70
- 2023Black Box Adversarial Prompting for Foundation Modelscited by 62
- 2022BBTv2: Towards a Gradient-Free Future with Large Language Modelscited by 53
- 2023Increasing the Scope as You Learn: Adaptive Bayesian Optimization in Nested Subspacescited by 52
- 2019Natural Language Understanding with the Quora Question Pairs Datasetcited by 51
- 2022TEMPERA: Test-Time Prompting via Reinforcement Learningcited by 50
- 2022Bayesian Optimization over Discrete and Mixed Spaces via Probabilistic Reparameterizationcited by 37
- 2023Bayesian Optimization over High-Dimensional Combinatorial Spaces via Dictionary-based Embeddingscited by 24
- 2023Reliable Gradient-free and Likelihood-free Prompt Tuningcited by 8
- 2018A Practitioners' Guide to Transfer Learning for Text Classification using Convolutional Neural Networkscited by 7
- 2022On Noisy Evaluation in Federated Hyperparameter Tuningcited by 7
- 2021Corpus-Based Paraphrase Detection Experiments and Reviewcited by 5
- 2023Joint Composite Latent Space Bayesian Optimizationcited by 5
Built on by
Citing papers per year: 2024: 1; 2025: 3.
4 papers.
- 2024Aviary: training language agents on challenging scientific taskscited by 26
- 2025Dynamic Bayesian Optimization Framework for Instruction Tuning in Partial Differential Equation Discoverycited by 1
- 2025Exploring Imbalanced Annotations for Effective In-Context Learningcited by 0
- 2025MALBO: Optimizing LLM-Based Multi-Agent Teams via Multi-Objective Bayesian Optimizationcited by 0
- 2025Dynamic Bayesian Optimization Framework for Instruction Tuning in Partial Differential Equation Discovery31 Dec 2025
- 2025MALBO: Optimizing LLM-Based Multi-Agent Teams via Multi-Objective Bayesian Optimization14 Nov 2025
- 2025Exploring Imbalanced Annotations for Effective In-Context Learning6 Feb 2025
- 2024Aviary: training language agents on challenging scientific tasks30 Dec 2024