<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="static/style.xsl"?><OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"><responseDate>2026-11-23T02:38:05Z</responseDate><request verb="GetRecord" identifier="oai:uwspace.uwaterloo.ca:10012/23991" metadataPrefix="dim">https://dspacemainprd01.lib.uwaterloo.ca/server/oai/request</request><GetRecord><record><header><identifier>oai:uwspace.uwaterloo.ca:10012/23991</identifier><datestamp>2026-08-19T18:54:58Z</datestamp><setSpec>com_10012_9924</setSpec><setSpec>com_10012_1</setSpec><setSpec>col_10012_9930</setSpec><setSpec>col_10012_6</setSpec></header><metadata><dim:dim xmlns:dim="http://www.dspace.org/xmlns/dspace/dim" xmlns:doc="http://www.lyncode.com/xoai" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dspace.org/xmlns/dspace/dim http://www.dspace.org/schema/dim.xsd">
   <dim:field mdschema="dc" element="contributor" qualifier="author">Wu, Ruotian</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="accessioned">2026-08-19T18:54:58Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="issued">2026-08-19</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="submitted">2026-08-07</dim:field>
   <dim:field mdschema="dc" element="identifier" qualifier="uri">https://hdl.handle.net/10012/23991</dim:field>
   <dim:field mdschema="dc" element="description" qualifier="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.</dim:field>
   <dim:field mdschema="dc" element="language" qualifier="iso">en</dim:field>
   <dim:field mdschema="dc" element="publisher" lang="en">University of Waterloo</dim:field>
   <dim:field mdschema="dc" element="subject">Bayesian Optimization</dim:field>
   <dim:field mdschema="dc" element="subject">Prompt Optimization</dim:field>
   <dim:field mdschema="dc" element="subject">Reflexion</dim:field>
   <dim:field mdschema="dc" element="subject">LLM</dim:field>
   <dim:field mdschema="dc" element="title">Semantics-Behavior Coupled Bayesian Optimization for Efficient Black-Box Prompt Search</dim:field>
   <dim:field mdschema="dc" element="type">Master Thesis</dim:field>
   <dim:field mdschema="dc" element="pending">false</dim:field>
   <dim:field mdschema="uws-etd" element="degree" qualifier="department">David R. Cheriton School of Computer Science</dim:field>
   <dim:field mdschema="uws-etd" element="degree" qualifier="discipline">Computer Science</dim:field>
   <dim:field mdschema="uws-etd" element="degree" qualifier="grantor" lang="en">University of Waterloo</dim:field>
   <dim:field mdschema="uws-etd" element="degree">Master of Mathematics</dim:field>
   <dim:field mdschema="uws-etd" element="embargo" qualifier="terms">0</dim:field>
   <dim:field mdschema="uws" element="contributor" qualifier="advisor">Poupart, Pascal</dim:field>
   <dim:field mdschema="uws" element="contributor" qualifier="affiliation1">Faculty of Mathematics</dim:field>
   <dim:field mdschema="uws" element="published" qualifier="city" lang="en">Waterloo</dim:field>
   <dim:field mdschema="uws" element="published" qualifier="country" lang="en">Canada</dim:field>
   <dim:field mdschema="uws" element="published" qualifier="province" lang="en">Ontario</dim:field>
   <dim:field mdschema="uws" element="typeOfResource" lang="en">Text</dim:field>
   <dim:field mdschema="uws" element="peerReviewStatus" lang="en">Unreviewed</dim:field>
   <dim:field mdschema="uws" element="scholarLevel" lang="en">Graduate</dim:field>
   <dim:field mdschema="others" element="access-status">open.access</dim:field>
</dim:dim>
</metadata></record></GetRecord></OAI-PMH>