mlsanityData to 14 Oct 2026

MixAT: Combining Continuous and Discrete Adversarial Training for LLMs

arXiv 2505.16947 ↗First posted 22 May 2025cs.LG cs.AIcited by 11

On the map: LLM safety and security → Jailbreaking

Abstract (arXiv)

Despite recent efforts in Large Language Model (LLM) safety and alignment, current adversarial attacks on frontier LLMs can still consistently force harmful generations. Although adversarial training has been widely studied and shown to significantly improve the robustness of traditional machine learning models, its strengths and weaknesses in the context of LLMs are less understood. Specifically, while existing discrete adversarial attacks are effective at producing harmful content, training LLMs with concrete adversarial prompts is often computationally expensive, leading to reliance on continuous relaxations. At the same time, despite their effectiveness and generalization capabilities, training with continuous perturbations does not always capture the full spectrum of vulnerabilities exploited by discrete attacks. In this work, we aim to bridge this gap by introducing MixAT, a novel method that combines stronger discrete and faster continuous attacks during training. We rigorously evaluate MixAT across a wide spectrum of state-of-the-art attacks, proposing the At Least One Attack Success Rate (ALO-ASR) metric to capture the worst-case vulnerability of models. We show MixAT achieves substantially better robustness (ALO-ASR < 20%) compared to prior defenses (ALO-ASR > 50%), while maintaining a runtime comparable to methods based on continuous relaxations. We further analyze MixAT in realistic deployment settings, exploring how chat templates, quantization, low-rank adapters, and temperature affect both adversarial training and evaluation, revealing additional blind spots in current methodologies. Our results demonstrate that MixAT's discrete-continuous defense offers a principled and superior robustness-accuracy tradeoff with minimal computational overhead, highlighting its promise for building safer LLMs. We provide our code and models at https://github.com/insait-institute/MixAT.

Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 43 of its 48 references that are in the map. First posted on arXiv 22 May 2025.

Builds on

43 of 48 references.

Closest ancestors · 14

Same direction, newest first

  1. 2025QueryAttack: Jailbreaking Aligned Large Language Models Using Structured Non-natural Query Language13 Feb
  2. 2025Constitutional Classifiers: Defending against Universal Jailbreaks across Thousands of Hours of Red Teaming31 Jan
  3. 2024Latent Adversarial Training Improves Robustness to Persistent Harmful Behaviors in LLMs22 Jul
  4. 2024Adversarial Tuning: Defending Against Jailbreak Attacks for LLMs7 Jun
  5. 2024Improved Few-Shot Jailbreaking Can Circumvent Aligned Language Models and Their Defenses3 Jun
  6. 2024Efficient Adversarial Training in LLMs with Continuous Attacks24 May
  7. 2024Fast Adversarial Attacks on Language Models In One GPU Minute23 Feb
  8. 2024Fight Back Against Jailbreaking via Prompt Adversarial Tuning9 Feb
  9. 2024Robust Prompt Optimization for Defending Language Models Against Jailbreaking Attacks30 Jan
  10. 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMs12 Jan
  11. 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automatically4 Dec
  12. 2023Jailbreaking Black Box Large Language Models in Twenty Queries12 Oct
2 more
  1. 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models3 Oct
  2. 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul

Other references · 29

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  3. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  4. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  5. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  6. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
  7. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  8. 2023Qwen Technical Reportcited by 3,344
  9. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
  10. 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,429
  11. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
  12. 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 839
17 more
  1. 2020Aligning AI With Shared Human Valuescited by 723
  2. 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
  3. 2023XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Modelscited by 505
  4. 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 404
  5. 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 336
  6. 2023OpenChat: Advancing Open-source Language Models with Mixed-Quality Datacited by 252
  7. 2023LLM Self Defense: By Self Examination, LLMs Know They Are Being Trickedcited by 244
  8. 2021Gradient-based Adversarial Attacks against Text Transformerscited by 234
  9. 2024ArtPrompt: ASCII Art-based Jailbreak Attacks against Aligned LLMscited by 216
  10. 2024Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Promptscited by 205
  11. 2024AEGIS: Online Adaptive AI Content Safety Moderation with Ensemble of LLM Expertscited by 136
  12. 2024Defending Against Unforeseen Failure Modes with Latent Adversarial Trainingcited by 88
  13. 2023Attack Prompt Generation for Red Teaming and Defending Large Language Modelscited by 76
  14. 2024Exploiting LLM Quantizationcited by 65
  15. 2019Universal Adversarial Perturbations for Speech Recognition Systemscited by 41
  16. 2025Model Tampering Attacks Enable More Rigorous Evaluations of LLM Capabilitiescited by 39
  17. 2024Extreme Miscalibration and the Illusion of Adversarial Robustnesscited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 10.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025AdversariaLLM: A Unified and Modular Toolbox for LLM Robustness Research
  2. 2024Adversarial Attacks on Large Language Models Using Regularized Relaxation
  3. 2026Defending Against Malicious Finetuning by Scaling Train-time Adversarial Attacks
  4. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Models
  5. 2024Breaking Down the Defenses: A Comparative Survey of Attacks on Large Language Models
  6. 2023Survey of Vulnerabilities in Large Language Models Revealed by Adversarial Attacks
  7. 2026BarrierSteer: LLM Safety via Learning Barrier Steering
  8. 2024Robust LLM safeguarding via refusal feature adversarial training