Distinguish Confusion in Legal Judgment Prediction via Revised Relation Knowledge

Nuo Xu, Pinghui Wang, Junzhou Zhao, Feiyang Sun, Lin Lan, Jing Tao, Li Pan, Xiaohong Guan

TL;DR

Legal Judgment Prediction (LJP) models often confuse similar laws, a problem severely worsened by data imbalance where common charges overshadow rare ones. This paper introduces D-LADAN, an end-to-end framework that combines prior legal definitions with a dynamic, momentum-updated memory mechanism to correct this data-driven bias. By actively distilling subtle differences between easily confused categories, D-LADAN significantly improves prediction accuracy, particularly for rare "tail" cases.

What Problem Does This Paper Address?

Legal Judgment Prediction (LJP) uses text descriptions of case facts to automatically predict outcomes like applicable law articles, charges, and penalty terms. A major hurdle in this domain is the "confusing law articles" problem: distinct crimes often share highly similar legal text or factual contexts (for example, the subtle difference between accepting a bribe as a state staff member versus a non-state employee).

While recent models have attempted to use prior knowledge—such as analyzing word frequencies in statutory definitions—to separate these laws, they overlook posterior confusion. Posterior confusion occurs because real-world legal datasets are heavily imbalanced. During training, the model develops a negative inductive bias, blurring the lines between frequent ("many-shot") and rare ("few-shot") crimes simply because they appear in similar contexts. This leads to high misclassification rates for rare, tail-end categories.

Methods

The authors propose D-LADAN (Dynamic Law Article Distillation based Attention Network) to tackle both prior and posterior confusion simultaneously.

Comparison of LJP attention frameworks: (a) standard fact-law attention, (b) prior-based LADAN, and (c) the proposed D-LADAN framework which incorporates a posterior relation graph to correct data imbalance bias.

The architecture relies on two core components:

  1. Prior Knowledge Distillation: The model builds a graph of law articles based on text definitions and groups them into communities of highly similar laws. It then introduces a novel Graph Distillation Operation (GDO). Unlike standard graph operations that aggregate features, the GDO explicitly subtracts shared features between neighboring nodes to isolate unique, discriminative characteristics.
  2. Posterior Knowledge Revision: To combat data imbalance, D-LADAN introduces a momentum-updated memory mechanism. This module dynamically tracks how the model perceives similarities between categories as training progresses. A weighted GDO then uses this evolving posterior graph to adaptively adjust the model's attention, correcting the bias introduced by dominant classes.

The final text representation concatenates a basic semantic embedding, the prior distinguishable representation, and the revised posterior representation before passing them to a multi-task decoder.

Datasets

The model was evaluated on two major benchmarks:

  • CAIL2018: A large-scale Chinese legal dataset divided into CAIL-small (101,619 training cases) and CAIL-big (1,587,979 training cases), containing fact descriptions mapped to law articles, charges, and penalty intervals.
  • Criminal Dataset: A dataset specifically curated for few-shot charge prediction, divided into three sizes: Criminal-S (small), Criminal-M (medium), and Criminal-L (large).

Key Insights and Ideas

  • Prior similarity isn't the only trap: Data imbalance creates artificial confusion during training. Even if two laws look distinct on paper, a model flooded with examples of a dominant charge will start misclassifying the rarer charge into the common one if their factual contexts overlap.
  • Distillation over Aggregation: Traditional Graph Neural Networks (GNNs) aggregate neighborhood information, which can cause "over-smoothing"—making connected nodes look more alike. D-LADAN’s GDO does the opposite by stripping away commonalities to highlight differences.
  • LJP remains a challenge for general LLMs: The authors ran zero-shot and Retrieval-Augmented Generation (RAG) experiments using Large Language Models like GPT-4 and Llama-2. The LLMs struggled significantly compared to specialized NLU models due to the extreme multi-class nature of the task and the complexity of legal jargon.

Key Results

D-LADAN consistently outperformed state-of-the-art baselines (including R-former, Neurjudge, and CL4LJP) across all evaluation metrics (Accuracy, Macro-Precision, Macro-Recall, and Macro-F1).

  • Overall Performance Boost: On the CAIL-small dataset, D-LADAN improved the F1-scores of law article, charge, and penalty predictions by 0.87%, 0.51%, and 1.20% respectively over the previous best-performing baseline.
  • Rescuing the Tail Categories: The model showed massive gains in low-frequency categories. On the Criminal-S dataset, D-LADAN boosted the prediction accuracy of low-frequency charges by up to 9.33% compared to the Few-Shot baseline.
  • Backbone Independence: The framework proved highly robust, delivering consistent performance improvements whether layered on top of standard RNNs, BERT, or domain-specific models like Lawformer.

Limitations and Future Work

The primary limitation acknowledged in the paper is that the current framework assumes a simplified legal setting where each case maps to exactly one applicable law article and one primary charge.

Real-world legal scenarios are often much messier. The authors note that future work will focus on extending D-LADAN to handle complex, multi-label situations involving multiple defendants and multiple concurrent charges.

Summary updated

BibTeX
@article{xu2025distinguish,
  author = {Nuo Xu and Pinghui Wang and Junzhou Zhao and Feiyang Sun and Lin Lan and Jing Tao and Li Pan and Xiaohong Guan},
  title = {{Distinguish Confusion in Legal Judgment Prediction via Revised Relation Knowledge}},
  journal = {ACM Trans. Information Systems},
  year = {2025},
  doi = {10.1145/3689628},
}
Figure