DALE: Generative Data Augmentation for Low-Resource Legal NLP

Sreyan Ghosh, Chandra Kiran Reddy Evuru, Sonal Kumar, Ramaneswaran S, S Sakshi, Utkarsh Tyagi, Dinesh Manocha

TL;DR

This paper introduces DALE, a novel generative data augmentation framework specifically designed for low-resource legal NLP tasks. DALE overcomes the limitations of generic augmentation methods by employing a domain-specific pre-training strategy that learns legal language nuances, leading to significantly improved performance on various legal NLP tasks.

What Problem Does This Paper Address?

Natural Language Understanding (NLU) models have achieved remarkable success, but their application to specialized domains like legal NLP faces a significant hurdle: the scarcity of high-quality labeled data. Legal language, often termed "legalese," is characterized by its specialized vocabulary, complex syntax, and morphology, making it resistant to standard data augmentation techniques that merely rephrase text. These generic methods often fail to capture the nuances of legal language, leading to incoherent or irrelevant augmented data. This gap hinders the development of effective NLP tools for the legal domain, where expert annotation is prohibitively expensive.

Methods

DALE tackles this challenge through a novel generative data augmentation framework built upon an Encoder-Decoder Language Model (specifically, BART). The core innovation lies in its pre-training strategy:

  • Unsupervised Text Denoising with Selective Masking: Instead of random masking, DALE employs a domain-specific strategy that masks "collocated spans" of text. This means it identifies and masks groups of words that frequently co-occur in legal documents, mimicking how a legal practitioner might learn by understanding related concepts and phrases. This selective masking helps the model acquire a deeper understanding of legal concepts, principles, and language usage.
  • Correlated Span Extraction: DALE uses a modified Pointwise Mutual Information (PMI) approach to identify these correlated spans. A discounting factor is introduced to penalize rare tokens, ensuring that the extracted spans are relevant to the domain rather than just rare entities.
  • Optimal Context Selection: To handle long legal documents, DALE employs a PageRank-based algorithm to select the most informative sentences, ensuring that the input to the model is concise yet representative.
  • Conditional Generation: After pre-training, DALE performs conditional generation to produce synthetic augmentations tailored for specific low-resource legal NLP tasks. Optional fine-tuning on downstream datasets further refines the augmentation quality.

Datasets

DALE was pre-trained on a large corpus derived from the "Pile of Law" dataset, which includes various legal corpora such as Edgar Contracts, Caselaw, and MAUD. For downstream evaluation, DALE was tested on 13 legal datasets spanning 6 tasks across 4 low-resource settings. These tasks include:

  • Multi-class classification (MCC)
  • Multi-label classification (MLC)
  • Named Entity Recognition (NER)
  • Multiple Choice QA (MCQA)
  • Rhetorical Role Prediction (RR)
  • Document-level NLI (DLI)

Key Insights and Ideas

  • Domain-Specific Augmentation is Crucial: Generic data augmentation methods that work well for everyday language are largely ineffective for legal text due to its unique linguistic properties.
  • Masking Co-occurring Spans is Key: By masking related phrases and concepts, DALE learns to understand the contextual relationships within legal documents, leading to more coherent and relevant augmentations.
  • Pre-training on Legal Language Matters: DALE's pre-training objective, focused on denoising legal text with domain-specific masking, is critical for acquiring the necessary legal knowledge.
  • LLMs Still Struggle with Legal Nuances: Even state-of-the-art LLMs like ChatGPT, when applied to legal NLP tasks, often fail to generate effective augmentations or maintain label consistency, highlighting the need for specialized approaches.

Key Results

DALE demonstrated significant improvements across various legal NLP tasks and datasets.

  • Quantitative Improvements: DALE outperformed all baselines, including LLMs, with absolute improvements ranging from 1% to 50% across different tasks and datasets. For example, in Multi-label classification, DALE achieved improvements of 1%-49.8%, and in Multi-class classification, it showed gains of 1%-32.5%.
  • Qualitative Improvements: DALE generated augmentations that were more coherent, diverse, and label-consistent compared to other methods. A qualitative evaluation by law students confirmed DALE's ability to produce augmentations that were coherent, added plausible context, and matched the underlying data distribution.

Limitations and Future Work

The authors acknowledge a few limitations and suggest future directions:

  • English-Centric: DALE is currently limited to English legal documents. Future work aims to extend DALE to support multi-lingual legal language modeling.
  • Low-Resource Scenarios: In extreme low-resource settings, DALE with optional fine-tuning might be prone to overfitting. While pre-training helps, further exploration into combining pre-training and fine-tuning strategies is suggested.
  • PMI Scalability: The reliance on PMI for correlated span extraction is beneficial at scale. The authors plan to explore ways to overcome potential limitations in scenarios with less data.

Summary updated

Abstract

We present DALE, a novel and effective generative Data Augmentation framework for low-resource LEgal NLP. DALE addresses the challenges existing frameworks pose in generating effective data augmentations of legal documents - legal language, with its specialized vocabulary and complex semantics, morphology, and syntax, does not benefit from data augmentations that merely rephrase the source sentence. To address this, DALE, built on an Encoder-Decoder Language Model, is pre-trained on a novel unsupervised text denoising objective based on selective masking - our masking strategy exploits the domain-specific language characteristics of templatized legal documents to mask collocated spans of text. Denoising these spans help DALE acquire broad legal knowledge and develop the ability to generate coherent and diverse augmentations with novel contexts. Finally, DALE performs conditional generation to generate synthetic augmentations for low-resource Legal NLP tasks. We demonstrate the effectiveness of DALE on 13 datasets spanning 6 tasks and 4 low-resource settings. DALE outperforms all our baselines, including LLMs, qualitatively and quantitatively, with absolute improvements of 1%-50%.
BibTeX
@inproceedings{ghosh2023dale,
  author = {Sreyan Ghosh and Chandra Kiran Reddy Evuru and Sonal Kumar and Ramaneswaran S and S Sakshi and Utkarsh Tyagi and Dinesh Manocha},
  title = {{DALE: Generative Data Augmentation for Low-Resource Legal NLP}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.528},
}
Figure