[Paper Review] Dependency Learning for Legal Judgment Prediction with a Unified Text-to-Text Transformer
This paper proposes a unified text-to-text Transformer based on T5 for legal judgment prediction, modeling dependencies among sub-tasks (law article, charge, penalty) through auto-regressive generation. Despite being pretrained on general-domain text, it outperforms domain-specific models and SOTA methods, especially on low-frequency labels, while enabling interpretable explanations via auxiliary tasks like court view and article content generation.
Given the fact of a case, Legal Judgment Prediction (LJP) involves a series of sub-tasks such as predicting violated law articles, charges and term of penalty. We propose leveraging a unified text-to-text Transformer for LJP, where the dependencies among sub-tasks can be naturally established within the auto-regressive decoder. Compared with previous works, it has three advantages: (1) it fits in the pretraining pattern of masked language models, and thereby can benefit from the semantic prompts of each sub-task rather than treating them as atomic labels, (2) it utilizes a single unified architecture, enabling full parameter sharing across all sub-tasks, and (3) it can incorporate both classification and generative sub-tasks. We show that this unified transformer, albeit pretrained on general-domain text, outperforms pretrained models tailored specifically for the legal domain. Through an extensive set of experiments, we find that the best order to capture dependencies is different from human intuitions, and the most reasonable logical order for humans can be sub-optimal for the model. We further include two more auxiliary tasks: court view generation and article content prediction, showing they can not only improve the prediction accuracy, but also provide interpretable explanations for model outputs even when an error is made. With the best configuration, our model outperforms both previous SOTA and a single-tasked version of the unified transformer by a large margin.
Motivation & Objective
- To address the limitations of prior methods that treat legal judgment sub-tasks as independent or implicitly shared, by modeling explicit dependencies among them.
- To develop a single, unified architecture that supports both classification and generative sub-tasks while enabling full parameter sharing.
- To improve few-shot generalization and performance on low-frequency labels, which previous models consistently overfit.
- To enhance model interpretability by introducing auxiliary tasks (court view and article content generation) that explain predictions.
- To investigate the optimal sub-task order for dependency learning, challenging human-intuitive logical sequences.
Proposed method
- The model uses a unified T5-based text-to-text Transformer, where each sub-task is treated as a masked span to be reconstructed during training.
- Sub-tasks are predicted in a specific auto-regressive order, allowing the model to learn dependencies through sequential generation.
- The original legal judgment document structure is used as a semantic prompt, aligning with the pretraining objective of T5.
- Auxiliary tasks—court view generation and law article content prediction—are jointly trained to improve primary task performance and provide explanation traces.
- The model leverages full parameter sharing across all sub-tasks, eliminating task-specific heads and reducing model complexity.
- During inference, generated sequences are mapped to classification labels for evaluation, preserving end-to-end simplicity.
Experimental results
Research questions
- RQ1What is the optimal order for sub-task dependency learning in legal judgment prediction, and does it align with human-logical intuition?
- RQ2Can a single unified text-to-text Transformer effectively model diverse sub-tasks (classification and generation) while sharing parameters?
- RQ3Does joint training with auxiliary tasks improve both accuracy and interpretability of legal judgment predictions?
- RQ4How does the model perform under few-shot settings, especially on low-frequency labels?
- RQ5Can the model generate explanations for its predictions, even when incorrect, via auxiliary outputs?
Key findings
- The unified text-to-text Transformer outperforms both previous SOTA models and a single-task version of the same architecture, especially on Macro-F1, indicating strong generalization on low-frequency labels.
- The model achieves superior few-shot learning performance, generalizing well with only hundreds of training examples.
- The optimal sub-task order for the model differs from human-logical intuition, as the model prioritizes minimizing error propagation over logical sequence.
- Court view generation not only improves prediction accuracy but also provides interpretable justification for predictions, even when errors occur.
- Law article content prediction significantly boosts performance in article prediction, outperforming a dedicated text-matching model in accuracy while being hundreds of times faster.
- The model’s ability to generate explanations via auxiliary tasks demonstrates a path toward transparent and trustworthy legal AI systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.