Abstract
Despite achieving state-of-the-art results in nearly all Natural Language Processing applications, fine-tuning Transformer-encoder based language models still requires a significant amount of labeled data. Active Learning (AL) is an iterative process designed to reduce human labeling effort by selecting only the most informative samples. AL strategies rely on quantified confidence measures, typically the softmax activation function. This paper compares eight alternative measures across seven datasets, revealing that softmax often provides misleading probabilities. We find that many methods prioritize "outliers"—hard-to-learn samples that hinder performance—leading to results worse than random sampling. We propose Uncertainty-Clipping, a heuristic to exclude these samples, resulting in consistent improvements across various uncertainty measures.
Introduction
Fine-tuning large Transformer models like BERT or RoBERTa is computationally and financially expensive due to the need for massive labeled datasets. Active Learning (AL) aims to mitigate this by iteratively selecting the most informative samples for human annotation. However, a significant challenge arises: the most "uncertain" samples according to standard metrics are often noise, mislabeled data, or extreme outliers. When a model focuses on these "impossible" tasks, its performance can drop below that of simple random sampling. This paper addresses the "outlier trap" by distinguishing between samples that are informative for the decision boundary and those that are merely detrimental noise.
Methods and Uncertainty-Clipping
The study evaluates eight uncertainty measures beyond standard softmax, including Bayesian methods (MC Dropout), calibration techniques (Label Smoothing, Temperature Scaling), ensembles (KLD, Vote Entropy), and deterministic approaches (Inhibited Softmax, TrustScore, Evidential Neural Networks).
To address the outlier problem, we introduce Uncertainty-Clipping (UC). Instead of selecting samples with the highest absolute uncertainty, UC discards the "top-k" most uncertain samples—the suspected outliers—and selects from the subsequent tier of uncertainty.
Three UC variants were tested:
- Top-k Clipping: Ignores a fixed percentage (e.g., top 5%) of the most uncertain samples.
- First Peak Clipping: Uses Kernel Density Estimation (KDE) to identify the first peak of outliers in the uncertainty distribution and clips beyond it.
- First Valley Clipping: Clips starting from the first valley following the main distribution.
Experimental Setup
The methods were evaluated on seven NLP benchmarks covering sentiment analysis (IMDB, Rotten Tomatoes, SST2), topic classification (AG’s News, TREC-6), and linguistic tasks (CoLA, Subjectivity). These datasets present varying levels of noise and class distributions.
Key Results and Discussion
Our findings confirm the "Softmax Fallacy": interpreting softmax as a true confidence measure often leads AL strategies astray due to overconfidence.
- Universal Improvement: Uncertainty-Clipping improved nearly every tested measure. For BERT, First Peak Clipping with KLD yielded a 3.99% relative gain in accuracy over the unclipped version.
- Overcoming the Outlier Trap: Without clipping, many AL strategies performed worse than random sampling. Clipping allows the model to focus on samples near the decision boundary rather than "garbage" samples.
- Practicality: While ensemble methods (KLD/VE) are effective, they are often too slow for real-time human-in-the-loop applications. Deterministic methods like TrustScore combined with UC offer a balance of high performance and low latency.
Conclusion
Uncertainty-Clipping provides a simple yet effective heuristic to improve Active Learning for Transformers by ignoring samples that are "impossible" to learn from. While the optimal clipping threshold may vary by domain, the principle of discarding extreme uncertainty consistently leads to more robust and efficient model training. Future work will explore real-time outlier detection and combining uncertainty with diversity-based sampling strategies.
Summary updated