Deep Active Learning for Sequence Labeling Based on Diversity and Uncertainty in Gradient

Yekyung KimarXiv 2020

Abstract

Recently, several studies have investigated active learning (AL) for natural language processing tasks to alleviate data dependency. However, for query selection, most of these studies mainly rely on uncertainty-based sampling, which generally does not exploit the structural information of the unlabeled data. This leads to a sampling bias in the batch active learning setting, which selects several samples at once. In this work, we demonstrate that the amount of labeled training data can be reduced using active learning when it incorporates both uncertainty and diversity in the sequence labeling task. We examined the effects of our sequence-based approach by selecting weighted diverse in the gradient embedding approach across multiple tasks, datasets, models, and consistently outperform classic uncertainty-based sampling and diversity-based sampling.

Introduction

Sequence labeling tasks, such as Named Entity Recognition (NER) and slot filling, are foundational to many NLP applications. However, training deep learning models for these tasks is resource-intensive because every token in a sentence requires a label. Active Learning (AL) offers a solution by identifying the most informative data points for human annotation, thereby reducing the total labeling effort.

Traditional AL methods often struggle with a trade-off: uncertainty-based sampling may select redundant, similar examples, while diversity-based sampling might pick "easy" samples that offer little learning signal. This paper addresses these challenges by introducing W-BADGE, a strategy that balances uncertainty and diversity while accounting for the variable costs of labeling sequences of different lengths.

Methodology

The authors adapt the BADGE (Batch Active learning by Diverse Gradient Embeddings) algorithm for sequence labeling. The core idea is to use gradient embeddings to represent unlabeled samples. The magnitude of the gradient serves as a proxy for model uncertainty, while the direction captures the diversity of features the model is learning.

To handle the specific constraints of NLP, the authors propose W-BADGE (Weighted BADGE). Unlike image classification where each sample has a uniform cost, sequence labeling costs are proportional to sentence length. W-BADGE incorporates a length-normalized weight into the sampling process (specifically during k-means++ seeding). This encourages the model to select representative samples while being mindful of the annotation cost associated with longer sequences.

Architectural diagrams of the models used: (a) BiLSTM tagger and (b) BiLSTM Encoder-Decoder.

The method was evaluated using two standard architectures: a BiLSTM tagger and a BiLSTM Encoder-Decoder, as illustrated in Figure 1.

Experimental Setup

The researchers benchmarked W-BADGE against three datasets:

  • CoNLL 2003: A standard English NER dataset.
  • ATIS (Airline Travel Information System): A classic slot-filling dataset.
  • FMTOD (Facebook Multilingual Task Oriented Dataset): A modern, multi-domain dialogue dataset.

Results and Analysis

W-BADGE consistently outperformed or matched state-of-the-art methods like BALD (Bayesian Active Learning by Disagreement) and Coreset across all datasets and architectures.

Key findings include:

  • High Efficiency: On the ATIS dataset, AL reached 98–99% of full-data performance using only 15% of the available samples.
  • Early Performance Gains: The advantage of W-BADGE is most pronounced in the early stages of training, which is critical when annotation budgets are tight.
  • Robustness: By combining uncertainty and diversity through gradients, the model avoids the pitfalls of redundant sampling common in pure uncertainty-based approaches.

Conclusion

W-BADGE demonstrates that incorporating both diversity and uncertainty via gradient embeddings, while weighting for sequence length, significantly improves active learning efficiency for sequence labeling. Future work could explore the computational overhead of calculating these embeddings at scale and the application of this method to Transformer-based architectures.

Summary updated

BibTeX
@misc{kim2020deep,
  author = {Yekyung Kim},
  title = {{Deep Active Learning for Sequence Labeling Based on Diversity and Uncertainty in Gradient}},
  year = {2020},
  eprint = {2011.13570},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.13570},
}
Figure