An Evaluation Framework for Legal Document Summarization

Ankan Mullick, Abhilash Nandy, Manav Nitin Kapadnis, Sohan Patnaik, Raghav R, Roshni Kar

Abstract

A law practitioner has to go through numerous lengthy legal case proceedings for their practices of various categories, such as land dispute, corruption, etc. Hence, it is important to summarize these documents, and ensure that summaries contain phrases with intent matching the category of the case. To the best of our knowledge, there is no evaluation metric that evaluates a summary based on its intent. We propose an automated intent-based summarization metric, which shows a better agreement with human evaluation as compared to other automated metrics like BLEU, ROUGE-L etc. in terms of human satisfaction. We also curate a dataset by annotating intent phrases in legal documents, and show a proof of concept as to how this system can be automated. Additionally, all the code and data to generate reproducible results is available on Github.

Introduction

Legal proceedings are notoriously dense, often stretching to thousands of words. For a law practitioner, keeping up with case law is a Herculean task, making automated summarization a necessity. However, the utility of a summary depends entirely on its ability to capture the core legal substance. Standard Natural Language Processing (NLP) metrics like ROUGE or BLEU often fail in the legal domain because they prioritize word overlap (lexical similarity) over legal substance.

In this paper, researchers from IIT Kharagpur and L3S Research Center propose a novel evaluation framework that shifts the focus from lexical similarity to legal intent. By identifying specific phrases that define the nature of a case, the framework provides a more accurate measure of a summary's relevance to a legal professional.

The Problem: Context-Free Evaluation

The average Indian Supreme Court judgment is roughly 4,500 words long. While modern AI can condense these documents, existing evaluation metrics are largely "context-free." They might assign a high score to a summary that uses the right vocabulary but misses the core legal "intent"—the specific actions, circumstances, or statutory elements that define the case's category (e.g., Corruption, Murder, or Land Dispute).

For a legal summary to be effective, it must contain phrases that convey the intent matching the category of the case. Without a metric to measure this, researchers cannot reliably rank different summarization models for practical legal use.

Methodology: The Intent Metric

The core contribution of this work is the Intent Metric, calculated as an F1-score based on "closePairs." The process involves several steps:

  1. Intent Phrases: The authors define a set of "intent phrases" ($P$) for a document. These are specific spans of text that define the crime or dispute (e.g., "preparation to kill" in a murder case).
  2. The Metric Calculation: A "closePair" is formed if an intent phrase is contained within a sentence of the generated summary ($O$).
  3. Precision ($P_{int}$): The fraction of summary sentences that contain at least one intent phrase.
  4. Recall ($R_{int}$): The fraction of original intent phrases that are successfully captured in the summary.
  5. F1-score: The harmonic mean of precision and recall, representing the overall "Intent Metric."

To ensure scalability, the authors developed an automated pipeline using Joint-BERT to classify documents and extract intent phrases, providing a proof-of-concept for a fully automated evaluation system that does not rely on permanent manual annotation.

Experimental Setup and Datasets

The study utilizes two primary datasets curated specifically for this task:

  • Indian Data (ID): 101 legal documents scraped from CommonLII, covering four categories: Corruption, Land Dispute, Murder, and Robbery.
  • Australian Data (AD): 59 documents from the UCI Legal Case Reports Dataset, categorized similarly.

Legal experts manually annotated "intent phrases" within these documents to create a gold standard. The researchers then benchmarked various summarization models, including domain-specific ones like LetSum, and general-purpose models like Legal-LED.

Key Insights

  • Intent as a Proxy for Relevance: The study found that if a summary captures the specific phrases defining the legal category, humans perceive it as significantly more relevant.
  • Lexical vs. Semantic Gap: Traditional metrics like BLEU and ROUGE are "lexical"—they look for exact word matches. The Intent Metric is more "semantic" because it focuses on the functional role a phrase plays in the legal narrative.
  • Domain-Specific Models: When classifying documents and extracting intent, domain-specific models like LEGAL-BERT and LEGAL-RoBERTa significantly outperformed general-purpose models, highlighting the unique linguistic structure of legal prose.

Results and Human Correlation

The effectiveness of the Intent Metric was validated through human evaluation. The metric showed a Spearman Rank Correlation of 0.42 with human "Relevance" scores on the Indian dataset. In stark contrast, BLEU exhibited a negative correlation (-0.09) and ROUGE-L was nearly zero (0.06), suggesting these standard metrics are almost entirely unaligned with what legal experts find useful.

Furthermore, the automated JointDistilBERT model achieved an accuracy of 0.95 in identifying the intent category for the Indian dataset, proving that the framework can be effectively automated.

Limitations and Future Work

While promising, the authors acknowledge several areas for growth:

  • Dataset Expansion: The study relies on 160 documents. Expanding this to more jurisdictions and legal categories is necessary for broader adoption.
  • Computational Constraints: High-performance models like Legal-LED required significant GPU memory (over 95%) for long summaries, posing challenges for resource-constrained environments.
  • Refining Automation: While the Joint-BERT approach is a strong proof-of-concept, further validation is needed to ensure automated extraction matches the quality of expert manual annotations in production environments.

This framework represents a significant step toward AI tools that understand the nuances of the law, rather than just the statistics of the text.

Summary updated

BibTeX
@inproceedings{mullick2022evaluation,
  author = {Ankan Mullick and Abhilash Nandy and Manav Nitin Kapadnis and Sohan Patnaik and Raghav R and Roshni Kar},
  title = {{An Evaluation Framework for Legal Document Summarization}},
  booktitle = {LREC},
  year = {2022},
  url = {https://openreview.net/forum?id=tvg_7fmfdv},
}
Figure