WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Models
Liwei Jiang, Kavel Rao, Seungju Han, Allyson Ettinger, Faeze Brahman, Sachin Kumar, Niloofar Mireshghallah, Ximing Lu, Maarten Sap, Yejin Choi, Nouha Dziri
arXiv:2406.18510 · 2026-07-27 공개 · arXiv · PDF
llm-evaluation llm-safety prompt-engineering adversarial-attacks dataset-generation model-robustness red-teaming safety-training
Abstract
We introduce WildTeaming, an automatic LLM safety red-teaming framework that mines in-the-wild user-chatbot interactions to discover 5.7K unique clusters of novel jailbreak tactics, and then composes multiple tactics for systematic exploration of novel jailbreaks. Compared to prior work that performed red-teaming via recruited human workers, gradient-based optimization, or iterative revision with LLMs, our work investigates jailbreaks from chatbot users who were not specifically instructed to break the system. WildTeaming reveals previously unidentified vulnerabilities of frontier LLMs, resulting in up to 4.6x more diverse and successful adversarial attacks compared to state-of-the-art jailbreak methods. While many datasets exist for jailbreak evaluation, very few open-source datasets exist for jailbreak training, as safety training data has been closed even when model weights are open. With WildTeaming we create WildJailbreak, a large-scale open-source synthetic safety dataset with 262K vanilla (direct request) and adversarial (complex jailbreak) prompt-response pairs. To mitigate exaggerated safety behaviors, WildJailbreak provides two contrastive types of queries: 1) harmful queries (vanilla&adversarial) and 2) benign queries that resemble harmful queries in form but contain no harm. As WildJailbreak considerably upgrades the quality and scale of existing safety resources, it uniquely enables us to examine the scaling effects of data and the interplay of data properties and model capabilities during safety training. Through extensive experiments, we identify the training properties that enable an ideal balance of safety behaviors: appropriate safeguarding without over-refusal, effective handling of vanilla and adversarial queries, and minimal, if any, decrease in general capabilities. All components of WildJailbeak contribute to achieving balanced safety behaviors of models.
한국어 요약
한 줄 요약
WildTeaming은 실제 사용자 대화 로그를 분석해 5.7K개의 새로운 제이블레이크 전략을 발견하고, 이를 기반으로 262K개의 대규모 오픈소스 안전 훈련 데이터셋 WildJailbreak를 생성한 LLM 안전성 테스트 프레임워크이다.
핵심 기여도
- 5.7K개의 독창적 제이블레이크 전략을 실제 사용자 대화 로그에서 자동으로 추출.
- WildJailbreak 데이터셋은 262K개의 일반적 요청과 복잡한 제이블레이크 응답 쌍을 포함.
- 기존 최신 제이블레이크 방법 대비 4.6배 더 다양한 성공 공격을 생성.
- ASR<sub>30×5</sub>에서 80.5% 성공률 달성 (PAIR 대비 56.1% 대비 향상).
핵심 아이디어
WildTeaming은 기존 제이블레이크 연구가 주로 인간 참여자나 최적화 기반 알고리즘에 의존한 반면, 실제 사용자 대화 로그에서 자발적으로 발생한 제이블레이크 전략을 자동으로 추출하고 이를 조합해 새로운 공격을 생성한다. 이는 기존 연구가 단일 공격에 최적화되는 경향을 보이는 반면, WildTeaming은 다양한 공격을 동시에 탐색할 수 있는 레드팀링 접근법이다. 핵심은 두 단계로 구성된 프로세스: **Mine**(LMSYS-Chat-1M, InTheWildChat 로그에서 105K개의 제이블레이크 전략 추출)과 **Compose**(Mixtral-8×7B, GPT-4를 활용한 전략 조합 및 공격 생성). 이는 기존 PAIR, AutoDAN, GCG 등과 비교해 훨씬 더 높은 공격 다양성과 효율성을 보인다.
기술적 접근법
- **Mine 단계**: LMSYS-Chat-1M과 InTheWildChat 로그에서 105K개의 제이블레이크 전략(5.7K개의 유니크 클러스터) 추출.
- **Compose 단계**: Mixtral-8×7B, GPT-4를 사용해 전략 조합 및 공격 생성.
- **공격 정제**: 오프토픽 및 저위험 필터링을 통한 공격 품질 향상.
- **WildJailbreak 구성**: 262K개의 페어로 구성된 4가지 유형(일반 해로운, 일반 무해, 적대적 해로운, 적대적 무해)의 쿼리 포함.
- **훈련 데이터 혼합**: Tulu2Mix-no-refusal(300K) + WildJailbreak(200K)로 500K 예시를 사용한 안전성 훈련.
주요 결과
- **HarmBench**에서 WildTeaming은 30개 공격 시도 내 5개의 독창적 공격을 평균 9.94개의 쿼리로 생성 (ASR<sub>30×5</sub> 80.5%).
- PAIR 대비 ASR<sub>30×5</sub> 24.4% 향상, Query<sub>30×5</sub> 4.01개 감소.
- GCG는 30개 공격 생성에 약 15시간 소요 (80GB A100 GPU 기준).
- Vicuna-7B 기반 퍼플렉시티 측정에서 WildTeaming의 공격이 더 자연스러움 (낮은 PPL).
의의 및 한계
WildJailbreak는 기존 안전성 훈련 데이터의 폐쇄성 문제를 해결하며, 대규모 오픈소스 훈련 자원을 제공함으로써 안전성 훈련의 확장성을 높였다. 또한, 일반적 및 적대적 쿼리를 모두 처리하는 균형 잡힌 안전성 훈련을 가능하게 한다. 그러나 WildTeaming은 실제 사용자 로그에 의존하므로, 특정 유형의 제이블레이크 전략이 누락될 가능성은 있다. 또한, 공격 생성 과정에서 일부 무해한 쿼리가 오인될 수 있는 한계도 존재한다.
실용적 활용
WildTeaming과 WildJailbreak는 LLM의 안전성 훈련 및 평가에 필수적인 자원으로, 특히 대규모 모델의 안전성 확보와 과거 기법 대비 더 효과적인 레드팀링을 수행하는 데 활용 가능하다. 연구자 및 산업에서는 모델의 안전성 훈련 데이터셋 부족 문제를 해결하고, 실제 사용 환경에서의 공격 대응력을 향상시키는 데 사용할 수 있다.