Skip to main content
QUICK REVIEW

[Paper Review] BERT Goes to Law School: Quantifying the Competitive Advantage of Access to Large Legal Corpora in Contract Understanding

Emad Elwany, D. Moore|arXiv (Cornell University)|Nov 1, 2019
Artificial Intelligence in LawSocial Sciences6 references33 citations
TL;DR

The paper shows that fine-tuning BERT on a large, domain-specific legal corpus yields marginal but meaningful improvements in contract term classification and speeds up training, implying large unannotated legal corpora are a competitive edge.

ABSTRACT

Fine-tuning language models, such as BERT, on domain specific corpora has proven to be valuable in domains like scientific papers and biomedical text. In this paper, we show that fine-tuning BERT on legal documents similarly provides valuable improvements on NLP tasks in the legal domain. Demonstrating this outcome is significant for analyzing commercial agreements, because obtaining large legal corpora is challenging due to their confidential nature. As such, we show that having access to large legal corpora is a competitive advantage for commercial applications, and academic research on analyzing contracts.

Motivation & Objective

  • Assess how a domain-specific legal corpus impacts BERT-based contract classification performance.
  • Quantify performance gains from fine-tuning BERT on legal text versus using pre-trained BERT.
  • Examine how increasing legal corpus size affects end-task accuracy and training speed.

Proposed method

  • Fine-tune a BERT-Base uncased model on a proprietary legal corpus extracted from hundreds of thousands of agreements.
  • Compare baseline Bag-of-Words + neural classifier, BERT with and without end-task fine-tuning, and variations with unfrozen vs frozen BERT layers.
  • Evaluate on a hand-annotated contract term classification task (fixed vs auto-renewing).
  • Use train/validation/test splits with early stopping based on validation loss.
  • Report metrics: Precision, Recall, F1, and MCC (weighted).
  • Present results across configurations to assess the impact of domain-specific fine-tuning and corpus size.

Experimental results

Research questions

  • RQ1Does pre-trained BERT outperform a baseline lexical model on legal contract classification?
  • RQ2Does further fine-tuning BERT on a large legal corpus improve performance over using a pre-trained model alone?
  • RQ3How does increasing the size of the legal corpus used for fine-tuning affect accuracy and training efficiency?
  • RQ4Is freezing BERT layers detrimental or beneficial for this end task, and how does end-task fine-tuning interact with it?

Key findings

  • Pre-trained BERT improves over the baseline Bag-of-Words approach.
  • Fine-tuning BERT on a legal corpus yields additional performance gains over the pre-trained model.
  • Unfreezing BERT layers with fine-tuning achieves the strongest results among the tested configurations.
  • Larger legal corpora for fine-tuning provide further improvements in accuracy and faster training convergence.
  • A large legal corpus, even if unannotated, constitutes a valuable asset and competitive advantage for legal NLP applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.