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

Jinchuan Zhang, Yan Zhou, Yaxin Liu, Ziming Li, Songlin Hu
9/25/2024
cs.CLcs.AIcs.CR

No official code found. Best implementation: jc-ryan/holistic_automated_red_teaming (17 stars, last commit 2024-11-09).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

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

171Shell, PythonSep 23, 20241 years ago
automated-red-teaminglarge-language-modelssafety-alignment

Similar Papers

Cite this paper

@article{zhang2024holistic,
  title  = {Holistic Automated Red Teaming for Large Language Models through Top-Down Test Case Generation and Multi-turn Interaction},
  author = {Jinchuan Zhang and Yan Zhou and Yaxin Liu and Ziming Li and Songlin Hu},
  year   = {2024},
  eprint = {2409.16783},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.16783v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.16783.svg)](https://codeofpaper.com/paper/2409.16783)

Discussion