Semantic Segmentation of Legal Documents via Rhetorical Roles

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

Introduction

Legal documents are notoriously difficult for standard NLP systems due to their extreme length, domain-specific jargon, and lack of inherent structure. A single court judgment can be a "wall of text" spanning dozens of pages, making automated summarization, information extraction, or case retrieval nearly impossible without first understanding the document's internal structure. This paper addresses the challenge of semantic segmentation, the process of assigning a "Rhetorical Role" (RR) to every sentence to identify functional units such as background facts, petitioner arguments, and final rulings.

Methodology

The authors propose a specialized multi-task learning (MTL) architecture designed to handle the sequence-heavy nature of legal text. The core innovation is the introduction of Label Shift Prediction (LSP) as an auxiliary task. Observing a high degree of "label inertia"—where a sentence is 88% likely to share the same role as its predecessor—the researchers trained the model to predict whether a rhetorical role changes between sentence $i$ and $i+1$.

The Multi-Task Learning (MTL) framework architecture, illustrating the parallel Shift and RR components sharing a common BiLSTM-CRF backbone.

As shown in the architecture diagram above, the model features two parallel heads:

  1. Shift Component: Predicts if a role change occurs between sentences.
  2. RR Component: Predicts the actual rhetorical role (e.g., Fact, Statute, Precedent).

By sharing representations between these tasks, the "shift" signal acts as a guide for the main classification task, preventing erratic, sentence-to-sentence label flips. Additionally, the researchers utilized a self-training approach with model distillation to leverage unlabeled legal documents and mitigate the scarcity of expert-annotated data.

Datasets

The study utilized several key corpora:

  • New RR Corpus: 100 Indian legal documents (50 from Competition Law and 50 from Income Tax law) annotated by legal experts, totaling over 21,000 sentences.
  • ILDC (Indian Legal Documents Corpus): Used to evaluate the downstream task of automated legal judgment prediction.
  • Comparison Corpus: An existing 50-document corpus used to evaluate domain transfer capabilities.

Results and Discussion

The MTL model demonstrated superior performance and robustness across multiple legal domains. It achieved a Macro F1 score of 0.70 on the Income Tax (IT) domain and 0.69 on the Competition Law (CL) domain, consistently outperforming standard BERT and BiLSTM-CRF baselines.

Macro Average F1 performance across varying lambda values, demonstrating the performance boost of the multi-task IT+CL approach over the single-domain IT model.

Key insights from the results include:

  • The Power of Inertia: Incorporating the Label Shift as a feature significantly improved the model's ability to identify thematic blocks.
  • Domain Subjectivity: IT cases proved harder to segment than CL cases due to heavier reliance on subjective interpretations of precedents, reflected in lower inter-annotator agreement.
  • Downstream Utility: The paper proves that RR labeling directly benefits automated judgment prediction. Feeding only the "Ratio" and "Ruling" segments into a prediction model increased the F1 score from 0.55 to 0.58 compared to using raw text, while also providing much-needed interpretability.

Conclusion

This work demonstrates that structured semantic segmentation is a vital pre-processing step for legal NLP. While the current corpus is a significant contribution, the authors note that the 100-document sample size remains small for deep learning. Future work will focus on expanding the dataset, addressing multi-label assignments for overlapping roles, and extending the framework to cross-lingual applications in other Indian languages.

Summary updated

BibTeX
@inproceedings{malik2022semantic,
  author = {Vijit Malik and Rishabh Sanjay and Shouvik Kumar Guha and Angshuman Hazarika and Shubham Kumar 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