Mitigating Uncertainty in Document Classification

Xuchao Zhang, Fanglan Chen, Chang-Tien Lu, Naren Ramakrishnan

Abstract

Deep Neural Networks (DNNs) often exhibit overconfidence, making them difficult to deploy in high-stakes environments like medical or legal document review. This paper introduces a framework that integrates metric learning with a novel Dropout-Entropy (DE) measurement to quantify model uncertainty. By identifying and delegating the most uncertain cases to human experts, the proposed system significantly enhances overall classification performance, particularly in complex multi-class scenarios.

Introduction

In critical domains, a standard 80% accuracy rate is insufficient. Effective "human-in-the-loop" systems require models that can accurately flag difficult cases for expert review. However, DNNs are prone to high-confidence errors. While Bayesian models offer better uncertainty estimation, they are often computationally prohibitive for large-scale text data. This research seeks to make DNNs "self-aware" by ranking their own uncertainty to optimize human resource allocation.

Proposed Framework

The authors introduce two primary innovations to the standard text classification pipeline:

  1. Metric Learning in Feature Space: Standard classifiers focus only on finding a decision boundary. The authors add a "metric loss" function that forces the model to cluster similar documents closer together and push different categories further apart. This creates "clearer gaps" in the feature space, making the model's predictions more stable and its uncertainty signals cleaner.
  2. Dropout-Entropy (DE) Measurement: Building on Monte Carlo Dropout, the model processes each document multiple times (e.g., 50 trials) with random neuron deactivation. A masking step filters out low-frequency "noise" predictions before calculating the information entropy of the remaining distribution. High entropy indicates the model is "flipping" between labels, signaling high uncertainty.
Visualizing how Metric Learning creates distinct margins between classes to stabilize uncertainty estimation.

Evaluation and Results

The model was evaluated on benchmarks including 20 Newsgroups, IMDb, and Amazon Reviews. Performance was measured using an "Uncertainty Ratio"—the total system accuracy achieved when $X\%$ of the most uncertain data is handed off to a human expert (assumed to be 100% accurate).

On the 20 Newsgroups dataset, the "DE + Metric" approach demonstrated significant gains. The system's Micro-F1 score rose from 0.781 at 0% human intervention to 0.918 with 30% intervention. Similarly, the Macro-F1 score improved from 0.774 to 0.904 over the same range, consistently outperforming standard dropout methods and Bayesian approximations.

Comprehensive results showing Micro and Macro F1 scores across various human-in-the-loop percentages.

Key Insights

  • Geometry Affects Uncertainty: The spatial arrangement of features matters. Without metric learning, documents may sit near messy decision boundaries where small perturbations cause wild prediction swings.
  • Multi-class vs. Binary: Gains are significantly higher on multi-class datasets (like 20 Newsgroups) than on binary ones. As the decision landscape becomes more crowded, sophisticated uncertainty ranking becomes vital.
  • Efficiency: Unlike traditional Bayesian Neural Networks, this approach does not require complex architectural changes, facilitating easier scaling to large datasets.

Limitations

The study assumes human experts are 100% accurate, which may not reflect real-world scenarios where humans have their own biases. Additionally, while faster than some Bayesian methods, running 50 inference trials per document increases computational cost during the prediction phase.

Summary updated

BibTeX
@inproceedings{zhang2019mitigating,
  author = {Xuchao Zhang and Fanglan Chen and Chang-Tien Lu and Naren Ramakrishnan},
  title = {{Mitigating Uncertainty in Document Classification}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/n19-1316},
}
Figure