Abstract
Causal graphs are used to model large language model inference processes, enabling transparent visualization of how models perceive and organize high-level concepts for predictions through a four-phase method involving concept discovery, mapping, and MCMC-inspired counterfactual augmentation.
Causal graphs provide a high-level language for making mechanisms transparent. Recent work uses Large Language Models (LLMs) to recover causal graphs of external-world processes. Instead, in this paper, we use causal graphs to model LLM inference itself, providing stakeholders with a transparent view of how the model perceives and organizes high-level concepts to produce a prediction. We propose a four-phase method for constructing such graphs. Given a target LLM and a set of textual examples, our method discovers class-discriminative, human-interpretable concepts and maps each input to LLM-perceived concept states. We then introduce an MCMC-inspired counterfactual augmentation procedure that expands the sparse observational data through chains of counterfactuals. This enables stable causal discovery with σ-CG, yielding informative, interpretable graphs. We apply our method to three LLMs across disease diagnosis, sentiment analysis, and LLM-as-a-judge classification tasks. We evaluate the learned graphs for predictive fidelity and structural stability, and the MCMC-inspired augmentation for convergence and downstream utility. Our results show that the discovered causal graphs capture meaningful dependencies consistent with LLMs' reasoning. Together, this paper provides a foundation for concept-level explainability of LLMs.
Community
While recent work often uses LLMs to extract causal graphs of the external world, we flip the approach: we use causal graphs to model LLM inference itself. This provides a transparent view of exactly how models perceive, organize, and connect high-level concepts to make a prediction.
Our approach in brief:
- Concept Mapping: Discovers human-interpretable concepts and maps inputs to LLM-perceived concept states.
- MCMC-Inspired Augmentation: Generates chains of counterfactuals to expand sparse observational data.
- Causal Discovery: Runs σ-CG on this enriched data to yield stable, informative causal graphs.
Does it work?
We evaluated this across 3 LLMs on three diverse tasks: disease diagnosis, sentiment analysis, and LLM-as-a-judge.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- NoisyCausal: A Benchmark for Evaluating Causal Reasoning Under Structured Noise (2026)
- METER: Evaluating Multi-Level Contextual Causal Reasoning in Large Language Models (2026)
- Bucketing the Good Apples: A Method for Diagnosing and Improving Causal Abstraction (2026)
- Causal Scaffolding for Physical Reasoning: A Benchmark for Causally-Informed Physical World Understanding in VLMs (2026)
- Learning Causal Orderings for In-Context Tabular Prediction (2026)
- The Abstraction Gap in Vision-Language Causal Reasoning (2026)
- CausalFlow: Causal Attribution and Counterfactual Repair for LLM Agent Failures (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2606.05972 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
