Causality Analysis for Evaluating the Security of Large Language Models
On the map: LLM alignment / RLHF / preference optimisation → Safety alignment and jailbreak attacks
also in 1 more
Abstract (arXiv)
Large Language Models (LLMs) such as GPT and Llama2 are increasingly adopted in many safety-critical applications. Their security is thus essential. Even with considerable efforts spent on reinforcement learning from human feedback (RLHF), recent studies have shown that LLMs are still subject to attacks such as adversarial perturbation and Trojan attacks. Further research is thus needed to evaluate their security and/or understand the lack of it. In this work, we propose a framework for conducting light-weight causality-analysis of LLMs at the token, layer, and neuron level. We applied our framework to open-source LLMs such as Llama2 and Vicuna and had multiple interesting discoveries. Based on a layer-level causality analysis, we show that RLHF has the effect of overfitting a model to harmful prompts. It implies that such security can be easily overcome by `unusual' harmful prompts. As evidence, we propose an adversarial perturbation method that achieves 100% attack success rate on the red-teaming tasks of the Trojan Detection Competition 2023. Furthermore, we show the existence of one mysterious neuron in both Llama2 and Vicuna that has an unreasonably high causal effect on the output. While we are uncertain on why such a neuron exists, we show that it is possible to conduct a ``Trojan'' attack targeting that particular neuron to completely cripple the LLM, i.e., we can generate transferable suffixes to prompts that frequently make the LLM produce meaningless responses.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Placed in Safety alignment and jailbreak attacks, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 20 of its 33 references that are in the map. First posted on arXiv 13 Dec 2023.
Builds on
20 of 33 references.
Closest ancestors · 2
Same direction, newest first
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Models1 Sep
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
Other references · 18
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
- 2022Red Teaming Language Models with Language Modelscited by 1,026
- 2023Detecting Language Model Attacks with Perplexitycited by 431
- 2023Multi-step Jailbreaking Privacy Attacks on ChatGPTcited by 333
- 2023Analyzing Leakage of Personally Identifiable Information in Language Modelscited by 285
- 2013Direct and Indirect Effectscited by 280
- 2023Automatically Auditing Large Language Models via Discrete Optimizationcited by 191
6 more
- 2023Prompt as Triggers for Backdoor Attack: Examining the Vulnerability in Language Modelscited by 94
- 2019Neural Network Attributions: A Causal Perspectivecited by 77
- 2022Causality-based Neural Network Repaircited by 47
- 2018Causal Testing: Finding Defects' Root Causescited by 22
- 2018Explaining Deep Learning Models using Causal Inferencecited by 18
- 2023Two-in-One: A Model Hijacking Attack Against Text Generation Modelscited by 12
Built on by
Citing papers per year: 2024: 7; 2025: 3; 2026: 1.
11 papers.
- 2024Red-Teaming for Generative AI: Silver Bullet or Security Theater?cited by 83
- 2024Defending Large Language Models Against Jailbreak Attacks via Layer-specific Editingcited by 79
- 2025JBShield: Defending Large Language Models from Jailbreak Attacks through Activated Concept Analysis and Manipulationcited by 54
- 2024JailbreakLens: Interpreting Jailbreak Mechanism in the Lens of Representation and Circuitcited by 22
- 2024LLMScan: Causal Scan for LLM Misbehavior Detectioncited by 13
- 2025Using Mechanistic Interpretability to Craft Adversarial Attacks against Large Language Modelscited by 10
- 2024Evaluating and Mitigating Linguistic Discrimination in Large Language Modelscited by 8
- 2024Layer-wise Alignment: Examining Safety Alignment Across Image Encoder Layers in Vision Language Modelscited by 4
- 2024Exploring Activation Patterns of Parameters in Language Modelscited by 3
- 2025SoK: a Comprehensive Causality Analysis Framework for Large Language Model Securitycited by 0
- 2026Why Do Large Language Models Generate Harmful Content?cited by 0
- 2026Why Do Large Language Models Generate Harmful Content?13 Apr 2026
- 2025SoK: a Comprehensive Causality Analysis Framework for Large Language Model Security4 Dec 2025
- 2025Using Mechanistic Interpretability to Craft Adversarial Attacks against Large Language Models8 Mar 2025
- 2025JBShield: Defending Large Language Models from Jailbreak Attacks through Activated Concept Analysis and Manipulation11 Feb 2025
- 2024JailbreakLens: Interpreting Jailbreak Mechanism in the Lens of Representation and Circuit17 Nov 2024
- 2024Layer-wise Alignment: Examining Safety Alignment Across Image Encoder Layers in Vision Language Models6 Nov 2024
- 2024LLMScan: Causal Scan for LLM Misbehavior Detection22 Oct 2024
- 2024Defending Large Language Models Against Jailbreak Attacks via Layer-specific Editing28 May 2024
- 2024Exploring Activation Patterns of Parameters in Language Models28 May 2024
- 2024Evaluating and Mitigating Linguistic Discrimination in Large Language Models29 Apr 2024
- 2024Red-Teaming for Generative AI: Silver Bullet or Security Theater?29 Jan 2024
Similar, not cited
Close in wording, no citation either way
- 2025Safeguarding Efficacy in Large Language Models: Evaluating Resistance to Human-Written and Algorithmic Adversarial Prompts
- 2023Survey of Vulnerabilities in Large Language Models Revealed by Adversarial Attacks
- 2024Recent Advances in Attack and Defense Approaches of Large Language Models
- 2024Breaking Down the Defenses: A Comparative Survey of Attacks on Large Language Models
- 2025Attack and defense techniques in large language models: A survey and new perspectives
- 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challenges
- 2025A Survey of Attacks on Large Language Models
- 2024Exploring Vulnerabilities and Protections in Large Language Models: A Survey