Text-Diffusion Red-Teaming of Large Language Models: Unveiling Harmful Behaviors with Proximity Constraints
On the map: LLM safety and security → Prompt injection and agent security
Abstract (arXiv)
Recent work has proposed automated red-teaming methods for testing the vulnerabilities of a given target large language model (LLM). These methods use red-teaming LLMs to uncover inputs that induce harmful behavior in a target LLM. In this paper, we study red-teaming strategies that enable a targeted security assessment. We propose an optimization framework for red-teaming with proximity constraints, where the discovered prompts must be similar to reference prompts from a given dataset. This dataset serves as a template for the discovered prompts, anchoring the search for test-cases to specific topics, writing styles, or types of harmful behavior. We show that established auto-regressive model architectures do not perform well in this setting. We therefore introduce a black-box red-teaming method inspired by text-diffusion models: Diffusion for Auditing and Red-Teaming (DART). DART modifies the reference prompt by perturbing it in the embedding space, directly controlling the amount of change introduced. We systematically evaluate our method by comparing its effectiveness with established methods based on model fine-tuning and zero- and few-shot prompting. Our results show that DART is significantly more effective at discovering harmful inputs in close proximity to the reference prompt.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 38 of its 42 references that are in the map. First posted on arXiv 14 Jan 2025.
Builds on
38 of 42 references.
Closest ancestors · 7
Same direction, newest first
- 2024Curiosity-driven Red-teaming for Large Language Models29 Feb
- 2024Gradient-Based Language Model Red Teaming30 Jan
- 2023LLM Self Defense: By Self Examination, LLMs Know They Are Being Tricked14 Aug
- 2023Explore, Establish, Exploit: Red Teaming Language Models from Scratch15 Jun
- 2023Query-Efficient Black-Box Red Teaming via Bayesian Optimization27 May
- 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learned23 Aug
- 2022Red Teaming Language Models with Language Models7 Feb
Other references · 31
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
19 more
- 2021Structured Denoising Diffusion Models in Discrete State-Spacescited by 1,665
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
- 2023Training Diffusion Models with Reinforcement Learningcited by 939
- 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 828
- 2023Discrete Diffusion Modeling by Estimating the Ratios of the Data Distributioncited by 712
- 2023Instruction Tuning with GPT-4cited by 676
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 608
- 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Studycited by 478
- 2019PAWS: Paraphrase Adversaries from Word Scramblingcited by 395
- 2023Principle-Driven Self-Alignment of Language Models from Scratch with Minimal Human Supervisioncited by 318
- 2023Low-Resource Languages Jailbreak GPT-4cited by 290
- 2023Certifying LLM Safety against Adversarial Promptingcited by 248
- 2023Text Embeddings Reveal (Almost) As Much As Textcited by 189
- 2023Automatically Auditing Large Language Models via Discrete Optimizationcited by 187
- 2023RAIN: Your Language Models Can Align Themselves without Finetuningcited by 149
- 2023Open Sesame! Universal Black Box Jailbreaking of Large Language Modelscited by 128
- 2023FLIRT: Feedback Loop In-context Red Teamingcited by 81
- 2022Text Generation with Diffusion Language Models: A Pre-training Approach with Continuous Paragraph Denoisecited by 79
- 2023CodeFusion: A Pre-trained Diffusion Model for Code Generationcited by 31
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026When AI Fails, What Works? A Data-Driven Taxonomy of Real-World AI Risk Mitigation Strategiescited by 1
- 2026Adversarial Diffusion Across Modalities: A Fusion Survey of Attacks, Defenses, and Evaluation for Text, Vision, and Vision-Language Modelscited by 1
- 2026Unbounded Harms, Bounded Law: Liability in the Age of Borderless AIcited by 0
- 2026DART: Mitigating Harm Drift in Difference-Aware LLMs via Distill-Audit-Repair Trainingcited by 0
- 2026Adversarial Diffusion Across Modalities: A Fusion Survey of Attacks, Defenses, and Evaluation for Text, Vision, and Vision-Language Models25 Jun 2026
- 2026DART: Mitigating Harm Drift in Difference-Aware LLMs via Distill-Audit-Repair Training18 Apr 2026
- 2026When AI Fails, What Works? A Data-Driven Taxonomy of Real-World AI Risk Mitigation Strategies4 Mar 2026
- 2026Unbounded Harms, Bounded Law: Liability in the Age of Borderless AI19 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2023Red-Teaming Large Language Models using Chain of Utterances for Safety-Alignment
- 2024Against The Achilles' Heel: A Survey on Red Teaming for Generative Models
- 2025RedTopic: Toward Topic-Diverse Red Teaming of Large Language Models
- 2024Code-Switching Red-Teaming: LLM Evaluation for Safety and Multilingual Understanding
- 2026CART: Closed-Loop Adaptive Red Teaming for Large Language Models
- 2026AutoRISE: Agent-Driven Strategy Evolution for Red-Teaming Large Language Models
- 2026OpenRT: An Open-Source Red Teaming Framework for Multimodal LLMs
- 2025DREAM: Scalable Red Teaming for Text-to-Image Generative Systems via Distribution Modeling