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

XSTest:用于识别大语言模型中夸大安全行为的测试套件

XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models

Bocconi University(博科尼大学);University of Oxford(牛津大学);Stanford University(斯坦福大学)

Paul Röttger, Hannah Rose Kirk, Bertie Vidgen, Giuseppe Attanasio, Federico Bianchi, Dirk Hovy

AI总结:

本文提出 XSTest 测试套件,通过 250 条安全提示和 200 条不安全提示系统识别大语言模型中的夸大安全行为,揭示现有模型在安全与有用性平衡上的系统性失效模式。

摘要:

如果没有适当的防护措施,大语言模型会轻易遵循恶意指令并生成有害内容。这一风险推动了红队测试和大规模反馈学习等安全工作,旨在使模型既有用又无害。然而,这两个目标之间存在张力,因为无害性要求模型拒绝执行不安全的提示,从而无法提供帮助。近期的零星证据表明,一些模型可能未能取得良好平衡,以至于即使是明显安全的提示,只要使用了与不安全提示相似的语言或提及敏感话题,也会被拒绝。在本文中,我们引入了一个名为 XSTest 的新测试套件,以系统化的方式识别此类夸大安全(eXaggerated Safety)行为。XSTest 包含 250 条安全提示,涵盖十种提示类型,校准良好的模型不应拒绝执行这些提示;同时包含 200 条不安全提示作为对照,对于大多数应用而言,模型应当拒绝这些提示。我们描述了 XSTest 的构建过程和组成结构,然后利用该测试套件揭示当前最先进语言模型中的系统性失效模式,以及构建更安全语言模型所面临的更广泛挑战。

英文摘要:

Without proper safeguards, large language models will readily follow malicious instructions and generate toxic content. This risk motivates safety efforts such as red-teaming and large-scale feedback learning, which aim to make models both helpful and harmless. However, there is a tension between these two objectives, since harmlessness requires models to refuse to comply with unsafe prompts, and thus not be helpful. Recent anecdotal evidence suggests that some models may have struck a poor balance, so that even clearly safe prompts are refused if they use similar language to unsafe prompts or mention sensitive topics. In this paper, we introduce a new test suite called XSTest to identify such eXaggerated Safety behaviours in a systematic way. XSTest comprises 250 safe prompts across ten prompt types that well-calibrated models should not refuse to comply with, and 200 unsafe prompts as contrasts that models, for most applications, should refuse. We describe XSTest's creation and composition, and then use the test suite to highlight systematic failure modes in state-of-the-art language models as well as more general challenges in building safer language models.

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

↑