Be Your Own Red Teamer: Safety Alignment via Self-Play and Reflective Experience Replay
On the map: LLM alignment / RLHF / preference optimisation → Safety alignment and jailbreak attacks
also in 2 more
Abstract (arXiv)
Large Language Models (LLMs) have achieved remarkable capabilities but remain vulnerable to adversarial ``jailbreak'' attacks designed to bypass safety guardrails. Current safety alignment methods depend heavily on static external red teaming, utilizing fixed defense prompts or pre-collected adversarial datasets. This leads to a rigid defense that overfits known patterns and fails to generalize to novel, sophisticated threats. To address this critical limitation, we propose empowering the model to be its own red teamer, capable of achieving autonomous and evolving adversarial attacks. Specifically, we introduce Safety Self- Play (SSP), a system that utilizes a single LLM to act concurrently as both the Attacker (generating jailbreaks) and the Defender (refusing harmful requests) within a unified Reinforcement Learning (RL) loop, dynamically evolving attack strategies to uncover vulnerabilities while simultaneously strengthening defense mechanisms. To ensure the Defender effectively addresses critical safety issues during the self-play, we introduce an advanced Reflective Experience Replay Mechanism, which uses an experience pool accumulated throughout the process. The mechanism employs a Upper Confidence Bound (UCB) sampling strategy to focus on failure cases with low rewards, helping the model learn from past hard mistakes while balancing exploration and exploitation. Extensive experiments demonstrate that our SSP approach autonomously evolves robust defense capabilities, significantly outperforming baselines trained on static adversarial datasets and establishing a new benchmark for proactive safety alignment.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Placed in Safety alignment and jailbreak attacks, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 39 of its 56 references that are in the map. First posted on arXiv 15 Jan 2026.
Builds on
39 of 56 references.
Closest ancestors · 9
Same direction, newest first
- 2025Adversarial Attack-Defense Co-Evolution for LLM Safety Alignment via Tree-Group Dual-Aware Search and Optimization24 Nov
- 2025Layer-Aware Representation Filtering: Purifying Finetuning Data to Preserve LLM Safety Alignment24 Jul
- 2025Chasing Moving Targets with Online Self-Play Reinforcement Learning for Safer Language Models9 Jun
- 2025Lifelong Safety Alignment for Language Models26 May
- 2025One Model Transfer to All: On Robust Jailbreak Prompts Generation against LLMs23 May
- 2024Language Models are Homer Simpson! Safety Re-Alignment of Fine-tuned Language Models through Task Arithmetic19 Feb
- 2023Safe RLHF: Safe Reinforcement Learning from Human Feedback19 Oct
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!5 Oct
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
Other references · 30
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,748
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
- 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 619
- 2024Self-Play Fine-Tuning Converts Weak Language Models to Strong Language Modelscited by 552
- 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 450
18 more
- 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attackscited by 434
- 2023Detecting Language Model Attacks with Perplexitycited by 411
- 2023DeepInception: Hypnotize Large Language Model to Be Jailbreakercited by 337
- 2025Absolute Zero: Reinforced Self-play Reasoning with Zero Datacited by 323
- 2024SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decodingcited by 233
- 2022On Second Thought, Let's Not Think Step by Step! Bias and Toxicity in Zero-Shot Reasoningcited by 191
- 2024AutoDAN-Turbo: A Lifelong Agent for Strategy Self-Exploration to Jailbreak LLMscited by 185
- 2024COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllabilitycited by 162
- 2023MART: Improving LLM Safety with Multi-round Automatic Red-Teamingcited by 161
- 2024Efficient Adversarial Training in LLMs with Continuous Attackscited by 104
- 2024Aligner: Efficient Alignment by Learning to Correctcited by 96
- 2024Self-playing Adversarial Language Game Enhances LLM Reasoningcited by 80
- 2024LLMs know their vulnerabilities: Uncover Safety Gaps through Natural Distribution Shiftscited by 80
- 2025WebEvolver: Enhancing Web Agent Self-Improvement with Coevolving World Modelcited by 56
- 2025SPC: Evolving Self-Play Critic via Adversarial Games for LLM Reasoningcited by 40
- 2024ASETF: A Novel Method for Jailbreak Attack on LLMs through Translate Suffix Embeddingscited by 31
- 2024Defending Jailbreak Prompts via In-Context Adversarial Gamecited by 27
- 2025Jailbreak-R1: Exploring the Jailbreak Capabilities of LLMs via Reinforcement Learningcited by 21
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026JailbreakOPT: Tool-Assisted Iterative Jailbreak Prompt Optimizationcited by 1
- 2026Co-Evolution in Agentic Systems: Toward Self-Directed Evolution Beyond Human Designcited by 1
- 2026Model-Agnostic Lifelong LLM Safety via Externalized Attack-Defense Co-Evolutioncited by 0
- 2026ACEA: An Adversarial Co-Evolution Arena for Head-to-Head Red-Team and Blue-Team LLM Testingcited by 0
- 2026CoDeL: Co-Evolutionary Defense against Indirect Prompt Injection in LLM-based Agentscited by 0
- 2026ReSI: Recursive Safety Improvement toward Resistant and Resilient AIcited by 0
- 2026ReSI: Recursive Safety Improvement toward Resistant and Resilient AI8 Oct 2026
- 2026CoDeL: Co-Evolutionary Defense against Indirect Prompt Injection in LLM-based Agents28 Sep 2026
- 2026ACEA: An Adversarial Co-Evolution Arena for Head-to-Head Red-Team and Blue-Team LLM Testing8 Sep 2026
- 2026Co-Evolution in Agentic Systems: Toward Self-Directed Evolution Beyond Human Design10 Aug 2026
- 2026JailbreakOPT: Tool-Assisted Iterative Jailbreak Prompt Optimization9 Jun 2026
- 2026Model-Agnostic Lifelong LLM Safety via Externalized Attack-Defense Co-Evolution13 May 2026
Similar, not cited
Close in wording, no citation either way
- 2026CHASE: Adversarial Red-Blue Teaming for Improving LLM Safety using Reinforcement Learning
- 2026TriPlay-RL: Tri-Role Self-Play Reinforcement Learning for LLM Safety Alignment
- 2026MAGIC: A Co-Evolving Attacker-Defender Adversarial Game for Robust LLM Safety
- 2026GPT-Red: Automated Red Teaming via Self-Play at Scale
- 2026ARES: Adaptive Red-Teaming and End-to-End Repair of Policy-Reward System
- 2026The Attacker in the Mirror: Breaking Self-Consistency in Safety via Anchored Bipolicy Self-Play
- 2025Safety Alignment of LMs via Non-cooperative Games
- 2026Learning to Attack and Defend: Adaptive Red Teaming of Language Models via GRPO