Rainbow Teaming:多样化对抗性提示的开放式生成
Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Prompts
AI总结:
针对现有对抗性提示识别方法领域局限、多样性不足等问题,提出名为Rainbow Teaming的黑盒方法,通过开放式搜索生成多样有效的对抗提示,攻击成功率超90%,生成提示可迁移性强,还可用于提升模型安全性及拓展至多领域应用。
摘要:
随着大语言模型(LLM)在众多现实应用中日益普及,理解并增强其对对抗性攻击的鲁棒性至关重要。现有识别对抗性提示的方法往往聚焦特定领域、多样性不足,或是需要大量人工标注。为解决这些局限,我们提出Rainbow Teaming,这是一种可生成多样化对抗性提示集合的新型黑盒方法。Rainbow Teaming将对抗性提示生成建模为质量-多样性问题,通过开放式搜索生成兼具有效性与多样性的提示。我们聚焦安全领域,使用Rainbow Teaming针对包括Llama 2和Llama 3模型在内的多款前沿大语言模型开展测试。该方法发现了数百条有效对抗性提示,在所有测试模型上的攻击成功率均超过90%。此外,我们证明Rainbow Teaming生成的提示具有极强的可迁移性,且使用该方法生成的合成数据微调模型,可在不牺牲通用性能或有用性的前提下显著提升模型安全性。我们还将Rainbow Teaming应用于问答和网络安全领域以探索其通用性,展示了其在广泛应用中推动鲁棒的开放式自我提升的潜力。
英文摘要:
As large language models (LLMs) become increasingly prevalent across many real-world applications, understanding and enhancing their robustness to adversarial attacks is of paramount importance. Existing methods for identifying adversarial prompts tend to focus on specific domains, lack diversity, or require extensive human annotations. To address these limitations, we present Rainbow Teaming, a novel black-box approach for producing a diverse collection of adversarial prompts. Rainbow Teaming casts adversarial prompt generation as a quality-diversity problem and uses open-ended search to generate prompts that are both effective and diverse. Focusing on the safety domain, we use Rainbow Teaming to target various state-of-the-art LLMs, including the Llama 2 and Llama 3 models. Our approach reveals hundreds of effective adversarial prompts, with an attack success rate exceeding 90% across all tested models. Furthermore, we demonstrate that prompts generated by Rainbow Teaming are highly transferable and that fine-tuning models with synthetic data generated by our method significantly enhances their safety without sacrificing general performance or helpfulness. We additionally explore the versatility of Rainbow Teaming by applying it to question answering and cybersecurity, showcasing its potential to drive robust open-ended self-improvement in a wide range of applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。