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

ToxSearch: 面向大型语言模型毒性搜索的提示演化

ToxSearch: Evolving Prompts for Toxicity Search in Large Language Models

Rochester Institute of Technology(罗切斯特技术研究所)

Onkar Shelar, Travis Desell

AI总结:

提出ToxSearch,一种黑盒演化框架,通过同步稳态循环演化提示来测试大型语言模型的安全性,并分析不同操作符的行为及跨模型迁移性。

摘要:

大型语言模型即使在安全对齐后,仍然容易受到引发毒性内容的对抗性提示的攻击。我们提出了ToxSearch,一种黑盒演化框架,通过同步稳态循环演化提示来测试模型安全性。该系统采用多种操作符,包括词汇替换、否定、回译、释义以及两种语义交叉操作符,同时一个审核预言机提供适应度指导。操作符级分析显示出异质性行为:词汇替换提供了最佳的收益-方差权衡,语义相似性交叉充当精确的低吞吐量插入器,而全局重写表现出高方差和较高的拒绝成本。使用在LLaMA 3.1 8B上演化的精英提示,我们观察到实际有意义但衰减的跨模型迁移,大多数目标上的毒性大约减半,较小的LLaMA 3.2变体表现出最强的抵抗力,而一些跨架构模型保留了较高的毒性。这些结果表明,小的、可控的扰动是系统性红队测试的有效载体,并且防御措施应预期对抗性提示的跨模型重用,而不是仅关注单模型加固。

英文摘要:

Large Language Models remain vulnerable to adversarial prompts that elicit toxic content even after safety alignment. We present ToxSearch, a black-box evolutionary framework that tests model safety by evolving prompts in a synchronous steady-state loop. The system employs a diverse set of operators, including lexical substitutions, negation, back-translation, paraphrasing, and two semantic crossover operators, while a moderation oracle provides fitness guidance. Operator-level analysis shows heterogeneous behavior: lexical substitutions offer the best yield-variance trade-off, semantic-similarity crossover acts as a precise low-throughput inserter, and global rewrites exhibit high variance with elevated refusal costs. Using elite prompts evolved on LLaMA 3.1 8B, we observe practically meaningful but attenuated cross-model transfer, with toxicity roughly halving on most targets, smaller LLaMA 3.2 variants showing the strongest resistance, and some cross-architecture models retaining higher toxicity. These results suggest that small, controllable perturbations are effective vehicles for systematic red-teaming and that defenses should anticipate cross-model reuse of adversarial prompts rather than focusing only on single-model hardening.

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

↑