RELexED: Retrieval-Enhanced Legal Summarization with Exemplar Diversity

T. Y. S. S. Santosh, Chen Jia, Patrick Goroncy, Matthias Grabmair

Introduction

Legal documents, such as court rulings and case judgments, present unique challenges for automated summarization due to their length, technical terminology, and rigid stylistic requirements. Large Language Models (LLMs) often struggle to maintain thematic focus and consistent legal style in this domain. While Retrieval-Augmented Generation (RAG) can mitigate these issues by providing relevant examples, standard retrieval methods often select redundant exemplars, failing to capture the multifaceted nature of complex legal cases. The RELexED (Retrieval-Enhanced Legal Summarization with Exemplar Diversity) framework addresses these challenges by prioritizing diversity in the retrieved examples.

Methodology

RELexED utilizes a two-stage exemplar selection process designed to provide the model with a broad range of legal reasoning patterns:

  1. Semantic Filtering: Initial candidates are retrieved from a training corpus using BM25 to ensure basic relevance to the target case.
  2. Diverse Selection via Determinantal Point Processes (DPP): A DPP-based probabilistic framework selects a final set of exemplars by balancing quality (relevance) and diversity (uniqueness). This prevents the model's context window from being filled with redundant information.
  3. Influence Functions: Instead of simple lexical overlap, RELexED utilizes influence functions (specifically the TracIn method) to calculate similarity. This captures deeper relationships based on how a model's gradients are influenced by specific training examples, reflecting how the model actually "thinks" about the data.

The framework employs a Longformer encoder-decoder model, which is specifically optimized to handle the extensive token counts typical of legal texts.

Experimental Setup

RELexED was evaluated on two major legal benchmarks:

  • SuperSCOTUS: A dataset of U.S. Supreme Court cases where the goal is to generate a formal "Syllabus." These documents average over 5,400 tokens.
  • CivilSum: A dataset containing over 23,000 court decisions from the Supreme Court and High Courts of India, paired with human-written summaries.

Results and Discussion

RELexED demonstrated superior performance across lexical, semantic, and qualitative metrics. On the SuperSCOTUS dataset, it achieved a ROUGE-L score of 30.84, a significant improvement over the no-exemplar baseline (28.24) and standard BM25 retrieval (28.91).

Performance comparison of RELexED against baselines on SuperSCOTUS and CivilSum datasets.

Beyond lexical overlap, the most dramatic improvements were observed in UniEval metrics, which measure coherence and fluency. For instance, coherence scores on SuperSCOTUS jumped from 69.12 (baseline) to 74.86. These results suggest that diverse exemplars act as "soft templates," helping the model maintain the formal rigor and stylistic consistency required in legal contexts.

Diversity Analysis

To verify the impact of the DPP-based selection, the authors measured Inter-Exemplar (IE) similarity. RELexED consistently produced lower IE scores compared to standard BM25, confirming that the retrieved examples were more diverse and provided a broader range of perspectives to the model.

Metrics for Exemplar-Query (EQ) similarity and Inter-Exemplar (IE) similarity across different retrieval methods.

Conclusion

RELexED successfully leverages exemplar diversity and influence-based similarity to enhance legal summarization. By reducing redundancy and capturing deeper semantic relationships, the framework improves both the factual accuracy and stylistic quality of generated summaries. Future work should focus on developing domain-specific metrics and incorporating expert human review to further validate the practical utility of these systems in professional legal environments.

Summary updated

BibTeX
@inproceedings{santosh2025relexed,
  author = {T. Y. S. S. Santosh and Chen Jia and Patrick Goroncy and Matthias Grabmair},
  title = {{RELexED: Retrieval-Enhanced Legal Summarization with Exemplar Diversity}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.findings-naacl.26},
}
Figure