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

JADE:一个面向大型语言模型的基于语言学的安全评估平台

JADE: A Linguistics-based Safety Evaluation Platform for Large Language Models

Whitzard-AI(Whitzard人工智能);Fudan University(复旦大学)

Mi Zhang, Xudong Pan, Min Yang

AI总结:

本文提出 JADE 语言模糊测试平台,利用转换生成语法规则增加不安全种子问题的句法复杂度,系统性突破多类中英文 LLM 安全护栏,并发布高威胁安全评估基准。

摘要:

在本文中,我们提出了 JADE,这是一个有针对性的语言模糊测试平台,通过增强种子问题的语言复杂性,能够同时且稳定地突破三类广泛使用的 LLM:8 个开源中文 LLM、6 个商业中文 LLM 和 4 个商业英文 LLM。JADE 为这三类 LLM 生成了三个安全基准,其中包含具有高度威胁性的不安全问题:这些问题会同时触发多个 LLM 的有害生成,平均不安全生成率为 70%(见下表),同时仍是自然、流畅的问题,并保留了核心的不安全语义。我们通过以下链接发布为商业英文 LLM 和开源英文 LLM 生成的基准示例:https://github.com/whitzard-ai/jade-db。对于有兴趣使用 JADE 生成的更多问题进行评估的读者,请与我们联系。JADE 基于 Noam Chomsky 具有开创性的转换生成语法理论。给定一个带有不安全意图的种子问题,JADE 调用一系列生成和转换规则,逐步增加原始问题句法结构的复杂性,直到突破安全护栏。我们的关键洞见是:由于人类语言的复杂性,当前大多数最优秀的 LLM 都难以从无限数量的不同句法结构中识别出不变的恶意,而这些结构构成了一个永远无法被完全覆盖的无界样本空间。在技术层面,生成/转换规则由相应语言的母语者构建;规则一旦开发完成,就可用于自动扩展和转换给定问题的解析树,直到护栏被突破。更多评估结果和演示请访问我们的网站:https://whitzard-ai.github.io/jade.html。

英文摘要:

In this paper, we present JADE, a targeted linguistic fuzzing platform which strengthens the linguistic complexity of seed questions to simultaneously and consistently break a wide range of widely-used LLMs categorized in three groups: eight open-sourced Chinese, six commercial Chinese and four commercial English LLMs. JADE generates three safety benchmarks for the three groups of LLMs, which contain unsafe questions that are highly threatening: the questions simultaneously trigger harmful generation of multiple LLMs, with an average unsafe generation ratio of $70\%$ (please see the table below), while are still natural questions, fluent and preserving the core unsafe semantics. We release the benchmark demos generated for commercial English LLMs and open-sourced English LLMs in the following link: https://github.com/whitzard-ai/jade-db. For readers who are interested in evaluating on more questions generated by JADE, please contact us. JADE is based on Noam Chomsky's seminal theory of transformational-generative grammar. Given a seed question with unsafe intention, JADE invokes a sequence of generative and transformational rules to increment the complexity of the syntactic structure of the original question, until the safety guardrail is broken. Our key insight is: Due to the complexity of human language, most of the current best LLMs can hardly recognize the invariant evil from the infinite number of different syntactic structures which form an unbound example space that can never be fully covered. Technically, the generative/transformative rules are constructed by native speakers of the languages, and, once developed, can be used to automatically grow and transform the parse tree of a given question, until the guardrail is broken. For more evaluation results and demo, please check our website: https://whitzard-ai.github.io/jade.html.

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

↑