TermDiffuSum: A Term-guided Diffusion Model for Extractive Summarization of Legal Documents

Xiangyun Dong, Wei Li, Yuquan Le, Zhangyue Jiang, Junxi Zhong, Zhong WangCOLING 2025

Introduction

Legal documents are characterized by their extreme length, density, and reliance on specialized terminology. For legal practitioners, navigating these case files requires accurate summaries that preserve factual integrity. While abstractive summarization models, such as large language models (LLMs), offer fluency, they are prone to hallucinations—a critical failure in the legal domain where strict accuracy is paramount.

Extractive summarization, which selects representative sentences directly from the source text, provides a safer alternative. Recent advances have utilized diffusion models to generate latent summary representations. However, standard diffusion models often fail to recognize the disproportionate importance of specialized legal terms, treating all words with equal weight. This oversight can lead to summaries that omit core legal concepts.

Comparison of legal term frequency across documents and summaries, highlighting the need for term-aware models.

The TermDiffuSum Framework

To address these challenges, we introduce TermDiffuSum, an extractive summarization framework built on a continuous diffusion model. Rather than generating text word-by-word, TermDiffuSum generates continuous embeddings of a target summary and identifies the source sentences that best align with these embeddings.

Multifactor Fusion Noise Weighting

A key innovation in TermDiffuSum is the Multifactor Fusion Noise Weighting Schedule. Unlike standard models that add noise uniformly, TermDiffuSum applies higher noise levels to sentences identified as highly important during the forward diffusion process. This strategy forces the model to prioritize the reconstruction of these critical sentences during the reverse denoising process. Sentence importance is determined by three factors:

  1. Legal Term Density: Sentences containing high concentrations of legal jargon.
  2. Word Information Entropy: Sentences with high semantic complexity.
  3. Positional Bias: Sentences located at the beginning or end of the document, reflecting standard legal writing structures.

Re-ranking Module

The framework also incorporates a Re-ranking Module that evaluates multiple candidate summaries. Using a contrastive loss function based on ROUGE scores, the model learns to rank candidates by their alignment with human-authored reference summaries, bridging the gap between latent representation optimization and textual evaluation metrics.

The complete TermDiffuSum architecture, illustrating the Sentence Encoder, Diffusion Module with multifactor noise weighting, and the Re-ranking Module.

Datasets and Evaluation

To evaluate the model, the authors introduced LegalAFSum, a new benchmark dataset comprising 846 document-summary pairs from UK and Singapore court cases. This dataset features expert annotations focusing on the "Analysis" and "Facts" sections. Additionally, the model was tested on general-domain datasets (CNN/DM, XSum, and Reddit) to assess its versatility outside of legal contexts.

Key Results and Insights

TermDiffuSum established a new state-of-the-art (SOTA) for legal extractive summarization. On the LegalAFSum dataset, it achieved a ROUGE-1 score of 64.57, significantly outperforming the previous leading diffusion model, DiffuSum, by over 3 points.

Notably, the study found that general-purpose LLMs like ChatGPT performed poorly on this specific extractive task, struggling to adhere to strict extractive constraints. This underscores the continued necessity for domain-specific models in high-stakes fields like law. Furthermore, the model demonstrated strong generalizability; by substituting legal terms with general keywords, TermDiffuSum also achieved SOTA results on standard public datasets.

Conclusion and Future Work

TermDiffuSum demonstrates that guiding diffusion models with domain-specific terminology and targeted noise schedules significantly improves extractive performance. While the current model focuses on specific document sections, future work aims to expand its capabilities to cover broader rhetorical roles within legal texts and to scale the underlying datasets for even more robust performance.

Summary updated

BibTeX
@inproceedings{dong2025termdiffusum,
  author = {Xiangyun Dong and Wei Li and Yuquan Le and Zhangyue Jiang and Junxi Zhong and Zhong Wang},
  title = {{TermDiffuSum: A Term-guided Diffusion Model for Extractive Summarization of Legal Documents}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2025},
}
Figure