mlsanityData to 14 Oct 2026

A Bayesian approach for prompt optimization in pre-trained language models

arXiv 2312.00471 ↗First posted 1 Dec 2023cs.LG cs.AIcited by 4

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

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  2. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  3. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
  4. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
  5. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
  6. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
  7. 2021Towards a Unified View of Parameter-Efficient Transfer Learningcited by 872
  8. 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 689
  9. 2019Scalable Global Optimization via Local Bayesian Optimizationcited by 374
  10. 2022Black-Box Tuning for Language-Model-as-a-Servicecited by 256
  11. 2021High-Dimensional Bayesian Optimization with Sparse Axis-Aligned Subspacescited by 141
  12. 2022GrIPS: Gradient-free, Edit-based Instruction Search for Prompting Large Language Modelscited by 127
16 more
  1. 2018Transforming Question Answering Datasets Into Natural Language Inference Datasetscited by 99
  2. 2016Multi-Information Source Optimizationcited by 84
  3. 2022Local Latent Space Bayesian Optimization over Structured Inputscited by 79
  4. 2022Black-box Prompt Learning for Pre-trained Language Modelscited by 70
  5. 2023Black Box Adversarial Prompting for Foundation Modelscited by 62
  6. 2022BBTv2: Towards a Gradient-Free Future with Large Language Modelscited by 53
  7. 2023Increasing the Scope as You Learn: Adaptive Bayesian Optimization in Nested Subspacescited by 52
  8. 2019Natural Language Understanding with the Quora Question Pairs Datasetcited by 51
  9. 2022TEMPERA: Test-Time Prompting via Reinforcement Learningcited by 50
  10. 2022Bayesian Optimization over Discrete and Mixed Spaces via Probabilistic Reparameterizationcited by 37
  11. 2023Bayesian Optimization over High-Dimensional Combinatorial Spaces via Dictionary-based Embeddingscited by 24
  12. 2023Reliable Gradient-free and Likelihood-free Prompt Tuningcited by 8
  13. 2018A Practitioners' Guide to Transfer Learning for Text Classification using Convolutional Neural Networkscited by 7
  14. 2022On Noisy Evaluation in Federated Hyperparameter Tuningcited by 7
  15. 2021Corpus-Based Paraphrase Detection Experiments and Reviewcited by 5
  16. 2023Joint Composite Latent Space Bayesian Optimizationcited by 5

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 3.

4 papers.