Goldilocks: Just-Right Tuning of BERT for Technology-Assisted Review

Eugene Yang, Sean MacAvaney, David D. Lewis, Ophir Frieder

TL;DR

This paper investigates the effectiveness of using BERT, a powerful transformer model, for Technology-Assisted Review (TAR) tasks, which are crucial for efficiently reviewing large document sets. They discover that while BERT can reduce review costs on in-domain data, its performance is highly sensitive to the "just-right" amount of language model fine-tuning and can even be outperformed by simpler linear models on out-of-domain data.

What Problem Does This Paper Address?

Technology-Assisted Review (TAR) is a critical process in fields like eDiscovery and systematic reviews, aiming to identify relevant documents within massive collections while minimizing human review effort. Traditionally, TAR has relied on linear models (e.g., logistic regression) applied to lexical features. However, the advent of powerful pre-trained transformer models like BERT has shown remarkable success in various NLP tasks, leading to the question of whether they can improve TAR efficiency. This paper addresses the challenge of effectively adapting BERT for TAR, considering its data-hungry nature and the unique characteristics of TAR workflows, particularly the transductive setting (evaluation on the same data used for training) and the high cost of labeling.

Methods

The authors adapt BERT for TAR by first performing language model (LM) fine-tuning on the target document collection using a masked language modeling objective. This step aims to adapt BERT's general language understanding to the specific domain of the review task. They then integrate this fine-tuned BERT model into an iterative active learning workflow. At each iteration, BERT is used to predict document relevance, and a batch of documents is selected for human review. The newly labeled documents are then used to further fine-tune BERT for classification. A key aspect of their methodology is investigating the impact of varying the amount of initial LM fine-tuning, exploring a "Goldilocks" approach to find the optimal balance. They also compare BERT's performance against traditional logistic regression models.

Datasets

The study uses two widely recognized datasets for evaluating TAR:

  • RCV1-v2: A collection of 804,414 news stories, downsampled to 160,833 documents for efficiency. The authors use a subset of 45 categories from this collection, considering it an "in-domain" task for BERT due to its similarity to BERT's pre-training corpora (English language books and Wikipedia).
  • Jeb Bush emails: A collection of 274,124 emails, downsampled to 137,062 documents. This dataset is considered "out-of-domain" for BERT, as the email content and style are expected to differ significantly from BERT's pre-training data.

Key Insights and Ideas

  • Domain Alignment is Crucial: BERT's effectiveness in TAR is highly dependent on the alignment between its pre-training data and the target task domain. On in-domain data (RCV1-v2), BERT can offer cost reductions, but on out-of-domain data (Jeb Bush emails), it can perform worse than simple linear models.
  • The "Goldilocks" Fine-Tuning: The amount of initial language model fine-tuning is critical. Too little or too much fine-tuning can lead to suboptimal performance, even worse than linear models, especially on favorable corpora. Finding the "just-right" amount is key.
  • Transductive Nature of TAR Matters: Unlike typical classification tasks where models generalize to unseen data, TAR is transductive. This means that the advantage transformers might have in capturing broad linguistic regularities present in unseen data is less relevant. The focus shifts to learning the specific patterns within the given collection.
  • Computational Overhead is Significant: Fine-tuning and running BERT for TAR is computationally expensive, taking hours per run compared to minutes for linear models. This overhead needs to be weighed against the potential effectiveness gains.

Key Results

  • On the RCV1-v2 (in-domain) collection, BERT models, with an appropriate amount of LM fine-tuning (around 5 epochs), reduced review costs by 10% to 15% compared to logistic regression, particularly under an "expensive training cost" scenario.
  • On the Jeb Bush emails (out-of-domain) collection, BERT models performed worse than logistic regression, with higher costs and sometimes lower R-Precision, even when fine-tuned.
  • The optimal amount of LM fine-tuning varied across different categories and difficulty levels within the RCV1-v2 dataset.
  • The computational overhead for a single TAR run with BERT was substantial, taking approximately 18 hours compared to about 20-25 seconds for logistic regression.

Limitations and Future Work

  • Domain Mismatch: The paper highlights that BERT's performance is severely hampered by domain mismatch, suggesting that pre-training on more relevant corpora (e.g., large email datasets for eDiscovery) could be beneficial.
  • Computational Cost: The significant computational cost of BERT is a major limitation, potentially making it impractical for smaller projects or those with tight deadlines.
  • Future Work: The authors suggest exploring a wider range of HRR tasks, sampling strategies tailored for neural models (e.g., Monte Carlo Dropout), and methods for handling documents longer than BERT's typical token limit. They also emphasize the need for research into pre-training transformer models on domain-specific data like emails and investigating potential biases introduced by pre-training corpora.

Summary updated

BibTeX
@inproceedings{yang2022goldilocks,
  author = {Eugene Yang and Sean MacAvaney and David D. Lewis and Ophir Frieder},
  title = {{Goldilocks: Just-Right Tuning of BERT for Technology-Assisted Review}},
  booktitle = {Ecir},
  year = {2022},
  doi = {10.1007/978-3-030-99736-6\_34},
}
Figure