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

SAGE-RT:用于安全评估与红队的合成对齐数据生成

SAGE-RT: Synthetic Alignment data Generation for Safety Evaluation and Red Teaming

Enkrypt AI

Anurakt Kumar, Divyanshu Kumar, Jatan Loya, Nitin Aravind Birur, Tanay Baswa, Sahil Agarwal, Prashanth Harshangi

AI总结:

提出SAGE-RT流水线,利用详细分类法完全合成生成涵盖超1500个有害主题的5.1万个红队与对齐数据,在多数子类别成功越狱最先进LLM,避免了模式崩溃,助力提升模型安全性。

摘要:

我们介绍了用于安全评估与红队的合成对齐数据生成(SAGE-RT或SAGE),这是一种用于生成合成对齐和红队数据的新颖流水线。现有方法在创建细致且多样化的数据集、对数据生成和验证过程提供必要控制,或需要大量手动生成的种子数据方面存在不足。SAGE通过使用详细的分类法来生成涵盖广泛主题的安全对齐和红队数据,从而解决了这些局限性。我们生成了51,000个多样且深入的提示-响应对,涵盖超过1,500个有害性主题,并覆盖大型语言模型(LLMs)面临的最频繁类型越狱提示的变体。我们展示了通过SAGE生成的红队数据在32个子类别中的27个以上、以及279个叶子类别(子子类别)中的58个以上成功越狱了最先进的LLMs。对于GPT-4o和GPT-3.5-turbo,在有害性子类别上的攻击成功率为100%。我们的方法通过使用主题的迭代扩展并将输出以生成的原始文本为条件来确保对有害主题的详细覆盖,从而避免了合成安全训练数据生成中的模式崩溃和生成流水线中缺乏细致性等陷阱。该方法可完全合成地用于生成LLM安全的红队和对齐数据,以使LLMs更安全,或用于在多样化的主题上对模型进行红队测试。

英文摘要:

We introduce Synthetic Alignment data Generation for Safety Evaluation and Red Teaming (SAGE-RT or SAGE) a novel pipeline for generating synthetic alignment and red-teaming data. Existing methods fall short in creating nuanced and diverse datasets, providing necessary control over the data generation and validation processes, or require large amount of manually generated seed data. SAGE addresses these limitations by using a detailed taxonomy to produce safety-alignment and red-teaming data across a wide range of topics. We generated 51,000 diverse and in-depth prompt-response pairs, encompassing over 1,500 topics of harmfulness and covering variations of the most frequent types of jailbreaking prompts faced by large language models (LLMs). We show that the red-teaming data generated through SAGE jailbreaks state-of-the-art LLMs in more than 27 out of 32 sub-categories, and in more than 58 out of 279 leaf-categories (sub-sub categories). The attack success rate for GPT-4o, GPT-3.5-turbo is 100% over the sub-categories of harmfulness. Our approach avoids the pitfalls of synthetic safety-training data generation such as mode collapse and lack of nuance in the generation pipeline by ensuring a detailed coverage of harmful topics using iterative expansion of the topics and conditioning the outputs on the generated raw-text. This method can be used to generate red-teaming and alignment data for LLM Safety completely synthetically to make LLMs safer or for red-teaming the models over a diverse range of topics.

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

↑