CAVGAN: Unifying Jailbreak and Defense of LLMs via Generative Adversarial Attacks on their Internal Representations
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
- 2024Jailbreak Attacks and Defenses Against Large Language Models: A Survey5 Jul
- 2024Towards Understanding Jailbreak Attacks in LLMs: A Representation Space Analysis16 Jun
- 2024How Alignment and Jailbreak Work: Explain LLM Safety through Intermediate Hidden States9 Jun
- 2024Defending Large Language Models Against Jailbreak Attacks via Layer-specific Editing28 May
- 2024Revisiting Jailbreaking for Large Language Models: A Representation Engineering Perspective12 Jan
- 2023Jailbreaking Black Box Large Language Models in Twenty Queries12 Oct
- 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attacks5 Oct
- 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLM18 Sep
- 2023Certifying LLM Safety against Adversarial Prompting6 Sep
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
- 2023Jailbroken: How Does LLM Safety Training Fail?5 Jul
Other references · 14
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
- 2017Interpretability Beyond Feature Attribution: Quantitative Testing with Concept Activation Vectors (TCAV)cited by 1,319
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
- 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,085
- 2021Ethical and social risks of harm from Language Modelscited by 966
- 2023Red-Teaming Large Language Models using Chain of Utterances for Safety-Alignmentcited by 223
- 2023Inverse Scaling: When Bigger Isn't Bettercited by 207
Built on by
Citing papers per year: 2025: 3; 2026: 2.
5 papers.
- 2025TeleAI-Safety: A comprehensive LLM jailbreaking benchmark towards attacks, defenses, and evaluationscited by 7
- 2025NeuronTune: Fine-Grained Neuron Modulation for Balanced Safety-Utility Alignment in LLMscited by 4
- 2025A Survey on Training-free Alignment of Large Language Modelscited by 2
- 2026Depth Charge: Jailbreak Large Language Models from Deep Safety Attention Headscited by 1
- 2026Inference-Time Vulnerability Beyond Shallow Safety: Alignment Along Generation Trajectoriescited by 0
- 2026Inference-Time Vulnerability Beyond Shallow Safety: Alignment Along Generation Trajectories3 Jun 2026
- 2026Depth Charge: Jailbreak Large Language Models from Deep Safety Attention Heads6 Mar 2026
- 2025TeleAI-Safety: A comprehensive LLM jailbreaking benchmark towards attacks, defenses, and evaluations5 Dec 2025
- 2025NeuronTune: Fine-Grained Neuron Modulation for Balanced Safety-Utility Alignment in LLMs13 Aug 2025
- 2025A Survey on Training-free Alignment of Large Language Models12 Aug 2025
Similar, not cited
Close in wording, no citation either way
- 2026The Art of the Jailbreak: Formulating Jailbreak Attacks for LLM Security Beyond Binary Scoring
- 2026SoK: Robustness in Large Language Models against Jailbreak Attacks
- 2025Paper Summary Attack: Jailbreaking LLMs through LLM Safety Papers
- 2024Adversarial Tuning: Defending Against Jailbreak Attacks for LLMs
- 2025Efficient and Stealthy Jailbreak Attacks via Adversarial Prompt Distillation from LLMs to SLMs
- 2025ForgeDAN: An Evolutionary Framework for Jailbreaking Aligned Large Language Models
- 2024AmpleGCG: Learning a Universal and Transferable Generative Model of Adversarial Suffixes for Jailbreaking Both Open and Closed LLMs
- 2026Jailbreaking Leaves a Trace: Understanding and Detecting Jailbreak Attacks from Internal Representations of Large Language Models