arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.15260cs.LGcs.AIcs.CL
收藏

DRO-InstructZero:面向大语言模型的分布鲁棒提示优化

DRO-InstructZero: Distributionally Robust Prompt Optimization for Large Language Models

Department of Electrical Engineering and Computer Science(电气工程与计算机科学系);Massachusetts Institute of Technology(麻省理工学院)

Yangyang Li

AI总结:

针对提示优化在分布偏移下失效的问题,提出基于分布鲁棒贝叶斯优化的DRO-InstructZero,通过f散度球和鲁棒采集规则提升最坏情况性能,在多项任务上获得显著准确率提升且不损害分布内性能。

摘要:

大语言模型对提示措辞高度敏感。然而,流行的自动提示搜索方法(包括InstructZero)通常因在单一评估分布下优化期望性能,而在分布偏移和对抗性评估下性能下降。因此,在一种设置下有效的提示常常无法迁移到其他设置。为解决此问题,DRO-InstructZero将零样本提示优化形式化为鲁棒贝叶斯优化。具体而言,一个f散度球围绕评估分布定义了一个模糊集,鲁棒采集规则最大化最坏情况下的期望效用,同时保留贝叶斯搜索的查询效率。因此,搜索明确针对分布偏移下的可靠性而非仅平均行为。实验遵循指令归纳协议,在形式改写、代码调试和翻译任务上使用匹配的查询预算。例如,在BIG-Bench信息性到形式化改写任务上,准确率从61.3±0.7%提升至约85-90%,绝对增益约25-30个百分点。此外,自动调试在域偏移下显示约+25个百分点的增益。同时,诸如因果推断等稳定任务仍保持高于96%的准确率,表明在分布内案例上没有损失。此外,改进在不同散度选择和解码温度下保持一致。总体而言,DRO-InstructZero将分布鲁棒优化与提示学习联系起来,为在真实世界不确定性下实现可靠、可迁移的提示对齐提供了一种即插即用且通用的方法。

英文摘要:

Large language models are highly sensitive to prompt wording. However, popular automatic prompt search methods, including InstructZero, often degrade under distribution shift and adversarial evaluation because they optimize expected performance under a single evaluation distribution. Consequently, prompts that work in one setting frequently fail to transfer. To address this, DRO-InstructZero formulates zero-shot prompt optimization as robust Bayesian optimization. Specifically, an f-divergence ball defines an ambiguity set around the evaluation distribution, and a robust acquisition rule maximizes worst-case expected utility while retaining the query efficiency of Bayesian search. Therefore, the search explicitly targets reliability under distribution shift rather than average behavior alone. Experiments follow the instruction-induction protocol with matched query budgets across formality rewriting, code debugging, and translation. For example, on BIG-Bench informative-to-formal rewriting, accuracy improves from 61.3 +/- 0.7% to approximately 85-90%, yielding an absolute gain of about 25-30 points. Moreover, auto-debugging shows about +25-point gains under domain shift. Meanwhile, stable tasks such as cause-and-effect remain above 96%, indicating no loss on in-distribution cases. Furthermore, improvements are consistent across divergence choices and decoding temperatures. Overall, DRO-InstructZero connects distributionally robust optimization with prompt learning, offering a plug-and-play and general approach for reliable, transferable prompt alignment under real-world uncertainty.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑