Advantages of Domain Knowledge Injection for Legal Document Summarization: A Case Study on Summarizing Indian Court Judgments in English and Hindi

Debtanu Datta, Rajdeep Mukherjee, Adrijit Goswami, Saptarshi GhosharXiv 2026

TL;DR

Summarizing complex Indian court judgments into English and Hindi is a major hurdle for legal accessibility in India. This paper demonstrates that injecting domain knowledge via targeted, continual pre-training on small legal corpora significantly boosts both extractive and generative summarization models. The resulting domain-adapted models achieve state-of-the-art performance, notably outperforming general-purpose giants like GPT-4 in factual consistency and legal accuracy.

What Problem Does This Paper Address?

Indian legal texts are notoriously long, unstructured, and written in complex, archaic English. However, over 80% of the Indian population lacks English proficiency, creating a massive language barrier to justice, particularly for financially weaker sections. To democratize access to legal information, accurate summaries are urgently needed in both English and native regional languages like Hindi.

Standard NLP models and general-purpose Large Language Models (LLMs) struggle with this task. Legal documents require an understanding of highly specific jargon, statutes, and rhetorical structures (such as distinguishing between a "party argument" and the final "court ruling"). Without domain-specific grounding, standard generative models frequently hallucinate facts or misinterpret legal outcomes.

Methods

The authors explore domain knowledge injection across three distinct model architectures: Encoder-only (extractive), Encoder-Decoder (generative), and Decoder-only (generative).

  1. Extractive Summarization (InLegalSumExt): The authors modified SummaRuNNer (a neural sequence model that selects key sentences) by replacing its generic Word2Vec embedding layer with InLegalBERT—an encoder pre-trained specifically on Indian legal texts.
Figure 1: Architectures of SummaRuNNer and InLegalSumExt
  1. Generative Summarization via Continual Pre-Training (CPT): For generative models (T5-large for English-to-English, mT5-large for English-to-Hindi, and Gemma-2-2b for English-to-English), the authors introduced a two-step pipeline: task-agnostic continual pre-training on raw legal text followed by supervised fine-tuning (SFT).
Figure 2: We conduct continual pre-training over subsets of InLegalBERT-PT (for English) and Bail Corpora (for Hindi), then supervised fine-tuning over train and validation splits of MILDSum.
  1. Compute-Efficient Training: To make this process accessible without massive compute clusters, the authors successfully leveraged GaLore (Gradient Low-Rank Projection) for memory-efficient full-parameter pre-training and LoRA/QLoRA for parameter-efficient fine-tuning.
  2. Long-Document Handling: Because legal judgments routinely exceed model context windows, documents were broken into semantic chunks. For cross-lingual mapping, summary sentences were aligned to document chunks using Language-Agnostic BERT Sentence Embeddings (LaBSE).

Datasets

  • Pre-training Corpora:
  • English: Subsets of InLegalBERT-PT (27K and 68K documents containing Supreme Court and High Court judgments).
  • Hindi: Subsets of the Bail Corpus (17K and 34K district court bail application judgments).
  • Summarization Benchmark: MILDSum, a specialized dataset containing 3,122 Indian court judgments in English, complete with expert-crafted reference summaries in both English and Hindi.
Table 1: Statistics of the MILDSum dataset.

Key Insights and Ideas

  • Small Data, Big Impact: Interestingly, pre-training on a smaller subset (27K documents) yielded nearly identical downstream performance to a larger subset (68K documents). This indicates that domain alignment is highly data-efficient.
  • Task-Agnostic Pre-training Wins: Continual pre-training on raw, unlabeled legal text proved more effective than relying on models trained purely on massive, general-domain labeled datasets.
  • Cross-Lingual Synergy: For English-to-Hindi summarization, pre-training on an equal mix of English and Hindi legal text outperformed training on either language alone. This highlights a powerful cross-lingual transfer effect where the model learns legal concepts across language boundaries.
  • LLMs Aren't Lawyers: General-purpose models like GPT-4 struggle with localized legal nuances. For example, in error analyses, GPT-4 hallucinated non-existent entities like "The Supreme Court of Bombay" (the actual entity is the Bombay High Court), whereas domain-injected models maintained strict factual consistency.

Key Results

  • Extractive Boost: InLegalSumExt achieved a ~20% improvement in ROUGE-2 F1 and a 15% improvement in ROUGE-L F1 over the vanilla baseline.
  • Cross-Lingual Breakthrough: For English-to-Hindi summarization, the domain-adapted mT5-large model achieved a 23% improvement in ROUGE-2 F1 over the previous state-of-the-art baseline (CrossSum-mT5-FT).
  • Factual Consistency: The domain-adapted models scored significantly higher on automated factual consistency metrics (SummaC and NEPrec).
  • Expert Validation: A legal expert blindly evaluated the summaries on a 1–5 Likert scale. The domain-adapted models consistently scored higher in preserving critical information and accurately mapping rhetorical roles like Ratio of the Decision and Citations.

Limitations and Future Work

  • Language Constraints: The cross-lingual evaluation was restricted to Hindi. India has 22 official languages, and expanding this framework to other regional languages is constrained by the lack of localized legal corpora (like the Hindi Bail Corpus).
  • Context Window Limitations: Despite chunking strategies, older architectures like T5 still suffer from local truncation issues. While newer models like Gemma-2 handle larger context windows, optimizing long-range dependency modeling for legal narratives remains an open challenge.

Summary updated

BibTeX
@misc{datta2026advantages,
  author = {Debtanu Datta and Rajdeep Mukherjee and Adrijit Goswami and Saptarshi Ghosh},
  title = {{Advantages of Domain Knowledge Injection for Legal Document Summarization: A Case Study on Summarizing Indian Court Judgments in English and Hindi}},
  year = {2026},
  eprint = {2602.07382},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.07382},
}
Figure