mlsanityData to 14 Oct 2026

Causality Analysis for Evaluating the Security of Large Language Models

arXiv 2312.07876 ↗First posted 13 Dec 2023cs.AIcited by 11

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

  1. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Models1 Sep
  2. 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul

Other references · 18

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
  5. 2022Locating and Editing Factual Associations in GPTcited by 2,691
  6. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
  7. 2022Red Teaming Language Models with Language Modelscited by 1,026
  8. 2023Detecting Language Model Attacks with Perplexitycited by 431
  9. 2023Multi-step Jailbreaking Privacy Attacks on ChatGPTcited by 333
  10. 2023Analyzing Leakage of Personally Identifiable Information in Language Modelscited by 285
  11. 2013Direct and Indirect Effectscited by 280
  12. 2023Automatically Auditing Large Language Models via Discrete Optimizationcited by 191
6 more
  1. 2023Prompt as Triggers for Backdoor Attack: Examining the Vulnerability in Language Modelscited by 94
  2. 2019Neural Network Attributions: A Causal Perspectivecited by 77
  3. 2022Causality-based Neural Network Repaircited by 47
  4. 2018Causal Testing: Finding Defects' Root Causescited by 22
  5. 2018Explaining Deep Learning Models using Causal Inferencecited by 18
  6. 2023Two-in-One: A Model Hijacking Attack Against Text Generation Modelscited by 12

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 7; 2025: 3; 2026: 1.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Safeguarding Efficacy in Large Language Models: Evaluating Resistance to Human-Written and Algorithmic Adversarial Prompts
  2. 2023Survey of Vulnerabilities in Large Language Models Revealed by Adversarial Attacks
  3. 2024Recent Advances in Attack and Defense Approaches of Large Language Models
  4. 2024Breaking Down the Defenses: A Comparative Survey of Attacks on Large Language Models
  5. 2025Attack and defense techniques in large language models: A survey and new perspectives
  6. 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challenges
  7. 2025A Survey of Attacks on Large Language Models
  8. 2024Exploring Vulnerabilities and Protections in Large Language Models: A Survey