Human-in-the-loop technical document annotation :

Juan F. Fung, Zongxia Li, Daniel J. Stephens, Ailin Mao, Pranav Goel, Emily Walpole, Alden Dima, Jordan Boyd‐Graber2024

Abstract

In this report, we address the following question: to what extent can machine learning assist a human with traditional text analysis, such as content analysis or grounded theory in the social sciences? In practice, such tasks require humans to review and categorize (e.g., by manually annotating the text with labels) a large sample of documents. We do not expect nor necessarily desire the machine to automate the tasks the human would otherwise perform, but rather want to find ways to help the human to perform the tasks more efficiently. We present a modular implementation of a system that incorporates supervised (active learning) and unsupervised (topic modeling) methods to assist humans with technical document annotation. The implemented system allows us to conduct user studies to evaluate the usefulness of machine assistance. We present results from two such user studies and highlight directions for future research.

Introduction

In the social sciences, methods like content analysis and grounded theory represent the gold standard for extracting rigorous meaning from unstructured text. However, these qualitative approaches are notoriously labor-intensive. A recent NIST study on community resilience, for instance, required four annotators to dedicate five months to manually labeling a corpus of 2,625 documents. As the volume of technical documentation grows exponentially, traditional manual workflows face a significant scalability crisis.

While fully automated machine learning (ML) solutions exist, they often lack the nuanced domain expertise and contextual understanding that human researchers provide. This research explores a "middle way": a human-in-the-loop (HITL) system designed not to replace the researcher, but to act as a high-powered assistant, enhancing efficiency and consistency.

The Annotune System: A Modular Approach

The researchers developed annotune, a modular system that synergizes two distinct machine learning paradigms to support the human annotator:

  1. Unsupervised Topic Modeling: Before annotation begins, the system employs models such as Latent Dirichlet Allocation (LDA) or modern Contextualized Topic Models (CTM) to cluster documents into thematic groups. This provides the researcher with an immediate "bird’s-eye view" of the dataset's conceptual landscape.
  2. Supervised Active Learning: Rather than presenting documents for labeling in a random or sequential order, the system uses active learning algorithms. These algorithms identify and recommend the most "informative" documents—those that, once labeled, will most significantly improve the performance of the underlying classifier.

A key focus of the study was comparing "traditional" probabilistic models (LDA) against "neural" models (CTM) to determine which offered superior assistance in a real-world workflow.

Methodology and Datasets

The effectiveness of the annotune system was evaluated using two distinct corpora:

  • Congressional Bills Dataset: A well-established, extensively coded corpus used in an initial 60-person user study to establish performance baselines.
  • RAS Planning Guidance Corpus: A specialized dataset containing approximately 2,600 documents related to community resilience, adaptation, and sustainability. This corpus was used for "expert validation" involving NIST subject matter experts.

Key Insights: Neural Models and Productivity

The study yielded several critical insights into the intersection of AI and qualitative research:

  • The Superiority of Neural Context: Contextualized Topic Models (CTM) significantly outperformed LDA. By leveraging pre-trained neural networks, CTMs provide more "compact and specific" keywords. This semantic richness allows human annotators to grasp the essence of a document cluster more quickly, leading to faster and more accurate labeling.
  • Quantifiable Productivity Gains: Extrapolating the experimental results suggests that the HITL system can reduce a three-month manual annotation project to just five weeks. This represents a minimum 58% increase in productivity.
  • Workforce Upskilling: The results suggest that HITL systems can lower the barrier to entry for complex text analysis. By providing machine-generated thematic cues, non-experts (such as students) can perform high-level content analysis that typically requires years of domain-specific training.
  • Task-Centric Evaluation: The researchers argue that standard automated ML metrics (like perplexity or coherence) are insufficient. The true measure of a model's utility is its performance within a human workflow—how much it actually aids a person in completing a specific task.

Results and Economic Impact

Performance was measured using three primary clustering metrics: Purity, Adjusted Rand Index (ARI), and Adjusted Normalized Mutual Information (ANMI).

In both general and expert studies, the combination of CTM and Active Learning consistently achieved the highest scores. Experts using the system reached an annotation speed of roughly 50 documents per hour. From an economic perspective, this efficiency translates to a dramatic reduction in labor costs. In a hypothetical scenario, a $7,200 wage bill for manual annotation could be reduced to approximately $3,000 using the annotune framework, while simultaneously increasing the qualitative value of the researcher's time.

Limitations and Future Directions

While the productivity gains are substantial, the researchers acknowledge the "No Free Lunch" theorem. The increase in speed comes with a minor, measurable loss in label quality compared to a 100% manual, multi-pass human process. None of the metrics reached a perfect 1.0, indicating that machine assistance introduces a degree of noise.

Looking forward, the rapid advancement of Large Language Models (LLMs) presents new opportunities. The authors intend to integrate LLMs into the annotune framework to further bridge the quality gap. Additionally, future research will address remaining bottlenecks, such as the labor-intensive processes of data curation and PDF-to-text conversion, which currently limit the end-to-end speed of the research pipeline.

Summary updated

BibTeX
@misc{fung2024human,
  author = {Juan F. Fung and Zongxia Li and Daniel J. Stephens and Ailin Mao and Pranav Goel and Emily Walpole and Alden Dima and Jordan Boyd‐Graber},
  title = {{Human-in-the-loop technical document annotation :}},
  year = {2024},
  doi = {10.6028/nist.tn.2287},
}
Figure