[Paper Review] To Softmax, or not to Softmax: that is the question when applying Active Learning for Transformer Models
This paper investigates uncertainty estimation methods for active learning in Transformer models, finding that standard softmax leads to over-picking of outliers. To address this, it proposes Uncertainty Clipping—a simple heuristic that ignores the top-k most uncertain samples—improving performance across all methods, including vanilla softmax, which remains competitive when combined with the heuristic.
Despite achieving state-of-the-art results in nearly all Natural Language Processing applications, fine-tuning Transformer-based language models still requires a significant amount of labeled data to work. A well known technique to reduce the amount of human effort in acquiring a labeled dataset is extit{Active Learning} (AL): an iterative process in which only the minimal amount of samples is labeled. AL strategies require access to a quantified confidence measure of the model predictions. A common choice is the softmax activation function for the final layer. As the softmax function provides misleading probabilities, this paper compares eight alternatives on seven datasets. Our almost paradoxical finding is that most of the methods are too good at identifying the true most uncertain samples (outliers), and that labeling therefore exclusively outliers results in worse performance. As a heuristic we propose to systematically ignore samples, which results in improvements of various methods compared to the softmax function.
Motivation & Objective
- To address the poor performance of active learning (AL) in fine-tuning Transformer models, especially when relying on softmax for uncertainty estimation.
- To evaluate eight alternative uncertainty estimation methods beyond softmax in the context of AL for Transformer-based NLP models.
- To investigate why uncertainty-based AL strategies often fail on Transformers, particularly due to over-selection of hard-to-learn outliers.
- To propose and validate a simple, effective heuristic—Uncertainty Clipping—that improves AL performance by systematically ignoring the most uncertain samples.
- To determine whether the vanilla softmax function remains viable in AL for Transformers when combined with a corrective mechanism.
Proposed method
- The authors compare eight uncertainty estimation methods: Softmax, Monte-Carlo Dropout, TrustScore, Label Smoothing, Deep Gini, Evidential Neural Networks, Softmax Ensemble, and Softmax with Temperature Scaling.
- They apply these methods within a standard pool-based active learning cycle, using BERT and RoBERTa as base models across seven text classification datasets.
- The key innovation is Uncertainty Clipping (UC), which removes the top-k most uncertain samples from the query batch before labeling, preventing over-reliance on outliers.
- The method is implemented as a post-processing step on model uncertainty scores, requiring no architectural changes or additional training.
- Performance is evaluated using accuracy over labeling budget, class distribution shifts, and runtime efficiency across multiple AL iterations.
- Experiments include end-to-end training and evaluation, with runtime measured separately from model fine-tuning.
Experimental results
Research questions
- RQ1Why do uncertainty-based active learning strategies fail to improve performance when applied to fine-tuned Transformer models?
- RQ2How do alternative uncertainty estimation methods compare to vanilla softmax in active learning for Transformer models?
- RQ3To what extent does the selection of outliers—samples with high model uncertainty—harm active learning performance in Transformers?
- RQ4Can a simple heuristic like Uncertainty Clipping mitigate the negative impact of selecting highly uncertain (outlier) samples in active learning?
- RQ5Does the vanilla softmax function remain a viable choice for uncertainty estimation in active learning when combined with a corrective mechanism like Uncertainty Clipping?
Key findings
- The vanilla softmax function, despite being theoretically flawed, performs competitively in active learning for Transformers when combined with Uncertainty Clipping.
- Most alternative uncertainty methods, including Monte-Carlo Dropout and Evidential Networks, perform worse than random sampling due to over-selection of outliers.
- Uncertainty Clipping significantly improves performance across all uncertainty estimation methods, including the baseline softmax, by reducing the inclusion of extreme outliers in the query batch.
- The method is computationally efficient and requires no retraining or architectural changes, making it easy to integrate into existing AL pipelines.
- Label distribution shifts in queried batches are reduced under Uncertainty Clipping, indicating more balanced sampling across classes.
- Runtime analysis shows that ensemble-based methods like Softmax Ensemble are prohibitively slow, while other methods—including Monte-Carlo Dropout and TrustScore—have only marginal overhead.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.