Semantics-Behavior Coupled Bayesian Optimization for Efficient Black-Box Prompt Search
| dc.contributor.author | Wu, Ruotian | |
| dc.date.accessioned | 2026-08-19T18:54:58Z | |
| dc.date.issued | 2026-08-19 | |
| dc.date.submitted | 2026-08-07 | |
| dc.description.abstract | Large language models (LLMs) are highly sensitive to prompt design, making prompt optimization important in black-box settings where models are accessible only through API calls. This thesis proposes DualBO, a semantics-behavior coupled Bayesian optimization framework for efficient prompt search. DualBO represents each prompt using two complementary views: a behavioral correctness vector computed on a controlled minibatch, and a semantic embedding of the prompt text. These views are combined in a dynamic Gaussian Process surrogate, where semantic similarity helps reduce uncertainty early in optimization and behavioral evidence provides stronger task alignment as more prompts are evaluated. DualBO also introduces staged strategy-oriented candidate generation, which first generates diverse rewriting strategies and then instantiates them into concrete prompt candidates. This improves search-space coverage compared with direct local rewriting. Experiments on ETHOS, ARC, MMLU-Pro, and HotpotQA using GPT-5.4-mini and DeepSeek-V3.2 show that DualBO consistently improves over semantic-only and behavior-only Bayesian optimization baselines. It is also competitive with reflection-based methods such as Reflexion and ProTeGi while requiring substantially fewer model calls. Overall, this thesis demonstrates that combining semantic smoothness, behavior-grounded task alignment, and diversity-aware candidate generation improves the stability and efficiency of black-box prompt optimization under limited evaluation budgets. | |
| dc.identifier.uri | https://hdl.handle.net/10012/23991 | |
| dc.language.iso | en | |
| dc.pending | false | |
| dc.publisher | University of Waterloo | en |
| dc.subject | Bayesian Optimization | |
| dc.subject | Prompt Optimization | |
| dc.subject | Reflexion | |
| dc.subject | LLM | |
| dc.title | Semantics-Behavior Coupled Bayesian Optimization for Efficient Black-Box Prompt Search | |
| dc.type | Master Thesis | |
| uws-etd.degree | Master of Mathematics | |
| uws-etd.degree.department | David R. Cheriton School of Computer Science | |
| uws-etd.degree.discipline | Computer Science | |
| uws-etd.degree.grantor | University of Waterloo | en |
| uws-etd.embargo.terms | 0 | |
| uws.contributor.advisor | Poupart, Pascal | |
| uws.contributor.affiliation1 | Faculty of Mathematics | |
| uws.peerReviewStatus | Unreviewed | en |
| uws.published.city | Waterloo | en |
| uws.published.country | Canada | en |
| uws.published.province | Ontario | en |
| uws.scholarLevel | Graduate | en |
| uws.typeOfResource | Text | en |