Semantic Segmentation of Legal Documents via Rhetorical Roles

Vijit Malik, Rishabh Sanjay, Shouvik Kumar Guha, Angshuman Hazarika, Shubham Nigam, Arnab Bhattacharya, Ashutosh Modi

TL;DR

This paper introduces a new, fine-grained corpus of Indian legal documents annotated with 13 distinct "Rhetorical Roles" (such as facts, arguments, and statutes) to aid in document segmentation. To automate this task, the authors propose a Multi-Task Learning (MTL) framework that leverages "label shift prediction"—predicting whether consecutive sentences change roles—as an auxiliary task, significantly outperforming existing baseline models and demonstrating robust domain transfer capabilities.

What Problem Does This Paper Address?

Legal documents are notoriously difficult for conventional Natural Language Processing (NLP) systems to handle. They are exceptionally long, unstructured, riddled with domain-specific jargon, and frequently contain typographical errors from manual court typing. Furthermore, the legal domain is highly fragmented; a system trained on criminal law rarely translates well to income tax law due to severe domain shift.

To make these documents machine-readable and useful for downstream tasks like automated summarization or judgment prediction, text must be segmented into coherent functional units. While prior work attempted this, existing datasets used coarse-grained labels (typically around 8 roles) and struggled to generalize across different legal sub-domains. This paper addresses the need for both a more detailed, high-quality annotated dataset and a model capable of navigating the subtle transitions within legal texts.

Methods

The authors frame rhetorical role prediction as a sequence labeling task and introduce a novel Multi-Task Learning (MTL) BiLSTM-CRF architecture.

The core innovation is the introduction of an auxiliary task called Label Shift Prediction (LSP). Instead of just predicting the rhetorical role of a sentence, the model simultaneously learns to predict whether the rhetorical role changes (shifts) between the current sentence ($s_i$) and the next ($s_{i+1}$).

Two approaches were tested for the LSP component:

  1. SBERT-Shift: A Siamese network using Sentence-BERT embeddings.
  2. BERT-SC: A fine-tuned BERT model framed as a sentence semantic coherence task, which ultimately yielded superior performance and was integrated into the final MTL model.

The final architecture combines the sentence encodings from the shift detection component and the rhetorical role component, passing the concatenated output to a Conditional Random Field (CRF) layer for final sequence prediction. Additionally, the authors utilized semi-supervised model distillation (self-training) to leverage unlabeled data, boosting performance in data-scarce environments.

Datasets

The authors introduced a new corpus consisting of 100 legal judgment documents from Indian courts (Supreme Court, High Courts, and Tribunals), split evenly between two sub-domains:

  • Competition Law (CL): 50 documents containing 13,328 sentences.
  • Income Tax (IT): 50 documents containing 7,856 sentences.

Legal experts annotated the corpus using 13 fine-grained Rhetorical Roles (e.g., Argument Petitioner, Argument Respondent, Precedent Relied Upon, Precedent Not Relied Upon, Ratio Of The Decision).

For domain transfer evaluation, they used an external dataset (Dataset G) from prior literature consisting of 50 criminal and civil court cases.

Key Insights and Ideas

  • Label Shift Inertia: The authors discovered a strong contextual dependency in legal writing: on average, if a sentence has a specific rhetorical role, there is an 88% chance the next sentence shares the exact same role. Exploiting this "inertia" via the auxiliary LSP task provided the model with a powerful structural signal.
  • Domain Subjectivity Varies: Inter-annotator agreement was significantly higher for Competition Law (0.87 Fleiss Kappa) than for Income Tax law (0.65). Law professors noted that IT law involves a higher volume of precedents and statutory provisions, introducing more subjectivity into how judges structure their arguments and how annotators interpret them.
  • The "Destination" Agreement: Annotators frequently disagreed on the exact boundaries of a lower court's ruling or the core ratio (legal principle), but they highly agreed on the final ruling of the present court. This mirrors real-world legal analysis, where different lawyers may chart different analytical paths to arrive at the same conclusion.

Key Results

  • State-of-the-Art Performance: The proposed MTL (BERT-SC) model achieved a Macro F1 score of 0.70 on the IT domain and 0.69 on the CL domain, markedly outperforming standard BERT baselines (0.56 / 0.52) and previous BiLSTM-CRF implementations.
  • Strong Domain Transfer: When trained on the combined IT and CL datasets and tested on the completely unrelated Dataset G (civil/criminal), the MTL model achieved an F1 score of 0.63, beating the baseline's 0.60 and proving its adaptability to unseen legal domains.
  • Distillation Gains: Applying self-training with unlabeled data over two iterations raised the IT domain Macro F1 from 0.68 to 0.72, demonstrating that the model can effectively scale using unannotated legal archives.
  • Downstream Utility: Feeding only the gold-standard Ratio and Ruling sentences into a judgment prediction model boosted the F1 prediction accuracy from 0.55 to 0.58, validating that rhetorical segmentation isolates the most legally impactful text.

Limitations and Future Work

While the dataset was annotated with 13 fine-grained labels, the authors collapsed these into 7 main labels for their primary machine learning experiments due to data density and complexity constraints. They also restricted their focus to primary sentence labels, leaving the exploration of secondary and tertiary labels (sentences that serve multiple roles) to future work.

Moving forward, the team plans to expand the corpus size, explore cross-domain transfer techniques for documents written in other Indian languages, and apply the segmentation model to automated legal summarization.

Summary updated

BibTeX
@inproceedings{malik2022semantic,
  author = {Vijit Malik and Rishabh Sanjay and Shouvik Kumar Guha and Angshuman Hazarika and Shubham Nigam and Arnab Bhattacharya and Ashutosh Modi},
  title = {{Semantic Segmentation of Legal Documents via Rhetorical Roles}},
  booktitle = {NLLP @ EMNLP},
  year = {2022},
  doi = {10.18653/v1/2022.nllp-1.13},
}
Figure