Be a Multitude to Itself: A Prompt Evolution Framework for Red Teaming

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Li, Rui, Wang, Peiyi, Ma, Jingyuan, Zhang, Di, Sha, Lei, Sui, Zhifang
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909505899462656
author Li, Rui
Wang, Peiyi
Ma, Jingyuan
Zhang, Di
Sha, Lei
Sui, Zhifang
author_facet Li, Rui
Wang, Peiyi
Ma, Jingyuan
Zhang, Di
Sha, Lei
Sui, Zhifang
contents Large Language Models (LLMs) have gained increasing attention for their remarkable capacity, alongside concerns about safety arising from their potential to produce harmful content. Red teaming aims to find prompts that could elicit harmful responses from LLMs, and is essential to discover and mitigate safety risks before real-world deployment. However, manual red teaming is both time-consuming and expensive, rendering it unscalable. In this paper, we propose RTPE, a scalable evolution framework to evolve red teaming prompts across both breadth and depth dimensions, facilitating the automatic generation of numerous high-quality and diverse red teaming prompts. Specifically, in-breadth evolving employs a novel enhanced in-context learning method to create a multitude of quality prompts, whereas in-depth evolving applies customized transformation operations to enhance both content and form of prompts, thereby increasing diversity. Extensive experiments demonstrate that RTPE surpasses existing representative automatic red teaming methods on both attack success rate and diversity. In addition, based on 4,800 red teaming prompts created by RTPE, we further provide a systematic analysis of 8 representative LLMs across 8 sensitive topics.
format Preprint
id arxiv_https___arxiv_org_abs_2502_16109
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Be a Multitude to Itself: A Prompt Evolution Framework for Red Teaming
Li, Rui
Wang, Peiyi
Ma, Jingyuan
Zhang, Di
Sha, Lei
Sui, Zhifang
Computation and Language
Large Language Models (LLMs) have gained increasing attention for their remarkable capacity, alongside concerns about safety arising from their potential to produce harmful content. Red teaming aims to find prompts that could elicit harmful responses from LLMs, and is essential to discover and mitigate safety risks before real-world deployment. However, manual red teaming is both time-consuming and expensive, rendering it unscalable. In this paper, we propose RTPE, a scalable evolution framework to evolve red teaming prompts across both breadth and depth dimensions, facilitating the automatic generation of numerous high-quality and diverse red teaming prompts. Specifically, in-breadth evolving employs a novel enhanced in-context learning method to create a multitude of quality prompts, whereas in-depth evolving applies customized transformation operations to enhance both content and form of prompts, thereby increasing diversity. Extensive experiments demonstrate that RTPE surpasses existing representative automatic red teaming methods on both attack success rate and diversity. In addition, based on 4,800 red teaming prompts created by RTPE, we further provide a systematic analysis of 8 representative LLMs across 8 sensitive topics.
title Be a Multitude to Itself: A Prompt Evolution Framework for Red Teaming
topic Computation and Language
url https://arxiv.org/abs/2502.16109