arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.16783cs.CLcs.AIcs.CR
收藏

通过自上而下的测试用例生成与多轮交互实现大型语言模型的整体自动化红队测试

Holistic Automated Red Teaming for Large Language Models through Top-Down Test Case Generation and Multi-turn Interaction

Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院)

Jinchuan Zhang, Yan Zhou, Yaxin Liu, Ziming Li, Songlin Hu

AI总结:

针对现有自动化红队测试覆盖不全且局限于单轮交互的问题,提出HARM框架,基于自上而下的风险分类法生成多样测试用例,并结合微调与强化学习实现多轮对抗探测,更系统地揭示模型漏洞并指导对齐。

摘要:

自动化红队测试是识别大型语言模型(LLMs)中未对齐行为的有效方法。然而,现有方法通常主要关注提高攻击成功率,而忽视了全面测试用例覆盖的需求。此外,这些方法大多局限于单轮红队测试,未能捕捉现实世界人机交互中的多轮动态。为了克服这些局限性,我们提出了HARM(整体自动化红队测试),它基于可扩展的细粒度风险分类法,采用自上而下的方法扩大测试用例的多样性。该方法还利用一种新颖的微调策略和强化学习技术,以类人方式促进多轮对抗性探测。实验结果表明,我们的框架能够实现对模型漏洞更系统的理解,并为对齐过程提供更有针对性的指导。

英文摘要:

Automated red teaming is an effective method for identifying misaligned behaviors in large language models (LLMs). Existing approaches, however, often focus primarily on improving attack success rates while overlooking the need for comprehensive test case coverage. Additionally, most of these methods are limited to single-turn red teaming, failing to capture the multi-turn dynamics of real-world human-machine interactions. To overcome these limitations, we propose HARM (Holistic Automated Red teaMing), which scales up the diversity of test cases using a top-down approach based on an extensible, fine-grained risk taxonomy. Our method also leverages a novel fine-tuning strategy and reinforcement learning techniques to facilitate multi-turn adversarial probing in a human-like manner. Experimental results demonstrate that our framework enables a more systematic understanding of model vulnerabilities and offers more targeted guidance for the alignment process.

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

↑