[Paper Review] IITP in COLIEE@ICAIL 2019: Legal Information Retrieval using BM25 and BERT
This paper presents a hybrid approach combining BM25, tf-idf, and BERT for legal information retrieval and entailment tasks in the COLIEE 2019 shared task. The authors achieve a 59.18% accuracy on the binary entailment classification task (Task 4) using BERT embeddings fine-tuned with XGBoost, demonstrating strong performance across all four sub-tasks in legal case retrieval, entailment detection, and question-answering on statutory law.
Natural Language Processing (NLP) and Information Retrieval (IR) in the judicial domain is an essential task. With the advent of availability domain-specific data in electronic form and aid of different Artificial intelligence (AI) technologies, automated language processing becomes more comfortable, and hence it becomes feasible for researchers and developers to provide various automated tools to the legal community to reduce human burden. The Competition on Legal Information Extraction/Entailment (COLIEE-2019) run in association with the International Conference on Artificial Intelligence and Law (ICAIL)-2019 has come up with few challenging tasks. The shared defined four sub-tasks (i.e. Task1, Task2, Task3 and Task4), which will be able to provide few automated systems to the judicial system. The paper presents our working note on the experiments carried out as a part of our participation in all the sub-tasks defined in this shared task. We make use of different Information Retrieval(IR) and deep learning based approaches to tackle these problems. We obtain encouraging results in all these four sub-tasks.
Motivation & Objective
- To address the challenge of automating legal information retrieval and entailment in judicial decision-making using NLP and AI.
- To develop and evaluate retrieval and classification systems for four distinct sub-tasks in the COLIEE 2019 shared task: case retrieval, case entailment, and statutory question-answering.
- To compare traditional IR methods (BM25, tf-idf, Doc2Vec) with deep learning models (BERT) on legal text understanding tasks.
- To improve efficiency and accuracy in identifying relevant case law and statutory articles for legal reasoning.
Proposed method
- Employed BM25 for dense retrieval of relevant legal cases based on query-case similarity, using term frequency and inverse document frequency weighting.
- Applied tf-idf vectorization with scikit-learn’s TfidfVectorizer to represent documents and compute similarity scores for retrieval tasks.
- Used Doc2Vec to generate dense vector representations of entire legal documents, enabling semantic similarity computation.
- Fine-tuned BERT-Base-Uncased for sentence-pair classification in Task 4, extracting [CLS] token embeddings as input features.
- Combined BERT embeddings with XGBoost for binary classification of entailment relationships (YES/NO) in Task 4, mitigating overfitting due to high-dimensional input.
- Retrieved top 100 documents per query in modified BM25 and tf-idf models to improve recall, especially in Task 1 and Task 3.
Experimental results
Research questions
- RQ1How effective are traditional IR methods like BM25 and tf-idf in retrieving relevant legal cases for judicial decision support?
- RQ2Can BERT-based models outperform classical IR techniques in legal entailment and question-answering tasks?
- RQ3To what extent does combining BERT embeddings with gradient-boosting classifiers improve performance on legal text classification?
- RQ4How do different retrieval strategies (e.g., top-k filtering) impact precision and recall in legal information retrieval?
Key findings
- The iitpBM25-L model achieved the highest Mean Average Precision (MAP) of 0.5409 in Task 3, outperforming other models in legal question-answering.
- The iitpbert model achieved 59.18% accuracy on the Task 4 entailment classification benchmark, demonstrating the effectiveness of BERT with XGBoost for legal NLP.
- BM25-based models outperformed Doc2Vec and tf-idf in both Task 1 and Task 2, with iitpBM25 achieving 0.6966 F-measure in Task 2.
- The modified BM25 and tf-idf models (iitpBM25-L and iitptfidf-L) significantly improved recall by retrieving 109 and 108 correct articles out of 121, respectively.
- Despite high-dimensional BERT embeddings (768-d), XGBoost generalization outperformed end-to-end fine-tuning with dense layers, yielding better validation accuracy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.