Mitigating Hallucinations in Large Language Models via Causal Reasoning

Yuangang Li, Yiqing Shen, Yi Nian, Jiechao Gao, Ziyi Wang, Chenxiao Yu, Jie Wang, Xiyang Hu, Yue Zhao

Abstract

Large Language Models (LLMs) frequently suffer from hallucinations due to a lack of structured causal understanding, often relying on linguistic correlations rather than logical dependencies. This paper introduces CDCR-SFT (Causal-DAG Construction and Reasoning), a fine-tuning framework that enables LLMs to explicitly model causal relationships using Directed Acyclic Graphs (DAGs). By shifting from token-level prediction to variable-level causal inference, the proposed method achieves state-of-the-art performance on the CLADDER benchmark (95.33% accuracy) and significantly reduces logical hallucinations across various model families.

Introduction

LLMs often generate coherent but factually or logically incorrect outputs, a phenomenon known as hallucination. Traditional reasoning methods like Chain-of-Thought (CoT) or Tree-of-Thought (ToT) operate primarily at the linguistic level, predicting the next likely token without a formal model of the underlying causal variables. This leads to failures in handling complex structures such as confounders or colliders, resulting in spurious correlations. The authors argue that many hallucinations are not merely memory failures but fundamental logic failures stemming from a lack of causal grounding.

Methods: Causal-DAG Construction and Reasoning

The CDCR-SFT framework mandates a structured four-step reasoning process designed to ground the model's output in formal logic:

  1. Variable Identification: Extracting key entities (nodes) from the prompt.
  2. DAG Construction: Explicitly defining directed edges to represent causal relationships.
  3. Graph-Based Reasoning: Performing inference by tracing paths through the graph (e.g., interventions and counterfactuals).
  4. Validation and Answering: Deriving a final conclusion based on the established graph logic.
Comparison of CDCR-SFT reasoning with traditional LLM methods.

The models are fine-tuned using Supervised Fine-Tuning (SFT) with Low-Rank Adaptation (LoRA). To ensure the models remain general-purpose assistants, the causal training data is mixed with general instruction-following datasets like Alpaca.

Datasets and Benchmarks

The study introduces CausalDR, a massive new training resource containing 25,368 high-quality samples. These samples feature explicit causal DAGs and reasoning traces generated by DeepSeek-R1 and rigorously validated. Evaluation is conducted across three primary benchmarks:

  • CLADDER: The gold standard for causal reasoning, covering association, intervention, and counterfactuals.
  • WIQA: A benchmark for "what-if" reasoning in procedural text.
  • HaluEval: A large-scale benchmark used to measure the reduction in hallucinations.

Results and Insights

The implementation of CDCR-SFT across Llama, DeepSeek-Distill, Baichuan, and Mistral models yielded consistently strong results. Notably, Llama-3.1-8B reached 95.33% accuracy on CLADDER, surpassing the human baseline of 94.8% for the first time.

Correlation between causal performance and hallucination mitigation across different models.

A key finding is the direct correlation between improved causal reasoning and reduced hallucination rates. On the HaluEval benchmark, the method provided a 10% absolute improvement in accuracy. Ablation studies confirmed that the explicit construction of the DAG is the "secret sauce"; models trained only on question-answer pairs without the graph structure performed significantly worse. This proves that structural constraints prevent the model from drifting into illogical linguistic patterns.

Conclusion and Future Work

CDCR-SFT demonstrates that structured causal modeling is a potent tool for mitigating LLM hallucinations. By forcing reasoning to happen at the level of variables rather than tokens, the framework provides a robust logical foundation. While current success is based on canonical DAG structures (e.g., Diamond, Triangle) and synthetic data, future work will focus on scaling to complex real-world scenarios with hundreds of variables and ambiguous causal links.

Summary updated

BibTeX
@misc{li2025mitigating,
  author = {Yuangang Li and Yiqing Shen and Yi Nian and Jiechao Gao and Ziyi Wang and Chenxiao Yu and Li Li and Jie Wang and Xiyang Hu and Yue Zhao},
  title = {{Mitigating Hallucinations in Large Language Models via Causal Reasoning}},
  year = {2025},
  eprint = {2508.12495},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.12495},
}
Figure