CEMA - Cost-Efficient Machine-Assisted Document Annotations

Guowen Yuan, Ben Kao, Tien-Hsuan WuAAAI 2023

CEMA: Cost-Efficient Machine-Assisted Document Annotations

Abstract

Document annotation in specialized domains like law and medicine is prohibitively expensive due to the expertise and time required. While Active Learning (AL) aims to select the most informative documents, it often prioritizes complex, long-form texts that maximize human effort. We present CEMA (Cost-Efficient Machine-assisted Annotation), a framework that balances information gain against predicted human verification costs. By utilizing a BERT-based action predictor and a contribution-based selection strategy, CEMA achieves high model performance while reducing annotation costs by up to 85% compared to manual methods.

Introduction

In fields such as law and medicine, document annotation is a significant bottleneck for AI development. Unlike general tasks like image labeling, annotating a multi-page court judgment or a complex medical report requires substantial reading time and domain expertise.

Traditional Active Learning (AL) strategies typically select documents the model is most "uncertain" about. However, these documents are often the longest and most linguistically dense, leading to a "reading tax" that makes them incredibly expensive for human experts to verify. CEMA addresses this gap by explicitly accounting for the human time-cost involved in reading and correcting machine-generated labels.

Methods: The CEMA Framework

CEMA enhances the standard Machine-Assisted Annotation (MAA) workflow. In a typical MAA setup, a machine annotator (MA) provides initial labels, which a human "verifier" then corrects. CEMA introduces a sophisticated Document Selection Module to optimize this loop.

Comparison of Fully-manual annotation (FMA) and Machine-assisted annotation (MAA) workflows.

The core innovation of CEMA lies in three components:

  1. Human Cost Estimation: Rather than using document length as a proxy for cost, CEMA employs an Action Predictor. This neural network predicts the specific actions a human verifier will take for every token: Read, Confirm, Re-label, Delete, or Add. By mapping these actions to real-world time estimates, CEMA calculates a precise verification cost for each document.
  2. Knowledge Estimation: CEMA calculates a Contribution Score for each document using embeddings to determine if the information is redundant or unique relative to the current training set.
  3. Paragraph Filtering: To minimize unnecessary reading, CEMA automatically discards paragraphs where the machine annotator is highly confident no relevant features exist.
Architecture of the BERT-based action predictor used to estimate human verification time.

The final selection process uses a weighted optimization formula to pick documents that minimize cost while maximizing knowledge gain.

Evaluation and Results

CEMA was evaluated on two challenging datasets: Drug Trafficking Judgments (DTJ) (4,045 legal documents) and a German Legal (GL) dataset.

  • Cost Efficiency: To reach an F1 score of 0.8 on the DTJ dataset, CEMA required only 15% of the cost of a fully manual process. On the GL dataset, it achieved target accuracy at 24.4% of the manual cost.
  • Superior Selection: CEMA outperformed standard AL strategies like Least Confidence (LC), which often selected documents nearly 3x longer than average, leading to excessive human costs.
  • Effective Filtering: In the DTJ dataset, CEMA filtered out 86.3% of paragraphs. Over 99% of these were correctly identified as containing no features, significantly reducing the human "reading tax."

Discussion and Limitations

The study highlights that "short document" strategies (MinL) are often traps; while cheap per document, they lack the information density needed for robust training. Conversely, standard AL can be counter-productive by ignoring human effort.

Current limitations include a "cold start" requirement for a small seed set of manually annotated documents and the use of fixed time-costs for human actions. Future work may explore dynamic cost modeling that accounts for annotator fatigue and varying levels of expertise.

Conclusion

CEMA demonstrates that by integrating human cost prediction directly into the document selection process, machine-assisted annotation can become significantly more viable for high-expertise domains, achieving high accuracy at a fraction of the traditional cost.

Summary updated

BibTeX
@inproceedings{yuan2023cema,
  author = {Guowen Yuan and Ben Kao and Tien-Hsuan Wu},
  title = {{CEMA - Cost-Efficient Machine-Assisted Document Annotations}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i9.26308},
}
Figure