arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.12197cs.CLcs.AI
收藏

深入审视系统提示词鲁棒性

A Closer Look at System Prompt Robustness

University of California, Berkeley(加州大学伯克利分校)

Norman Mu, Jonathan Lu, Michael Lavery, David Wagner

AI总结:

本文构建基于真实 GPT Store 与 HuggingChat 提示词的评估和微调数据集,检验微调与推理时干预对系统提示词鲁棒性的提升,并指出现有推理模型改进不均衡。

摘要:

系统提示词已成为在聊天和智能体场景中规定 LLM 行为的关键控制界面。开发者依赖系统提示词来指定重要上下文、输出格式、人格、防护栏、内容政策和安全对策,所有这些都要求模型稳健地遵守系统提示词,尤其是在面对相互冲突或对抗性的用户输入时。在实践中,模型常常忘记考虑相关防护栏,或无法化解系统与用户之间相互冲突的要求。在本工作中,我们研究了提升系统提示词鲁棒性的多种方法,基于从 OpenAI 的 GPT Store 和 HuggingFace 的 HuggingChat 收集的提示词,创建了贴近现实的新型评估与微调数据集。我们利用一组新的和现有基准评估模型,实验表明,借助贴近现实的微调数据以及 classifier-free guidance 等推理时干预手段,性能可以得到显著提升。最后,我们分析了 OpenAI 和 DeepSeek 最近发布的推理模型的结果;这些模型在我们研究的基准上展现出令人振奋但并不均衡的改进。总体而言,当前技术仍不足以确保系统提示词鲁棒性,有必要开展进一步研究。

英文摘要:

System prompts have emerged as a critical control surface for specifying the behavior of LLMs in chat and agent settings. Developers depend on system prompts to specify important context, output format, personalities, guardrails, content policies, and safety countermeasures, all of which require models to robustly adhere to the system prompt, especially when facing conflicting or adversarial user inputs. In practice, models often forget to consider relevant guardrails or fail to resolve conflicting demands between the system and the user. In this work, we study various methods for improving system prompt robustness by creating realistic new evaluation and fine-tuning datasets based on prompts collected from from OpenAI's GPT Store and HuggingFace's HuggingChat. Our experiments assessing models with a panel of new and existing benchmarks show that performance can be considerably improved with realistic fine-tuning data, as well as inference-time interventions such as classifier-free guidance. Finally, we analyze the results of recently released reasoning models from OpenAI and DeepSeek, which show exciting but uneven improvements on the benchmarks we study. Overall, current techniques fall short of ensuring system prompt robustness and further study is warranted.

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

↑