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:
- 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).
- 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.
- 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.
- 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