Abstract
Labeling data remains a significant bottleneck in supervised machine learning. While Active Learning (AL) and Self-Training (ST) have been proposed to mitigate this, their combination often suffers from noise and hyperparameter sensitivity. We introduce HAST (Hard-label neighborhood-regularized Self-Training), a method that leverages the embedding space of pre-trained language models to regularize pseudo-labeling. HAST achieves state-of-the-art performance using as few as 130 labeled examples—approximately 25% of the data required by previous methods—while avoiding complex tuning.
Introduction
In the era of large-scale pre-trained language models (PLMs), the primary constraint on model performance is often the availability of high-quality labeled data. Active Learning (AL) addresses this by iteratively selecting the most informative samples for human annotation. However, AL alone often requires thousands of queries to reach peak performance. Self-Training (ST) offers a complementary approach by allowing the model to learn from its own predictions on unlabeled data. Despite its potential, ST is frequently excluded from AL workflows due to the risk of error propagation and the need for large validation sets to tune confidence thresholds.
Methodology: The HAST Framework
The proposed HAST method integrates self-training directly into the standard AL loop. The core innovation lies in how pseudo-labels are assigned and regularized to prevent the "noise" typically associated with self-training.
HAST follows a three-step process during each iteration:
- Neighborhood Regularization: Instead of relying solely on the model's output probability, HAST examines the $k$-nearest neighbors of an instance in the PLM's embedding space. A pseudo-label is only assigned if the model's prediction aligns with the majority vote of its neighbors, using the embedding space as an anchor for consistency.
- Hard-Labeling with Fixed Thresholds: To ensure practicality in low-data settings where a large validation set is unavailable, HAST uses a simple binary decision threshold (0.5). This eliminates the need for dataset-specific hyperparameter tuning.
- Dynamic Weighting: The training objective balances human-annotated data against machine-labeled data using a weighting scheme that accounts for potential noise in pseudo-labels and inherent class imbalances.
Experimental Setup
The effectiveness of HAST was evaluated across four diverse text classification benchmarks: AG’s News (topic classification), DBPedia-14 (Wikipedia categories), IMDB (sentiment analysis), and TREC-6 (question types). The study compared HAST against a vanilla AL baseline ("No Self-Training") and four re-implemented state-of-the-art ST methods: UST, AcTune, VERIPS, and NeST.
Results and Analysis
HAST demonstrated superior sample efficiency across all tested datasets and query strategies (Breaking Ties, Contrastive Predictions, and Random Sampling).
Key findings include:
- Significant Performance Gains: Integrating HAST into the AL loop improved classification results by up to 29 percentage points compared to vanilla AL.
- Reduced Human Effort: HAST reached performance levels with 130 labeled instances that previously required over 400 instances.
- Robustness to Noise: Unlike some baseline ST methods (e.g., UST or AcTune) which occasionally degraded performance, HAST and the neighborhood-based NeST consistently provided stable improvements.
- Efficiency: The additional self-training step is computationally light, adding only a few minutes to the iteration time on standard hardware (averaging a few minutes per iteration on a single A100 GPU).
Discussion and Conclusion
The success of HAST highlights that AL and ST are fundamentally complementary: AL targets uncertainty to explore unknown regions of the data distribution, while ST targets certainty to exploit and reinforce known regions. By using PLM embeddings as a regularizer, HAST effectively filters out overconfident but incorrect predictions.
While HAST shows promise, challenges remain in handling extreme class imbalance (as seen in the TREC-6 results) and extending the neighborhood heuristic to multi-label classification tasks. Future research may focus on developing query strategies that explicitly select samples to maximize the benefit of the subsequent self-training phase.
Summary updated