Exploiting the Index Gradients for Optimization-Based Jailbreaking on Large Language Models
On the map: LLM safety and security → Jailbreaking
Abstract (arXiv)
Despite the advancements in training Large Language Models (LLMs) with alignment techniques to enhance the safety of generated content, these models remain susceptible to jailbreak, an adversarial attack method that exposes security vulnerabilities in LLMs. Notably, the Greedy Coordinate Gradient (GCG) method has demonstrated the ability to automatically generate adversarial suffixes that jailbreak state-of-the-art LLMs. However, the optimization process involved in GCG is highly time-consuming, rendering the jailbreaking pipeline inefficient. In this paper, we investigate the process of GCG and identify an issue of Indirect Effect, the key bottleneck of the GCG optimization. To this end, we propose the Model Attack Gradient Index GCG (MAGIC), that addresses the Indirect Effect by exploiting the gradient information of the suffix tokens, thereby accelerating the procedure by having less computation and fewer iterations. Our experiments on AdvBench show that MAGIC achieves up to a 1.5x speedup, while maintaining Attack Success Rates (ASR) on par or even higher than other baselines. Our MAGIC achieved an ASR of 74% on the Llama-2 and an ASR of 54% when conducting transfer attacks on GPT-3.5. Code is available at https://github.com/jiah-li/magic.
Key facts. Cited by 15 papers in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 22 of its 32 references that are in the map. First posted on arXiv 11 Dec 2024.
Builds on
22 of 32 references.
Closest ancestors · 12
Same direction, newest first
- 2024AttnGCG: Enhancing Jailbreaking Attacks on LLMs with Attention Manipulation11 Oct
- 2024AmpleGCG: Learning a Universal and Transferable Generative Model of Adversarial Suffixes for Jailbreaking Both Open and Closed LLMs11 Apr
- 2024Accelerating Greedy Coordinate Gradient and General Prompt Optimization via Probe Sampling2 Mar
- 2023Cognitive Overload: Jailbreaking Large Language Models with Overloaded Logical Thinking16 Nov
- 2023Scalable and Transferable Black-Box Jailbreaks for Language Models via Persona Modulation6 Nov
- 2023DeepInception: Hypnotize Large Language Model to Be Jailbreaker6 Nov
- 2023Jailbreaking Black Box Large Language Models in Twenty Queries12 Oct
- 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generation10 Oct
- 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher12 Aug
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
- 2023Jailbroken: How Does LLM Safety Training Fail?5 Jul
- 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Study23 May
Other references · 10
- 2023GPT-4 Technical Reportcited by 18,396
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,154
- 2023Safe RLHF: Safe Reinforcement Learning from Human Feedbackcited by 656
- 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 336
- 2023Evaluating Large Language Models at Evaluating Instruction Followingcited by 302
- 2023Shadow Alignment: The Ease of Subverting Safely-Aligned Language Modelscited by 297
Built on by
Citing papers per year: 2025: 5; 2026: 10.
15 papers.
Sort:
By area:
- 2025Logic Jailbreak: Efficiently Unlocking LLM Safety Restrictions Through Formal Logical Expressioncited by 16
- 2026HoneyTrap: Deceiving Large Language Model Attackers to Honeypot Traps with Resilient Multi-Agent Defensecited by 8
- 2025Towards the Worst-case Robustness of Large Language Modelscited by 7
- 2025NonTextual Target Attackcited by 3
- 2025Checkpoint-GCG: Auditing and Attacking Fine-Tuning-Based Prompt Injection Defensescited by 2
- 2026Unsafe by Reciprocity: How Generation-Understanding Coupling Undermines Safety in Unified Multimodal Modelscited by 2
- 2026SlotGCG: Exploiting the Positional Vulnerability in LLMs for Jailbreak Attackscited by 2
- 2025Differences That Matter: Auditing Models for Capability Gap Discovery and Rectificationcited by 1
- 2026Not All Tokens Are Created Equal: Query-Efficient Jailbreak Fuzzing for LLMscited by 1
- 2026Evolving Jailbreaks: Automated Multi-Objective Long-Tail Attacks on Large Language Modelscited by 0
- 2026GPO-V: Jailbreak Diffusion Vision Language Model by Global Probability Optimizationcited by 0
- 2026Few-Shot Truly Benign DPO Attack for Jailbreaking LLMscited by 0
3 more
- 2026Arbitrary Cipher Attacks Against Large Language Models Do Not Require Fine-Tuning9 Sep 2026
- 2026Stateful Cooperative Agents Safeguarding LLMs Against Evolving Multi-Turn Attacks31 Jul 2026
- 2026SlotGCG: Exploiting the Positional Vulnerability in LLMs for Jailbreak Attacks4 Jun 2026
- 2026Persona Attack: Incremental Memory Injection Jailbreak Attack against Large Language Models29 May 2026
- 2026Few-Shot Truly Benign DPO Attack for Jailbreaking LLMs9 May 2026
- 2026GPO-V: Jailbreak Diffusion Vision Language Model by Global Probability Optimization8 May 2026
- 2026Unsafe by Reciprocity: How Generation-Understanding Coupling Undermines Safety in Unified Multimodal Models28 Mar 2026
- 2026Not All Tokens Are Created Equal: Query-Efficient Jailbreak Fuzzing for LLMs24 Mar 2026
- 2026Evolving Jailbreaks: Automated Multi-Objective Long-Tail Attacks on Large Language Models20 Mar 2026
- 2026HoneyTrap: Deceiving Large Language Model Attackers to Honeypot Traps with Resilient Multi-Agent Defense7 Jan 2026
- 2025Differences That Matter: Auditing Models for Capability Gap Discovery and Rectification18 Dec 2025
- 2025NonTextual Target Attack3 Oct 2025
- 2025NonTextual Target Attackcited by 3
- 2026SlotGCG: Exploiting the Positional Vulnerability in LLMs for Jailbreak Attackscited by 2
- 2026Not All Tokens Are Created Equal: Query-Efficient Jailbreak Fuzzing for LLMscited by 1
- 2026Evolving Jailbreaks: Automated Multi-Objective Long-Tail Attacks on Large Language Modelscited by 0
- 2026Persona Attack: Incremental Memory Injection Jailbreak Attack against Large Language Modelscited by 0
- 2026Arbitrary Cipher Attacks Against Large Language Models Do Not Require Fine-Tuningcited by 0
- 2026Arbitrary Cipher Attacks Against Large Language Models Do Not Require Fine-Tuning9 Sep 2026
- 2026SlotGCG: Exploiting the Positional Vulnerability in LLMs for Jailbreak Attacks4 Jun 2026
- 2026Persona Attack: Incremental Memory Injection Jailbreak Attack against Large Language Models29 May 2026
- 2026Not All Tokens Are Created Equal: Query-Efficient Jailbreak Fuzzing for LLMs24 Mar 2026
- 2026Evolving Jailbreaks: Automated Multi-Objective Long-Tail Attacks on Large Language Models20 Mar 2026
- 2025NonTextual Target Attack3 Oct 2025
- 2026HoneyTrap: Deceiving Large Language Model Attackers to Honeypot Traps with Resilient Multi-Agent Defensecited by 8
- 2025Checkpoint-GCG: Auditing and Attacking Fine-Tuning-Based Prompt Injection Defensescited by 2
- 2026Stateful Cooperative Agents Safeguarding LLMs Against Evolving Multi-Turn Attackscited by 0
- 2026Stateful Cooperative Agents Safeguarding LLMs Against Evolving Multi-Turn Attacks31 Jul 2026
- 2026HoneyTrap: Deceiving Large Language Model Attackers to Honeypot Traps with Resilient Multi-Agent Defense7 Jan 2026
- 2025Checkpoint-GCG: Auditing and Attacking Fine-Tuning-Based Prompt Injection Defenses21 May 2025
Similar, not cited
Close in wording, no citation either way
- 2024Faster-GCG: Efficient Discrete Optimization Jailbreak Attacks against Aligned Large Language Models
- 2025Mask-GCG: Are All Tokens in Adversarial Suffixes Necessary for Jailbreak Attacks?
- 2024Improved Techniques for Optimization-Based Jailbreaking on Large Language Models
- 2024Boosting Jailbreak Attack with Momentum
- 2026Beyond Suffixes: Token Position in GCG Adversarial Attacks on Large Language Models
- 2026Breadth Beats Depth: Improving GCG-Based Jailbreak Optimization with Breadth-Oriented Suffix Search
- 2025The Resurgence of GCG Adversarial Attacks on Large Language Models
- 2025Advancing Jailbreak Strategies: A Hybrid Approach to Exploiting LLM Vulnerabilities and Bypassing Modern Defenses