De-Biased Court's View Generation with Causality

Yiquan Wu, Kun Kuang, Yating Zhang, Xiaozhong Liu, Changlong Sun, Jun Xiao, Yueting Zhuang, Luo Si, Fei Wu

Introduction

In legal AI, generating a "court's view"—the section of a verdict where a judge explains their reasoning and provides a decision—is a high-stakes task. However, existing models suffer from a significant confounding bias. In real-world legal datasets, plaintiffs rarely sue unless they have a high probability of winning, leading to a dataset where over 76% of cases are "supported." Standard machine learning models often learn a statistical shortcut: "plaintiff + facts = win." This "winner's bias" causes AI to generate supportive views even when the facts dictate otherwise, making it unreliable for actual legal assistance.

The AC-NLG Framework

To address this, researchers have developed the Attentional and Counterfactual based Natural Language Generation (AC-NLG) method. This framework moves beyond simple pattern matching to incorporate causal reasoning through three primary components:

Architecture of the AC-NLG framework featuring a claim-aware encoder and counterfactual decoders.
  1. Claim-aware Encoder: Adhering to the "no claim, no trial" principle, this component uses an attention mechanism to focus specifically on fact descriptions relevant to the plaintiff's claims (e.g., focusing on interest rates if the claim is about unpaid interest).
  2. Counterfactual Decoders: The framework utilizes dual decoders—one for "supportive" views and another for "non-supportive" views—allowing the model to simulate both potential outcomes for any given case.
  3. Judgment Predictor & Backdoor Adjustment: This is the causal core of the system. By applying backdoor adjustment, the model shifts from calculating the conditional probability $P(V|I)$ to the interventional probability $P(V|do(I))$. This intervention de-biases the training process, forcing the model to learn the true relationship between facts and outcomes regardless of the lopsided data distribution.

Dataset and Evaluation

The study utilized a new dataset of 66,904 private lending cases from China. The data is heavily skewed, with 76% of cases being "supported." Experts with legal backgrounds annotated the judgments to provide high-quality ground truth. The authors have made this dataset publicly available to encourage further research in legal AI.

Key Results

AC-NLG significantly outperformed standard sequence-to-sequence (S2S) and Pointer-Generator Networks (PGN) across multiple metrics.

Comparison of generated court's views between PGN, AC-NLG, and the ground truth (REAL).
  • Generation Quality: The model achieved a ROUGE-L score of 50.8 and a BERTScore of 95.5, indicating high similarity to human-written verdicts.
  • Judgment Accuracy: The most notable improvement was in non-supported cases. AC-NLG increased the F1-score for these difficult cases from 49.8% (PGN) to 76.9%.
  • Expert Evaluation: In blind tests, legal experts rated AC-NLG significantly higher in both "Judgment level" (verdict correctness) and "Rational level" (logical consistency) compared to baseline models.

Conclusion and Future Work

While AC-NLG represents a major step forward in de-biasing legal AI, challenges remain. Future work will focus on claim-level granularity—where a judge might support some claims while rejecting others—and the integration of external legal knowledge bases. Importantly, this tool is designed to assist, not replace, human judges, and ongoing efforts are needed to address other demographic biases in historical legal data.

Summary updated

BibTeX
@inproceedings{wu2020de,
  author = {Yiquan Wu and Kun Kuang and Yating Zhang and Xiaozhong Liu and Changlong Sun and Jun Xiao and Yueting Zhuang and Luo Si and Fei Wu},
  title = {{De-Biased Court's View Generation with Causality}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.56},
}
Figure