SoK: a Comprehensive Causality Analysis Framework for Large Language Model Security
Wei Zhao, Zhe Li, Jun Sun

TL;DR
This paper introduces a comprehensive causality analysis framework for large language models, enabling systematic investigation of vulnerabilities and defenses, and demonstrating high effectiveness in safety-related tasks and attack detection.
Contribution
It presents the first unified causality analysis framework for LLMs, supporting multi-level interventions and analysis, and provides a comprehensive survey and empirical evaluation on safety and robustness.
Findings
Targeted interventions can reliably modify safety behavior.
Safety mechanisms are localized in early-to-middle layers.
Causal features achieve over 95% detection accuracy.
Abstract
Large Language Models (LLMs) exhibit remarkable capabilities but remain vulnerable to adversarial manipulations such as jailbreaking, where crafted prompts bypass safety mechanisms. Understanding the causal factors behind such vulnerabilities is essential for building reliable defenses. In this work, we introduce a unified causality analysis framework that systematically supports all levels of causal investigation in LLMs, ranging from token-level, neuron-level, and layer-level interventions to representation-level analysis. The framework enables consistent experimentation and comparison across diverse causality-based attack and defense methods. Accompanying this implementation, we provide the first comprehensive survey of causality-driven jailbreak studies and empirically evaluate the framework on multiple open-weight models and safety-critical benchmarks including jailbreaks,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdversarial Robustness in Machine Learning · Explainable Artificial Intelligence (XAI) · Topic Modeling
