mlsanityData to 7 Oct 2026

A Causal Perspective for Enhancing Jailbreak Attack and Defense

arXiv 2602.04893 ↗First posted 31 Jan 2026cs.LG cs.AI cs.CRcited by 0

On the map: LLM safety and security → Jailbreaking

Abstract (arXiv)

Uncovering the mechanisms behind "jailbreaks" in large language models (LLMs) is crucial for enhancing their safety and reliability, yet these mechanisms remain poorly understood. Existing studies predominantly analyze jailbreak prompts by probing latent representations, often overlooking the causal relationships between interpretable prompt features and jailbreak occurrences. In this work, we propose Causal Analyst, a framework that integrates LLMs into data-driven causal discovery to identify the direct causes of jailbreaks and leverage them for both attack and defense. We introduce a comprehensive dataset comprising 35k jailbreak attempts across seven LLMs, systematically constructed from 100 attack templates and 50 harmful queries, annotated with 37 meticulously designed human-readable prompt features. By jointly training LLM-based prompt encoding and GNN-based causal graph learning, we reconstruct causal pathways linking prompt features to jailbreak responses. Our analysis reveals that specific features, such as "Positive Character" and "Number of Task Steps", act as direct causal drivers of jailbreaks. We demonstrate the practical utility of these insights through two applications: (1) a Jailbreaking Enhancer that targets identified causal features to significantly boost attack success rates on public benchmarks, and (2) a Guardrail Advisor that utilizes the learned causal graph to extract true malicious intent from obfuscated queries. Extensive experiments, including baseline comparisons and causal structure validation, confirm the robustness of our causal analysis and its superiority over non-causal approaches. Our results suggest that analyzing jailbreak features from a causal perspective is an effective and interpretable approach for improving LLM reliability. Our code is available at https://github.com/Master-PLC/Causal-Analyst.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 40 of its 54 references that are in the map. First posted on arXiv 31 Jan 2026.

Builds on

40 of 54 references.

Closest ancestors · 16

Same direction, newest first

  1. 2025TwinBreak: Jailbreaking LLM Security Alignments based on Twin Prompts9 Jun
  2. 2024What Features in Prompts Jailbreak LLMs? Investigating the Mechanisms Behind Attacks2 Nov
  3. 2024GradSafe: Detecting Jailbreak Prompts for LLMs via Safety-Critical Gradient Analysis21 Feb
  4. 2024Attacking Large Language Models with Projected Gradient Descent14 Feb
  5. 2024SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decoding14 Feb
  6. 2024COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllability13 Feb
  7. 2024Weak-to-Strong Jailbreaking on Large Language Models30 Jan
  8. 2024A Cross-Language Investigation into Jailbreak Attacks in Large Language Models30 Jan
  9. 2023AutoDAN: Interpretable Gradient-Based Adversarial Attacks on Large Language Models23 Oct
  10. 2023Jailbreaking Black Box Large Language Models in Twenty Queries12 Oct
  11. 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generation10 Oct
  12. 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attacks5 Oct
4 more
  1. 2023Certifying LLM Safety against Adversarial Prompting6 Sep
  2. 2023Detecting Language Model Attacks with Perplexity27 Aug
  3. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models7 Aug
  4. 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul

Other references · 24

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2024The Llama 3 Herd of Modelscited by 14,192
  4. 2024Qwen2.5 Technical Reportcited by 4,713
  5. 2023Qwen Technical Reportcited by 3,273
  6. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
  7. 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,442
  8. 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,096
  9. 2018DAGs with NO TEARS: Continuous Optimization for Structure Learningcited by 745
  10. 2023Baichuan 2: Open Large-scale Language Modelscited by 664
  11. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 608
  12. 2023Causal Reasoning and Large Language Models: Opening a New Frontier for Causalitycited by 348
12 more
  1. 2019DAG-GNN: DAG Structure Learning with Graph Neural Networkscited by 329
  2. 2023Multi-step Jailbreaking Privacy Attacks on ChatGPTcited by 320
  3. 2023Shadow Alignment: The Ease of Subverting Safely-Aligned Language Modelscited by 284
  4. 2024Attacks, Defenses and Evaluations for LLM Conversation Safety: A Surveycited by 124
  5. 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
  6. 2023Causal-learn: Causal Discovery in Pythoncited by 108
  7. 2023Copiloting the Copilots: Fusing Large Language Models with Completion Engines for Automated Program Repaircited by 55
  8. 2023Causal Discovery from Temporal Data: An Overview and New Perspectivescited by 43
  9. 2023Bergeron: Combating Adversarial Attacks through a Conscience-Based Alignment Frameworkcited by 29
  10. 2024ALCM: Autonomous LLM-Augmented Causal Discovery Frameworkcited by 29
  11. 2024Exploring the Deceptive Power of LLM-Generated Fake News: A Study of Real-World Detection Challengescited by 28
  12. 2023Make Them Spill the Beans! Coercive Knowledge Extraction from (Production) LLMscited by 26

Built on by

Not cited yet.