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

大语言模型能遵守简单规则吗?

Can LLMs Follow Simple Rules?

UC Berkeley(加州大学伯克利分校);Center for AI Safety(人工智能安全中心);Stanford(斯坦福大学);King Abdulaziz City for Science and Technology(阿卜杜勒阿齐兹国王科技城)

Norman Mu, Sarah Chen, Zifan Wang, Sizhe Chen, David Karamardian, Lulwa Aljeraisy, Basel Alomair, Dan Hendrycks, David Wagner

AI总结:

针对现有LLM规则遵循能力评估成本高或不可靠的问题,提出程序化评估框架RuLES,测试发现当前多数模型难守简单规则,简单攻击会大幅提升失败率,并探索了两种改进方向。

摘要:

随着大语言模型(Large Language Models, LLMs)被部署承担越来越多的现实世界职责,能够以可靠的方式规范和约束这些系统的行为变得十分重要。模型开发者可能希望为模型设定明确规则,例如“不生成辱骂性内容”,但这些规则可能被越狱技术绕过。现有的针对大语言模型的对抗攻击与防御评估通常要么需要成本高昂的人工审核,要么依赖不可靠的启发式检查。为解决这一问题,我们提出了规则遵循语言评估场景(Rule-following Language Evaluation Scenarios, RuLES),这是一个用于衡量大语言模型规则遵循能力的程序化框架。RuLES包含14个简单的文本场景,模型被要求在与用户交互的过程中遵守各类规则。每个场景都配有一个程序化评估函数,用于判定模型在对话中是否违反了任何规则。我们对专有模型和开源模型的评估显示,即便在简单的测试用例上,当前几乎所有模型都难以遵循场景规则。我们还证明,简单的优化攻击就足以大幅提升测试用例的失败率。最后,我们探索了两种潜在的改进方向:测试时引导和监督微调。

英文摘要:

As Large Language Models (LLMs) are deployed with increasing real-world responsibilities, it is important to be able to specify and constrain the behavior of these systems in a reliable manner. Model developers may wish to set explicit rules for the model, such as "do not generate abusive content", but these may be circumvented by jailbreaking techniques. Existing evaluations of adversarial attacks and defenses on LLMs generally require either expensive manual review or unreliable heuristic checks. To address this issue, we propose Rule-following Language Evaluation Scenarios (RuLES), a programmatic framework for measuring rule-following ability in LLMs. RuLES consists of 14 simple text scenarios in which the model is instructed to obey various rules while interacting with the user. Each scenario has a programmatic evaluation function to determine whether the model has broken any rules in a conversation. Our evaluations of proprietary and open models show that almost all current models struggle to follow scenario rules, even on straightforward test cases. We also demonstrate that simple optimization attacks suffice to significantly increase failure rates on test cases. We conclude by exploring two potential avenues for improvement: test-time steering and supervised fine-tuning.

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

↑