mlsanityData to 14 Oct 2026

FLRT: Fluent Student-Teacher Redteaming

arXiv 2407.17447 ↗First posted 24 Jul 2024cs.CL cs.AIcited by 9

On the map: LLM safety and security → Prompt injection and agent security

Abstract (arXiv)

Many publicly available language models have been safety tuned to reduce the likelihood of toxic or liability-inducing text. To redteam or jailbreak these models for compliance with toxic requests, users and security analysts have developed adversarial prompting techniques. One attack method is to apply discrete optimization techniques to the prompt. However, the resulting attack strings are often gibberish text, easily filtered by defenders due to high measured perplexity, and may fail for unseen tasks and/or well-tuned models. In this work, we improve existing algorithms (primarily GCG and BEAST) to develop powerful and fluent attacks on safety-tuned models like Llama-2 and Phi-3. Our technique centers around a new distillation-based approach that encourages the victim model to emulate a toxified finetune, either in terms of output probabilities or internal activations. To encourage human-fluent attacks, we add a multi-model perplexity penalty and a repetition penalty to the objective. We also enhance optimizer strength by allowing token insertions, token swaps, and token deletions and by using longer attack sequences. The resulting process is able to reliably jailbreak the most difficult target models with prompts that appear similar to human-written prompts. On Advbench we achieve attack success rates >93% for Llama-2-7B, Llama-3-8B, and Vicuna-7B, while maintaining model-measured perplexity <33; we achieve 95% attack success for Phi-3, though with higher perplexity. We also find a universally-optimized single fluent prompt that induces >88% compliance on previously unseen tasks across Llama-2-7B, Phi-3-mini and Vicuna-7B and transfers to other black-box models.

Key facts. Cited by 9 papers 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 39 of its 54 references that are in the map. First posted on arXiv 24 Jul 2024.

Builds on

39 of 54 references.

Closest ancestors · 1

Same direction, newest first

  1. 2022Red Teaming Language Models with Language Models7 Feb

Other references · 38

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  3. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  4. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  5. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
  6. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  7. 2016Towards Evaluating the Robustness of Neural Networkscited by 2,998
  8. 2016Deep Learning with Differential Privacycited by 2,728
  9. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,917
  10. 2014FitNets: Hints for Thin Deep Netscited by 1,653
  11. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
  12. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
26 more
  1. 2024Refusal in Language Models Is Mediated by a Single Directioncited by 1,032
  2. 2019Adversarial Examples Are Not Bugs, They Are Featurescited by 953
  3. 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 785
  4. 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 486
  5. 2023Detecting Language Model Attacks with Perplexitycited by 431
  6. 2023Low-Resource Languages Jailbreak GPT-4cited by 309
  7. 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 278
  8. 2023Scalable and Transferable Black-Box Jailbreaks for Language Models via Persona Modulationcited by 214
  9. 2023LoRA Fine-tuning Efficiently Undoes Safety Training in Llama 2-Chat 70Bcited by 195
  10. 2023Automatically Auditing Large Language Models via Discrete Optimizationcited by 191
  11. 2024COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllabilitycited by 175
  12. 2024AmpleGCG: Learning a Universal and Transferable Generative Model of Adversarial Suffixes for Jailbreaking Both Open and Closed LLMscited by 172
  13. 2023Prompting4Debugging: Red-Teaming Text-to-Image Diffusion Models by Finding Problematic Promptscited by 171
  14. 2023Removing RLHF Protections in GPT-4 via Fine-Tuningcited by 171
  15. 2024AdvPrompter: Fast Adaptive Adversarial Prompting for LLMscited by 156
  16. 2023Open Sesame! Universal Black Box Jailbreaking of Large Language Modelscited by 134
  17. 2024Fast Adversarial Attacks on Language Models In One GPU Minutecited by 88
  18. 2024Query-Based Adversarial Prompt Generationcited by 62
  19. 2024Survey on Knowledge Distillation for Large Language Models: Methods, Evaluation, and Applicationcited by 56
  20. 2022CodeAttack: Code-Based Adversarial Attacks for Pre-trained Programming Language Modelscited by 53
  21. 2022Toward Human Readable Prompt Tuning: Kubrick's The Shining is a good movie, and a good prompt too?cited by 49
  22. 2024Understanding Jailbreak Success: A Study of Latent Space Dynamics in Large Language Modelscited by 37
  23. 2024All in How You Ask for It: Simple Black-Box Method for Jailbreak Attackscited by 32
  24. 2023Scaling Laws for Adversarial Attacks on Language Model Activationscited by 19
  25. 2024Improving Zero-shot Generalization of Learned Prompts via Unsupervised Knowledge Distillationcited by 18
  26. 2024Fluent dreaming for language modelscited by 5

Built on by

Cited by year

Citing papers per year: 2024: 6; 2025: 3.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Jailbreak-Zero: A Path to Pareto Optimal Red Teaming for Large Language Models
  2. 2026Adversarial Reframing: A Framework for Targeted Generation in Language Models
  3. 2026When Prompt Optimization Becomes Jailbreaking: Adaptive Red-Teaming of Large Language Models
  4. 2025Rewrite to Jailbreak: Discover Learnable and Transferable Implicit Harmfulness Instruction
  5. 2024Jailbreak Attacks and Defenses Against Large Language Models: A Survey
  6. 2025Efficient and Stealthy Jailbreak Attacks via Adversarial Prompt Distillation from LLMs to SLMs
  7. 2025AutoAdv: Automated Adversarial Prompting for Multi-Turn Jailbreaking of Large Language Models
  8. 2025Quality-Diversity Red-Teaming: Automated Generation of High-Quality and Diverse Attackers for Large Language Models