Saved in:
Bibliographic Details
Main Authors: Ballew, Adam, Wang, Jingbo, Ren, Shaogang
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2510.04384
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917017954549760
author Ballew, Adam
Wang, Jingbo
Ren, Shaogang
author_facet Ballew, Adam
Wang, Jingbo
Ren, Shaogang
contents Bayesian Optimization (BO) has been widely used to efficiently optimize expensive black-box functions with limited evaluations. In this paper, we investigate the use of BO for prompt engineering to enhance text classification with Large Language Models (LLMs). We employ an LLM-powered Gaussian Process (GP) as the surrogate model to estimate the performance of different prompt candidates. These candidates are generated by an LLM through the expansion of a set of seed prompts and are subsequently evaluated using an Upper Confidence Bound (UCB) acquisition function in conjunction with the GP posterior. The optimization process iteratively refines the prompts based on a subset of the data, aiming to improve classification accuracy while reducing the number of API calls by leveraging the prediction uncertainty of the LLM-based GP. The proposed BO-LLM algorithm is evaluated on two datasets, and its advantages are discussed in detail in this paper.
format Preprint
id arxiv_https___arxiv_org_abs_2510_04384
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LLM Based Bayesian Optimization for Prompt Search
Ballew, Adam
Wang, Jingbo
Ren, Shaogang
Artificial Intelligence
Bayesian Optimization (BO) has been widely used to efficiently optimize expensive black-box functions with limited evaluations. In this paper, we investigate the use of BO for prompt engineering to enhance text classification with Large Language Models (LLMs). We employ an LLM-powered Gaussian Process (GP) as the surrogate model to estimate the performance of different prompt candidates. These candidates are generated by an LLM through the expansion of a set of seed prompts and are subsequently evaluated using an Upper Confidence Bound (UCB) acquisition function in conjunction with the GP posterior. The optimization process iteratively refines the prompts based on a subset of the data, aiming to improve classification accuracy while reducing the number of API calls by leveraging the prediction uncertainty of the LLM-based GP. The proposed BO-LLM algorithm is evaluated on two datasets, and its advantages are discussed in detail in this paper.
title LLM Based Bayesian Optimization for Prompt Search
topic Artificial Intelligence
url https://arxiv.org/abs/2510.04384