Unveiling Causal Relationships Among Candidate Output Tokens in Large Language Models: Towards Interpretability and Control

Haoyu Peter Wang, Xiaohan Chen, Huajie Qian, Wotao Yin, Xinshang WangOpenReview 2025 · Submission to ICLR 2025 · Rejected

Abstract

Understanding how large language models (LLMs) generate tokens is crucial for enhancing their performance and interpretability. We hypothesize that cause-effect relationships exist among candidate output tokens during next token prediction in LLMs. Specifically, we propose that certain candidate output tokens---termed "effect tokens"---are causally influenced by other candidate tokens activated in earlier layers, referred to as "cause tokens". To test this hypothesis, we develop a causal analysis methodology that uncovers these relationships within open-source LLMs. We find that while cause tokens are essential for generating effect tokens, including them in the final output can degrade model performance. Building on these findings, we introduce a decoding algorithm that employs two heuristics: Critical Layer Ablation (CLA), which approximates causal relationships by selectively removing transformer layers and observing their impact on token generation, and Causally-Informed Decoding (CID), which uses the relationships identified by CLA to adjust token probabilities. Specifically, CID increases the probability of selecting effect tokens while decreasing that of cause tokens during generation. Our method achieves measurable accuracy improvements across various benchmark datasets, demonstrating its potential to enhance both the controllability and performance of LLM-generated text.
BibTeX
@misc{wang2025unveiling,
  author = {Haoyu Peter Wang and Xiaohan Chen and Huajie Qian and Wotao Yin and Xinshang Wang},
  title = {{Unveiling Causal Relationships Among Candidate Output Tokens in Large Language Models: Towards Interpretability and Control}},
  year = {2025},
  url = {https://openreview.net/forum?id=6o9QUqUq9f},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2025},
}
Figure