Skip to main content
QUICK REVIEW

[Paper Review] JNLP Team: Deep Learning for Legal Processing in COLIEE 2020

Ha-Thanh Nguyen, Hai-Yen Thi Vuong|arXiv (Cornell University)|Nov 4, 2020
Topic ModelingComputer Science4 references21 citations
TL;DR

The JNLP Team proposes a deep learning approach for legal text processing in COLIEE 2020, leveraging fine-tuned BERT-based models—particularly BERT Law—on large-scale legal data to improve legal retrieval and textual entailment. Their method achieves state-of-the-art performance, with BERT Law outperforming BERT-base-uncased by 15.5% in accuracy on Task 4, demonstrating the effectiveness of domain-specific pretraining for legal NLP tasks.

ABSTRACT

We propose deep learning based methods for automatic systems of legal retrieval and legal question-answering in COLIEE 2020. These systems are all characterized by being pre-trained on large amounts of data before being finetuned for the specified tasks. This approach helps to overcome the data scarcity and achieve good performance, thus can be useful for tackling related problems in information retrieval, and decision support in the legal domain. Besides, the approach can be explored to deal with other domain specific problems.

Motivation & Objective

  • Address data scarcity in legal NLP by leveraging large-scale pretraining on legal text to improve model generalization.
  • Develop a hybrid system combining deep learning with lexical matching (BM25) to enhance retrieval and entailment performance.
  • Investigate the impact of domain-specific pretraining by introducing BERT Law, a legal-optimized BERT variant.
  • Improve legal question-answering and case retrieval by combining weakly labeled supporting relations with neural scoring.
  • Evaluate model stability and performance across multiple legal tasks, including retrieval and textual entailment, under real-world data constraints.

Proposed method

  • Fine-tune a BERT base model on a weakly labeled dataset of supporting text-pairs automatically extracted via heuristics from case law documents.
  • Combine BERT-based supporting scores with BM25 lexical similarity scores using a weighted fusion: $score = \alpha \cdot score_{supporting} + (1 - \alpha) \cdot score_{BM25}$.
  • Train a dedicated BERT Law model on legal text, pre-trained on a large corpus of Japanese and Canadian legal documents to improve domain adaptation.
  • Use data augmentation with law sentences and past bar questions to expand training data for the lawfulness classification task.
  • Apply two distinct approaches for Task 4: (1) textual entailment using gold or Tf-idf-retrieved articles, and (2) binary classification of lawfulness using BERT Law.
  • Optimize hyperparameters and model selection using a 10% development set, with final runs evaluated on gold test data.

Experimental results

Research questions

  • RQ1Can domain-specific pretraining with BERT Law significantly improve performance on legal text processing tasks compared to general-domain BERT?
  • RQ2Does combining deep learning with lexical similarity (BM25) yield better results than either method alone in legal retrieval tasks?
  • RQ3Is there a benefit to using Tf-idf-retrieved supplementary articles instead of gold-standard data for training in textual entailment tasks?
  • RQ4How does data quality and quantity affect the performance of fine-tuned BERT models in legal NLP benchmarks?
  • RQ5Can weakly labeled data from heuristics effectively train a supporting relationship classifier in legal case retrieval?

Key findings

  • The BERT Law model achieved 81.68% accuracy on the development set for the lawfulness classification task, significantly outperforming BERT-base-uncased (77.84%).
  • On the gold test set of Task 4, BERT Law achieved 72.32% accuracy, a 15.5% improvement over BERT-base-uncased (56.25%) and 16.0% over Tf-idf + BERT-base (55.36%).
  • Using Tf-idf-retrieved supplementary articles for training improved performance on the textual entailment task by 1.39 percentage points (0.5417 vs. 0.5278) compared to gold data alone.
  • The hybrid scoring model combining BERT supporting scores and BM25 lexical similarity improved retrieval performance by leveraging complementary strengths of deep learning and lexical matching.
  • The results demonstrate that domain-specific pretraining (BERT Law) is critical for achieving high performance in legal NLP, especially in low-resource settings.
  • Despite variability in test data, BERT Law showed consistent and substantial gains across multiple evaluations, indicating strong generalization and robustness in legal text understanding.

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.