A subscription to JoVE is required to view this content. Sign in or start your free trial.

Research Article

Case-Based Reasoning with Deep Learning for a Hybrid Approach to Legal Text Summarization

483 views

DOI:

10.3791/69287

December 12th, 2025

In This Article

Summary

This protocol integrates Case-Based Reasoning (CBR) with multi-stage transformer models to summarize legal texts. It preprocesses legal cases, retrieves similar precedents, adapts reasoning structures, and generates accurate, coherent summaries. Applications include legal research, judgment analysis, and decision-support systems, ensuring factual consistency and domain-specific reasoning fidelity.

Abstract

Legal documents are known to be long and complicated, which makes it essentially impossible for legal practitioners and researchers to quickly identify and extract relevant information. Here, a hybrid approach is presented that outperforms prior extractive and abstractive baselines on both lexical overlap and domain-specific reasoning metrics, which uses Case-Based Reasoning (CBR) for legal texts and concrete deep learning techniques for summary representation, accurately and efficiently producing summaries. Using a larger dataset of 4,968 legal cases from Kaggle, a multi-stage transformer architecture was constructed on top of the general CBR retrieval model created before to produce brief summaries along with CBR for context comprehension. The system was evaluated on legal outcome prediction and coherence of summary, with results showing performance superior to existing extractive and abstractive methods and trained the proposed model until 98% accuracy of legal entities, along with 46% more coherent legal corpus (baseline-enhanced) than state-of-the-art methods, compared using ROUGE scores above previous types by 23%. This study presents a hybrid legal text summarization framework that integrates CBR with transformer-based models. Extensive experiments show superior performance over recent baselines, achieving higher factual accuracy, reasoning fidelity, and legal entity preservation.

Introduction

The extensive legal documentation has necessitated advanced methods to retrieve pertinent data in a timely manner. Legal text summarization is important for improving accessibility and decision-making. Legal opinions, judgments, and precedents are so verbose that judges, practitioners, and researchers can have a difficult time working their way through them, thus leading to the development of automated methods to summarize these documents in an accurate and efficient manner1.

Despite their state-of-the-art performance in more general cases, existing summarization methods struggle to capture the uniq....

Access restricted. Please log in or start a trial to view this content.

Protocol

This protocol uses publicly available legal datasets. No sensitive personal or confidential data were used. The study complies with institutional ethical guidelines for the use of legal corpora in research (Koneru Lakshmaiah Education Foundation (Deemed to be University), Hyderabad, Telangana, India, Approval No.: KLEF/CS/2024/IRB-017). The study uses a dataset of 4,968 legal cases, each with inclusive annotations. Table 1 shows the dataset description.

precedent_citationsStructured citations to precedent ....

Access restricted. Please log in or start a trial to view this content.

Results

Evaluation metrics

The system was evaluated using a comprehensive set of metrics, which is shown in Table 6.

Metric CategorySpecific MetricsDescription
Lexical OverlapROUGE-1, ROUGE-2, ROUGE-LMeasures n-gram overlap between generate.......

Access restricted. Please log in or start a trial to view this content.

Discussion

The effectiveness of the CBR augmentation to the multi-stage transformer design has been achieved by establishing a new performance benchmark in legal domain text summarization. The results indicate a significant improvement in ROUGE scores of 78.4 ROUGE-1, 54.8 ROUGE-2, and 75.3 ROUGE-L, and domain-specific metrics of 98% legal entity recognition F1. To further validate the contribution of each component, introduced CBR-only and Transformer-only baselines. The CBR only baseline exhibited strong factual accuracy an.......

Access restricted. Please log in or start a trial to view this content.

Disclosures

The authors declare that no potential conflicts of interest related to the content of this study.

Acknowledgements

The authors express their sincere gratitude to the Department of Computer Science and Engineering, Koneru Lakshmaiah Education Foundation (Deemed to be University), Hyderabad, Telangana, India, for providing the computational facilities and research infrastructure essential to this work. Special thanks are extended to the legal experts and domain specialists who contributed to the annotation and evaluation of the legal corpus used in this study.

....

Access restricted. Please log in or start a trial to view this content.

Materials

List of materials used in this article
NameCompanyCatalog NumberComments
CPU HardwareAMD EPYC 7742 (64-Core, 2.25 GHz)1 unitAMD
FrameworkPyTorch2https://pytorch.org
GPU HardwareNVIDIA A100 (40 GB)2 unitsNVIDIA Corp.
Graph FrameworkDGL1.1https://www.dgl.ai
LibraryHugging Face Transformers4.32.0https://huggingface.co/transformers
LibrarySpaCy3.6https://spacy.io
LibraryNLTK3.8.1https://www.nltk.org

References

  1. Powers, D. M. Evaluation: From precision, recall and F-measure to ROC, informedness, markedness & correlation. J Mach Learn Technol. 2 (1), 37-63 (2011).
  2. Eisenberg, M. A. Legal Reasoning. , Cambridge University Press. (2022).
  3. Lin, C. Y.

Access restricted. Please log in or start a trial to view this content.

Reprints and Permissions

Tags

Transformer ArchitectureLegal Outcome PredictionLegal Entity RecognitionAbstractive SummarizationExtractive SummarizationROUGE Scores