Efficient Multi-objective Prompt Optimization via Pure-exploration Bandits

Donghao Li, Chengshuai Shi, Weijuan Ou, Cong Shen, Jing Yang

Introduction

Prompt engineering has become the de facto method for eliciting the capabilities of Large Language Models (LLMs). However, most automated optimization methods treat prompt selection as a single-objective task, typically focusing solely on maximizing accuracy. In real-world applications, prompt performance is inherently multi-faceted: a prompt might yield highly accurate responses but be excessively wordy, or it might be safe but overly repetitive.

This paper formalizes prompt engineering as a multi-objective pure-exploration bandit problem. By moving beyond simple accuracy-based optimization, the authors address the practical trade-offs inherent in prompt design, such as balancing quality against brevity.

Pareto front of prompts illustrating the trade-off between ROUGE and Brevity scores.

The challenge of multi-objective prompt selection is twofold:

  1. Conflicting Objectives: There is rarely a single "best" prompt. Instead, there exists a Pareto front of prompts representing different optimal trade-offs between competing metrics.
  2. Evaluation Cost: Testing a prompt on a large dataset is computationally expensive and time-consuming. Identifying the best prompts requires operating within a limited "budget" of LLM queries.

To bridge this gap, the authors apply the theory of multi-objective bandits to prompt selection, enabling users to either find the best prompt that satisfies specific constraints or recover the entire set of optimal trade-offs efficiently.

Methodology

The authors cast prompt selection into the pure-exploration bandit framework. In this setup, each candidate prompt acts as an "arm," and "pulling" an arm corresponds to evaluating that prompt on a data sample.

To solve this, they introduce two novel algorithms:

  • GENSEC (Generalized Successive Elimination under Constraints): Designed for Best Feasible Prompt Identification. It iteratively eliminates prompts that are either statistically unlikely to meet user-defined constraints or unlikely to beat the current best-performing prompt.
  • GENPSI (Generalized Pareto Set Identification): Designed for Pareto Prompt Set Recovery. It utilizes an empirical "Pareto gap" metric to prune prompts that are strictly dominated by others across all objectives.

Crucially, unlike "vanilla" bandits that treat every prompt as an independent entity, the authors employ Structured Rewards. By leveraging prompt embeddings (e.g., from GPT-3.5 or PCA-reduced features) and using Linear or MLP-based models, the algorithms capture correlations between prompts. This allows the system to infer the performance of an untested prompt based on its semantic similarity to previously evaluated ones.

Experimental Setup

The framework was evaluated on two standard text summarization benchmarks:

  • XSum: Focused on extreme, one-sentence summarization.
  • CNN/DailyMail: Focused on multi-sentence article summaries.

The researchers used LLaMA-3-8B and Gemma-7B as the target models. The evaluation focused on two primary conflicting objectives: ROUGE-L F1 (for content accuracy) and a custom Brevity Score (to penalize excessive length).

Key Results and Insights

The bandit-based approaches demonstrated significant improvements over standard baselines, establishing a principled framework for multi-objective prompt optimization.

Performance comparison of structured bandit algorithms (CSR, MLP-CSR) versus uniform sampling across different models and datasets.
  • Superior Recovery in Constrained Settings: In the "Best Feasible" task, GENSEC successfully recovered 80–90% of the utility of the true optimal prompt. In stark contrast, the standard uniform sampling baseline only managed 20–50% under the exact same evaluation budget.
  • Hypervolume Gains for Pareto Sets: For Pareto set identification, GENPSI recovered over 90% of the hypervolume (a metric capturing both the quality and diversity of the trade-off set), outperforming baselines that hovered in the 80% range.
  • The Power of Semantic Structure: The results highlight that prompts live in a structured semantic space. The MLP-based variants (MLP-CSR and MLP-EGE) generally outperformed linear models, indicating that the relationship between a prompt's embedding and its downstream performance is complex and non-linear, but highly exploitable for sample efficiency.
  • Theoretical Efficiency: The authors also provide a new theoretical guarantee for the linear case, showing an error bound that depends on $\log K$ (where $K$ is the number of prompts) rather than the $K^3$ seen in prior work. This represents a massive theoretical improvement in scalability.

Limitations and Future Work

While the proposed framework is highly efficient, it currently focuses on selecting the best prompt from a pre-generated finite pool (e.g., 100–1000 candidates) rather than generating new prompts in a continuous loop. Additionally, the efficiency of the structured bandit approach relies heavily on the quality of the initial prompt embeddings; if the embedding space fails to capture the nuances affecting LLM performance, the benefits of shared structure diminish. Finally, while the underlying mathematics support $m$ objectives, the experiments primarily focused on two. Future work will need to explore more complex scenarios involving safety, fairness, and latency simultaneously.

Summary updated

BibTeX
@inproceedings{li2026efficient,
  author = {Donghao Li and Chengshuai Shi and Weijuan Ou and Cong Shen and Jing Yang},
  title = {{Efficient Multi-objective Prompt Optimization via Pure-exploration Bandits}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=M0n3gtwHNg},
}
Figure