Skip to main content
CenXiv.org
此网站处于试运行阶段,支持我们!
我们衷心感谢所有贡献者的支持。
贡献
赞助
cenxiv logo > cs > arXiv:2501.01741

帮助 | 高级搜索

计算机科学 > 软件工程

arXiv:2501.01741 (cs)
[提交于 2025年1月3日 ]

标题: 模型有多毒?大型语言模型的基于搜索的毒性测试

标题: How Toxic Can You Get? Search-based Toxicity Testing for Large Language Models

Authors:Simone Corbo, Luca Bancale, Valeria De Gennaro, Livia Lestingi, Vincenzo Scotti, Matteo Camilli
摘要: 语言是一种根深蒂固的刻板印象和歧视延续手段。 大型语言模型(LLMs)如今已是我们日常生活中无处不在的技术,当它们容易生成有害内容时,可能会造成广泛的伤害。 解决该问题的标准方法是对齐LLM,然而这种方法只是缓解了问题,并未构成最终解决方案。 因此,在对齐努力之后,测试LLM仍然至关重要,以便检测是否仍有违反伦理标准的偏差存在。 我们提出了 EvoTox,这是一种针对LLM毒性倾向的自动化测试框架,提供了一种定量评估的方法,即使在对齐的情况下,也能衡量LLM被推向有害响应的程度。 该框架采用了一种迭代进化策略,利用测试系统(SUT)与提示生成器之间的相互作用,其中提示生成器引导SUT响应向更高毒性发展。 毒性水平由基于现有毒性分类器的自动化仲裁程序评估。 我们使用四个最先进的LLM作为评估对象(参数从7亿到13亿不等)进行了定量和定性的实证评估。 我们的定量评估基于随机搜索、精心策划的有毒提示数据集以及对抗性攻击,比较了四种不同版本的 EvoTox的成本效益。 我们的定性评估则让人类评估员对生成的提示流畅性和测试过程中收集的响应感知毒性进行评分。 结果显示,在检测到的毒性水平方面,其效果显著高于所选的基线方法(相对于随机搜索的效果量可达1.0,相对于对抗性攻击的效果量可达0.99)。 此外,EvoTox产生的成本增加有限(平均为22%到35%)。
摘要: Language is a deep-rooted means of perpetration of stereotypes and discrimination. Large Language Models (LLMs), now a pervasive technology in our everyday lives, can cause extensive harm when prone to generating toxic responses. The standard way to address this issue is to align the LLM, which, however, dampens the issue without constituting a definitive solution. Therefore, testing LLM even after alignment efforts remains crucial for detecting any residual deviations with respect to ethical standards. We present EvoTox, an automated testing framework for LLMs' inclination to toxicity, providing a way to quantitatively assess how much LLMs can be pushed towards toxic responses even in the presence of alignment. The framework adopts an iterative evolution strategy that exploits the interplay between two LLMs, the System Under Test (SUT) and the Prompt Generator steering SUT responses toward higher toxicity. The toxicity level is assessed by an automated oracle based on an existing toxicity classifier. We conduct a quantitative and qualitative empirical evaluation using four state-of-the-art LLMs as evaluation subjects having increasing complexity (7-13 billion parameters). Our quantitative evaluation assesses the cost-effectiveness of four alternative versions of EvoTox against existing baseline methods, based on random search, curated datasets of toxic prompts, and adversarial attacks. Our qualitative assessment engages human evaluators to rate the fluency of the generated prompts and the perceived toxicity of the responses collected during the testing sessions. Results indicate that the effectiveness, in terms of detected toxicity level, is significantly higher than the selected baseline methods (effect size up to 1.0 against random search and up to 0.99 against adversarial attacks). Furthermore, EvoTox yields a limited cost overhead (from 22% to 35% on average).
主题: 软件工程 (cs.SE) ; 人工智能 (cs.AI); 计算与语言 (cs.CL)
引用方式: arXiv:2501.01741 [cs.SE]
  (或者 arXiv:2501.01741v1 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2501.01741
通过 DataCite 发表的 arXiv DOI

提交历史

来自: Matteo Camilli Ph.D. [查看电子邮件]
[v1] 星期五, 2025 年 1 月 3 日 10:08:49 UTC (721 KB)
全文链接:

获取论文:

    查看标题为《》的 PDF
  • 查看中文 PDF
  • 查看 PDF
  • HTML(实验性)
  • TeX 源代码
  • 其他格式
查看许可
当前浏览上下文:
cs.CL
< 上一篇   |   下一篇 >
新的 | 最近的 | 2025-01
切换浏览方式为:
cs
cs.AI
cs.SE

参考文献与引用

  • NASA ADS
  • 谷歌学术搜索
  • 语义学者
a 导出 BibTeX 引用 加载中...

BibTeX 格式的引用

×
数据由提供:

收藏

BibSonomy logo Reddit logo

文献和引用工具

文献资源探索 (什么是资源探索?)
连接的论文 (什么是连接的论文?)
Litmaps (什么是 Litmaps?)
scite 智能引用 (什么是智能引用?)

与本文相关的代码,数据和媒体

alphaXiv (什么是 alphaXiv?)
CatalyzeX 代码查找器 (什么是 CatalyzeX?)
DagsHub (什么是 DagsHub?)
Gotit.pub (什么是 GotitPub?)
Hugging Face (什么是 Huggingface?)
带有代码的论文 (什么是带有代码的论文?)
ScienceCast (什么是 ScienceCast?)

演示

复制 (什么是复制?)
Hugging Face Spaces (什么是 Spaces?)
TXYZ.AI (什么是 TXYZ.AI?)

推荐器和搜索工具

影响之花 (什么是影响之花?)
核心推荐器 (什么是核心?)
IArxiv 推荐器 (什么是 IArxiv?)
  • 作者
  • 地点
  • 机构
  • 主题

arXivLabs:与社区合作伙伴的实验项目

arXivLabs 是一个框架,允许合作伙伴直接在我们的网站上开发和分享新的 arXiv 特性。

与 arXivLabs 合作的个人和组织都接受了我们的价值观,即开放、社区、卓越和用户数据隐私。arXiv 承诺这些价值观,并且只与遵守这些价值观的合作伙伴合作。

有一个为 arXiv 社区增加价值的项目想法吗? 了解更多关于 arXivLabs 的信息.

这篇论文的哪些作者是支持者? | 禁用 MathJax (什么是 MathJax?)
  • 关于
  • 帮助
  • contact arXivClick here to contact arXiv 联系
  • 订阅 arXiv 邮件列表点击这里订阅 订阅
  • 版权
  • 隐私政策
  • 网络无障碍帮助
  • arXiv 运营状态
    通过...获取状态通知 email 或者 slack

京ICP备2025123034号