arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.18196cs.CLcs.LG
收藏

自动提示词生成并不鲁棒:由伪梯度驱动的提示词优化

Auto-Prompt Generation is Not Robust: Prompt Optimization Driven by Pseudo Gradient

Rutgers University(罗格斯大学);Purdue University(普渡大学);Georgia University(佐治亚大学);Wake Forest University(威克森林大学)

Zeru Shi, Zhenting Wang, Yongye Su, Weidi Luo, Hang Gao, Fan Yang, Ruixiang Tang, Yongfeng Zhang

AI总结:

针对自动提示词生成鲁棒性不足的问题,本文构建 PertBench 基准并提出利用扰动类型作为伪梯度信号的无梯度框架 PGO,以提升 LLM 提示词在扰动输入下的稳定性。

摘要:

尽管自动提示词生成方法近期受到广泛关注,但其鲁棒性仍缺乏充分理解。本文介绍 PertBench,这是一个涵盖多种输入扰动的综合基准数据集,旨在系统评估当前自动提示词技术的鲁棒性。分析表明,现有提示词生成策略存在显著脆弱性:即使对提示词进行微小修改,也可能导致模型输出出现明显差异。为解决该问题,我们提出 PGO,这是一种无梯度提示词生成框架,利用扰动类型作为伪梯度信号,引导 LLM 生成更鲁棒的提示词。与仅在干净、结构良好的输入上评估提示词质量的现有方法不同,该方法明确强调在噪声和扰动条件下的鲁棒性。在不同任务和多个 LLM 上的大量实验表明,PGO 在输入扰动下保持性能方面始终优于以往方法。

英文摘要:

While automatic prompt generation methods have recently received significant attention, their robustness remains poorly understood. In this paper, we introduce PertBench, a comprehensive benchmark dataset that includes a wide range of input perturbations, designed to systematically evaluate the robustness of current auto-prompting techniques. Our analysis reveals substantial vulnerabilities in existing prompt generation strategies, where even minor modifications to the prompt can lead to significant differences in model output. To address this issue, we propose PGO, a gradient-free prompt generation framework that leverages perturbation types as pseudo-gradient signals to guide LLMs in producing more robust prompts. In contrast to existing methods that assess prompt quality only on clean, well-structured inputs, our approach explicitly emphasizes robustness under noisy and perturbed conditions. Extensive experiments across diverse tasks and multiple LLMs show PGO consistently outperforms previous methods in maintaining performance under input perturbations.

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

↑