mlsanityData to 14 Oct 2026

CAVGAN: Unifying Jailbreak and Defense of LLMs via Generative Adversarial Attacks on their Internal Representations

arXiv 2507.06043 ↗First posted 8 Jul 2025cs.CR cs.AIcited by 5

On the map: LLM safety and security → Jailbreaking

Abstract (arXiv)

Security alignment enables the Large Language Model (LLM) to gain the protection against malicious queries, but various jailbreak attack methods reveal the vulnerability of this security mechanism. Previous studies have isolated LLM jailbreak attacks and defenses. We analyze the security protection mechanism of the LLM, and propose a framework that combines attack and defense. Our method is based on the linearly separable property of LLM intermediate layer embedding, as well as the essence of jailbreak attack, which aims to embed harmful problems and transfer them to the safe area. We utilize generative adversarial network (GAN) to learn the security judgment boundary inside the LLM to achieve efficient jailbreak attack and defense. The experimental results indicate that our method achieves an average jailbreak success rate of 88.85% across three popular LLMs, while the defense success rate on the state-of-the-art jailbreak dataset reaches an average of 84.17%. This not only validates the effectiveness of our approach but also sheds light on the internal security mechanisms of LLMs, offering new insights for enhancing model security The code and data are available at https://github.com/NLPGM/CAVGAN.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 25 of its 37 references that are in the map. First posted on arXiv 8 Jul 2025.

Builds on

25 of 37 references.

Closest ancestors · 11

Same direction, newest first

  1. 2024Jailbreak Attacks and Defenses Against Large Language Models: A Survey5 Jul
  2. 2024Towards Understanding Jailbreak Attacks in LLMs: A Representation Space Analysis16 Jun
  3. 2024How Alignment and Jailbreak Work: Explain LLM Safety through Intermediate Hidden States9 Jun
  4. 2024Defending Large Language Models Against Jailbreak Attacks via Layer-specific Editing28 May
  5. 2024Revisiting Jailbreaking for Large Language Models: A Representation Engineering Perspective12 Jan
  6. 2023Jailbreaking Black Box Large Language Models in Twenty Queries12 Oct
  7. 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attacks5 Oct
  8. 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLM18 Sep
  9. 2023Certifying LLM Safety against Adversarial Prompting6 Sep
  10. 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
  11. 2023Jailbroken: How Does LLM Safety Training Fail?5 Jul

Other references · 14

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  4. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  5. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
  6. 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
  7. 2017Interpretability Beyond Feature Attribution: Quantitative Testing with Concept Activation Vectors (TCAV)cited by 1,319
  8. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
  9. 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,085
  10. 2021Ethical and social risks of harm from Language Modelscited by 966
  11. 2023Red-Teaming Large Language Models using Chain of Utterances for Safety-Alignmentcited by 223
  12. 2023Inverse Scaling: When Bigger Isn't Bettercited by 207
2 more
  1. 2022Why Should Adversarial Perturbations be Imperceptible? Rethink the Research Paradigm in Adversarial NLPcited by 102
  2. 2024Uncovering Safety Risks of Large Language Models through Concept Activation Vectorcited by 67

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 2.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026The Art of the Jailbreak: Formulating Jailbreak Attacks for LLM Security Beyond Binary Scoring
  2. 2026SoK: Robustness in Large Language Models against Jailbreak Attacks
  3. 2025Paper Summary Attack: Jailbreaking LLMs through LLM Safety Papers
  4. 2024Adversarial Tuning: Defending Against Jailbreak Attacks for LLMs
  5. 2025Efficient and Stealthy Jailbreak Attacks via Adversarial Prompt Distillation from LLMs to SLMs
  6. 2025ForgeDAN: An Evolutionary Framework for Jailbreaking Aligned Large Language Models
  7. 2024AmpleGCG: Learning a Universal and Transferable Generative Model of Adversarial Suffixes for Jailbreaking Both Open and Closed LLMs
  8. 2026Jailbreaking Leaves a Trace: Understanding and Detecting Jailbreak Attacks from Internal Representations of Large Language Models