arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.00801cs.CRcs.CLcs.ETcs.LGcs.NE
收藏

用于发现LLM安全中多样漏洞的质量-多样性进化

Quality-Diversity Evolution for Discovering Diverse Vulnerabilities in LLM Safety

Rota Labs(Rota实验室)

Subhadip Mitra

AI总结:

提出基于质量-多样性进化框架(MAP-Elites)在语义层面生成可解释攻击策略,发现不同LLM的特定漏洞模式。

摘要:

当前LLM对抗性测试方法存在覆盖缺口:手动红队测试无法扩展,LLM作为攻击者的方法会出现模式崩溃,基于梯度的方法产生不可解释的乱码。我们引入一个在语义层面运行的质量-多样性进化框架,进化可解释的攻击策略而非令牌序列。使用MAP-Elites,我们在行为维度(策略类型、编码方法、提示长度)上维护一个多样化的攻击档案。在GPT-4o-mini、Claude 3.5 Sonnet、Gemini 2.0 Flash和一个开放权重的编码模型(Devstral-small-2)上的实验中,我们发现了不同的漏洞特征:GPT-4o-mini容易受到假设性和多轮框架结合ROT13编码的攻击(适应度0.8),Gemini容易受到直接攻击结合ROT13以及多轮攻击结合Leetspeak(0.8),而Claude在所有策略上表现出统一的模糊响应(最大0.4)。语义表示产生了可解释的攻击,揭示了系统性的、模型特定的弱点,为改进LLM安全性提供了可操作的见解,并为评估未来前沿模型提供了可复现的基线。代码和实验工件发布在https://github.com/bassrehab/red-queen。

英文摘要:

Current approaches to LLM adversarial testing suffer from coverage gaps: manual red-teaming does not scale, LLM-as-attacker methods exhibit mode collapse, and gradient-based approaches produce uninterpretable gibberish. We introduce a quality-diversity evolutionary framework that operates at the semantic level, evolving interpretable attack strategies rather than token sequences. Using MAP-Elites, we maintain a diverse archive of attacks across behavioral dimensions (strategy type, encoding method, prompt length). In experiments across GPT-4o-mini, Claude 3.5 Sonnet, Gemini 2.0 Flash, and an open-weight coding model (Devstral-small-2), we discover distinct vulnerability profiles: GPT-4o-mini is vulnerable to hypothetical and multi-turn framing combined with ROT13 encoding (fitness 0.8), Gemini to direct attacks with ROT13 and multi-turn with Leetspeak (0.8), while Claude shows uniformly ambiguous responses across all strategies (max 0.4). The semantic representation produces interpretable attacks that reveal systematic, model-specific weaknesses, providing actionable insights for improving LLM safety and a reproducible baseline for evaluating future frontier models. Code and experiment artifacts are released at https://github.com/bassrehab/red-queen.

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

↑