Stable-GFlowNet: Toward Diverse and Robust LLM Red-Teaming via Contrastive Trajectory Balance
On the map: LLM safety and security → Prompt injection and agent security
Abstract (arXiv)
Large Language Model (LLM) Red-Teaming, which proactively identifies vulnerabilities of LLMs, is an essential process for ensuring safety. Finding effective and diverse attacks in red-teaming is important, but achieving both is challenging. Generative Flow Networks (GFNs) that perform distribution matching are promising methods, but they are notorious for training instability and mode collapse. In particular, unstable rewards in red-teaming accelerate mode collapse. We propose Stable-GFN (S-GFN), which eliminates partition function Z estimation in GFN and reduces training instability. S-GFN avoids Z estimation through pairwise comparisons and employs a robust masking methodology against noisy rewards. Additionally, we propose a fluency stabilizer to prevent the model from getting stuck in local optima that produce gibberish. S-GFN provides more stable training while maintaining the optimal policy of GFN. We demonstrate the overwhelming attack performance and diversity of S-GFN across various settings. Our code can be found in https://github.com/kmc0207/Stable-GFN.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 34 of its 45 references that are in the map. First posted on arXiv 1 May 2026.
Builds on
34 of 45 references.
Closest ancestors · 7
Same direction, newest first
- 2025Active Attacks: Red-teaming LLMs via Adaptive Environments26 Sep
- 2025Jailbreak-R1: Exploring the Jailbreak Capabilities of LLMs via Reinforcement Learning1 Jun
- 2024Ruby Teaming: Improving Quality Diversity Search with Memory for Automated Red Teaming17 Jun
- 2024Learning diverse attacks on large language models for robust red-teaming and safety tuning28 May
- 2024Curiosity-driven Red-teaming for Large Language Models29 Feb
- 2024Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Prompts26 Feb
- 2022Red Teaming Language Models with Language Models7 Feb
Other references · 27
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2025Qwen3 Technical Reportcited by 8,820
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2025Gemma 3 Technical Reportcited by 1,824
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,386
- 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,304
- 2017Evolution Strategies as a Scalable Alternative to Reinforcement Learningcited by 574
15 more
- 2015Illuminating search spaces by mapping elitescited by 425
- 2021Flow Network based Generative Models for Non-Iterative Diverse Candidate Generationcited by 392
- 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 387
- 2023Detecting Pretraining Data from Large Language Modelscited by 387
- 2021GFlowNet Foundationscited by 290
- 2022Trajectory balance: Improved credit assignment in GFlowNetscited by 251
- 2022Biological Sequence Design with GFlowNetscited by 174
- 2022Bayesian Structure Learning with Generative Flow Networkscited by 153
- 2022Learning GFlowNets from partial episodes for improved convergence and stabilitycited by 132
- 2024Query-Based Adversarial Prompt Generationcited by 62
- 2025Safety Pretraining: Toward the Next Generation of Safe AIcited by 43
- 2024GFlowNet Fine-tuning for Diverse Correct Solutions in Mathematical Reasoning Taskscited by 8
- 2023Discovery of Novel Reticular Materials for Carbon Dioxide Capture using GFlowNetscited by 6
- 2025Loss-Guided Auxiliary Agents for Overcoming Mode Collapse in GFlowNetscited by 5
- 2024Embarrassingly Parallel GFlowNetscited by 3
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026Generating Attacks for LLMs with GFlowNets
- 2025RedTWIZ: Diverse LLM Red Teaming via Adaptive Attack Planning
- 2024Gradient-Based Language Model Red Teaming
- 2024Recent advancements in LLM Red-Teaming: Techniques, Defenses, and Ethical Considerations
- 2025Learning-Based Automated Adversarial Red-Teaming for Robustness Evaluation of Large Language Models
- 2025Automatic LLM Red Teaming
- 2024DiveR-CT: Diversity-enhanced Red Teaming Large Language Model Assistants with Relaxing Constraints
- 2024Against The Achilles' Heel: A Survey on Red Teaming for Generative Models