Uncertainty Sentence Sampling by Virtual Adversarial Perturbation

Yang Song, Hanshan Zhang, Zhen Zhang, Hongfei Jiang, Yang Song 0021arXiv 2022 · DOI

Researchers from Zuoyebang Education Technology have introduced VAPAL, a novel Active Learning (AL) framework designed to optimize data labeling for natural language processing tasks. VAPAL identifies the most "informative" sentences by measuring the sensitivity of a model's predictions to strategic "nudges" in its internal representations, effectively capturing both model uncertainty and data diversity.

The Challenge of Data Labeling in NLP

Deep learning models typically require vast amounts of labeled data, which is both expensive and time-consuming to produce for specialized tasks like medical classification or sentiment analysis. Active Learning (AL) attempts to mitigate this by selecting only the most useful examples for human annotation. However, existing AL methods often suffer from several drawbacks:

  1. The Calibration Trap: Confidence-based methods like Entropy Sampling rely on model probability scores, which are often poorly calibrated and overconfident, especially in early training stages.
  2. Warm-Start Requirements: Hybrid methods like BADGE require a pre-labeled dataset to initiate the selection process.
  3. The Proxy Problem: "Cold-start" methods like ALPS use self-supervised losses (e.g., Masked Language Modeling) as a proxy for uncertainty, which may not correlate well with the actual downstream classification task.

VAPAL addresses these issues by providing a "cold-start" method directly tied to task-specific behavior without relying on flawed confidence scores.

Methodology: Virtual Adversarial Perturbation

The core of VAPAL is the use of Virtual Adversarial Perturbation (VAT) to represent uncertainty. The process involves:

  • Calculating the "Nudge": For each unlabeled sentence, VAPAL calculates a tiny perturbation vector ($r_{v-adv}$) in the embedding space (specifically the BERT [CLS] token). This vector represents the direction that would most significantly change the model's current prediction, measured by KL-divergence.
  • Local Distributional Smoothness: If a small nudge causes a large shift in the output distribution, the model is considered "uncertain" about that data region.
  • Diversity through Clustering: To ensure a diverse batch for labeling, VAPAL treats these perturbation vectors as sentence representations and performs k-means clustering, selecting sentences closest to the cluster centers.

Because VAPAL does not require ground-truth labels to calculate sensitivity, it functions as a true cold-start method from the very first training iteration.

Experimental Results

The authors evaluated VAPAL against four benchmarks: AGNEWS (topic classification), IMDB (sentiment), PUBMED 20k RCT (medical abstracts), and SST-2 (sentiment).

Performance comparison of VAPAL against various active learning baselines across four datasets.

As shown in the figures above, VAPAL consistently matched or outperformed state-of-the-art baselines like BADGE and ALPS. Notably, on the PUBMED and SST-2 datasets, VAPAL demonstrated a significant performance margin, particularly during the early stages of labeling. While ALPS showed instability on the PUBMED dataset, VAPAL remained robust across all benchmarks.

Key Insights and Future Work

  • Robustness over Confidence: Sensitivity to adversarial nudges proves to be a more robust measure of uncertainty than simple probability scores.
  • Computational Efficiency: VAPAL is more efficient than BADGE because its perturbation vectors scale with the model's hidden dimension rather than the number of classes, speeding up the clustering phase.
  • Generalizability: While tested with BERT, VAPAL also showed success with causal models like GPT-2, indicating architectural flexibility.

Despite its success, a performance gap remains between active learning and fully supervised models. Future research may explore more sophisticated local smoothness measurements and better ways to encode diversity specifically for complex natural language structures.

Summary updated

BibTeX
@misc{song2022uncertainty,
  author = {Yang Song and Hanshan Zhang and Zhen Zhang and Hongfei Jiang and Yang Song},
  title = {{Uncertainty Sentence Sampling by Virtual Adversarial Perturbation}},
  year = {2022},
  eprint = {2210.14576},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.14576},
}
Figure