Skip to main content
QUICK REVIEW

[Paper Review] Threshold-Based Retrieval and Textual Entailment Detection on Legal Bar Exam Questions

Sabine Wehnert, Sayed Anisul Hoque|arXiv (Cornell University)|May 30, 2019
Artificial Intelligence in LawSocial Sciences8 citations
TL;DR

This paper presents a threshold-based legal document retrieval system combining BM25 and Word Centroid Distance with word embeddings, and a stacked encoder model with attention for textual entailment detection on Japanese bar exam questions. It achieves 57.14% accuracy on the COLIEE 2019 entailment task, outperforming the baseline, and demonstrates that thresholding and ensemble modeling improve performance on legal NLP tasks with imbalanced data.

ABSTRACT

Getting an overview over the legal domain has become challenging, especially in a broad, international context. Legal question answering systems have the potential to alleviate this task by automatically retrieving relevant legal texts for a specific statement and checking whether the meaning of the statement can be inferred from the found documents. We investigate a combination of the BM25 scoring method of Elasticsearch with word embeddings trained on English translations of the German and Japanese civil law. For this, we define criteria which select a dynamic number of relevant documents according to threshold scores. Exploiting two deep learning classifiers and their respective prediction bias with a threshold-based answer inclusion criterion has shown to be beneficial for the textual entailment task, when compared to the baseline.

Motivation & Objective

  • To improve legal document retrieval and textual entailment detection for bar exam-style questions using hybrid retrieval and deep learning.
  • To address the challenge of legal text complexity and implicit dependencies in statutory law across international jurisdictions.
  • To reduce reliance on domain experts by automating the identification of relevant legal articles and entailment relationships.
  • To enhance model interpretability and performance through threshold-based relevance scoring and attention mechanisms.
  • To demonstrate the effectiveness of ensemble modeling and domain-adapted embeddings in low-resource legal NLP settings.

Proposed method

  • Combines BM25 scoring with Word Centroid Distance using word embeddings trained on English translations of German and Japanese civil law.
  • Applies dynamic thresholding to select a variable number of top-scoring documents based on similarity scores.
  • Employs a stacked encoder architecture with residual connections and attention mechanisms for textual entailment classification.
  • Uses two deep learning classifiers with prediction bias toward the negative class, combined via ensemble voting.
  • Applies threshold-based answer inclusion to filter predictions, improving precision in entailment detection.
  • Visualizes attention maps to interpret model decisions and identify failure cases related to out-of-vocabulary terms.

Experimental results

Research questions

  • RQ1Can combining lexical (BM25) and semantic (word embedding) retrieval methods improve legal document retrieval performance?
  • RQ2How does threshold-based selection of retrieved documents affect retrieval quality in legal information retrieval?
  • RQ3Can a stacked encoder with attention improve textual entailment detection on legal bar exam questions compared to baseline models?
  • RQ4To what extent do model biases toward the negative class affect entailment prediction, and how can they be mitigated?
  • RQ5How do attention mechanisms reveal model reasoning, and what insights do they provide into failure cases involving rare or domain-specific terms?

Key findings

  • The threshold-based retrieval method combining BM25 and Word Centroid Distance outperformed some baseline competitors, though improvements are expected with larger legal corpora for embedding training.
  • The stacked encoder model achieved 57.14% accuracy on the COLIEE 2019 entailment test set, surpassing the baseline model that always predicted 'no' (52.04% accuracy).
  • Both deep learning classifiers were biased toward predicting 'no' entailment, but they showed complementary prediction patterns on different instances.
  • Attention visualization revealed that the model correctly focused on semantically relevant query-document spans, such as 'no successor of the primary obligor may' and 'may make a claim for the extinction'.
  • Incorrect predictions were often linked to out-of-vocabulary terms like 'pre-contract', where GloVe embeddings failed to capture domain-specific usage.
  • The study suggests that training word embeddings on larger, domain-specific legal corpora could significantly improve model performance.

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.