mlsanityData to 7 Oct 2026

Enhancing Adversarial Attacks through Chain of Thought

arXiv 2410.21791 ↗First posted 29 Oct 2024cs.CLcited by 8

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

Large language models (LLMs) have demonstrated impressive performance across various domains but remain susceptible to safety concerns. Prior research indicates that gradient-based adversarial attacks are particularly effective against aligned LLMs and the chain of thought (CoT) prompting can elicit desired answers through step-by-step reasoning. This paper proposes enhancing the robustness of adversarial attacks on aligned LLMs by integrating CoT prompts with the greedy coordinate gradient (GCG) technique. Using CoT triggers instead of affirmative targets stimulates the reasoning abilities of backend LLMs, thereby improving the transferability and universality of adversarial attacks. We conducted an ablation study comparing our CoT-GCG approach with Amazon Web Services auto-cot. Results revealed our approach outperformed both the baseline GCG attack and CoT prompting. Additionally, we used Llama Guard to evaluate potentially harmful interactions, providing a more objective risk assessment of entire conversations compared to matching outputs to rejection phrases. The code of this paper is available at https://github.com/sujingbo0217/CS222W24-LLM-Attack.

Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 22 of its 30 references that are in the map. First posted on arXiv 29 Oct 2024.

Builds on

22 of 30 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024BadChain: Backdoor Chain-of-Thought Prompting for Large Language Models20 Jan

Other references · 21

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  5. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
  6. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
  7. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  8. 2023Mistral 7Bcited by 3,065
  9. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
  10. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,793
  11. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,124
  12. 2022Red Teaming Language Models with Language Modelscited by 983
9 more
  1. 2023Gemini: A Family of Highly Capable Multimodal Modelscited by 810
  2. 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 684
  3. 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 520
  4. 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generationcited by 439
  5. 2016Solving General Arithmetic Word Problemscited by 353
  6. 2020AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Promptscited by 246
  7. 2021Gradient-based Adversarial Attacks against Text Transformerscited by 233
  8. 2023ToxicChat: Unveiling Hidden Challenges of Toxicity Detection in Real-World User-AI Conversationcited by 224
  9. 2020TextAttack: A Framework for Adversarial Attacks, Data Augmentation, and Adversarial Training in NLPcited by 45

Built on by

Cited by year

Citing papers per year: 2025: 8.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026CAP-CoT: Cycle Adversarial Prompt for Improving Chain of Thoughts in LLM Reasoning
  2. 2025Enhancing Generalization in Chain of Thought Reasoning for Smaller Models
  3. 2025Chain-of-Thought Driven Adversarial Scenario Extrapolation for Robust Language Models
  4. 2026Beyond Suffixes: Token Position in GCG Adversarial Attacks on Large Language Models
  5. 2024Stop Reasoning! When Multimodal LLM with Chain-of-Thought Reasoning Meets Adversarial Image
  6. 2025AdvChain: Adversarial Chain-of-Thought Tuning for Robust Safety Alignment of Large Reasoning Models
  7. 2025Refining Input Guardrails: Enhancing LLM-as-a-Judge Efficiency Through Chain-of-Thought Fine-Tuning and Alignment
  8. 2023Stress Testing Chain-of-Thought Prompting for Large Language Models