Multi-task Active Learning for Pre-trained Transformer-based Models

Guy Rotman, Roi Reichart · DOI

Introduction

Deep learning models, particularly those based on the Transformer architecture like BERT, have revolutionized Natural Language Processing (NLP). However, their performance is heavily dependent on the availability of large-scale, high-quality annotated datasets. In Multi-task Learning (MTL) environments—where a single model is trained to perform multiple related tasks simultaneously—the data bottleneck is even more pronounced. Annotating the same text for multiple distinct tasks (e.g., dependency parsing and named entity recognition) is both time-consuming and prohibitively expensive.

Active Learning (AL) offers a solution by iteratively selecting only the most "informative" unlabeled examples for human annotation. While AL is well-studied in single-task settings, its application to multi-task scenarios involving pre-trained Transformers remains relatively unexplored. This paper provides the first systematic investigation into Multi-task Active Learning (MT-AL), exploring how to optimize data selection when multiple task relationships and annotation costs are at play.

Methodology

The Complex Multi-task Model (CMT)

The researchers developed a "Complex Multi-task Model" (CMT) utilizing a shared BERT-based encoder. To handle the nuances of different tasks, the model features task-specific top layers integrated with a gating mechanism, allowing the model to learn which shared features are most relevant for each specific objective.

MT-AL Selection Strategies

The core of the research involves moving beyond simple uncertainty metrics to develop strategies that account for multiple task outputs:

  • Aggregated Scores: These methods combine uncertainty scores across tasks. MT-AVG calculates the average uncertainty, while MT-MAX and MT-MIN focus on the most or least certain task predictions, respectively.
  • Rank-based Selection: To avoid the pitfalls of raw probability scores, the authors propose MT-RRF (Reciprocal Rank Fusion) and MT-PAR (Pareto-efficient frontier). These methods evaluate the relative importance of an example across all tasks.
  • Optimization-based Selection: In scenarios where tasks have varying annotation costs (e.g., the difference between labeling a sentence-level intent versus token-level slots), the authors employ Binary Linear Programming (BLP). This approach maximizes information gain while adhering to a strict annotation budget.

Addressing the Overconfidence Trap

A significant technical contribution of this work is the identification of the "overconfidence trap" in Transformers. Standard training using Cross-Entropy loss often results in models that are highly confident even when incorrect. This miscalibration breaks uncertainty-based Active Learning. To mitigate this, the authors implement Label Smoothing (LS), which regularizes the model to produce more calibrated confidence scores, ensuring the AL selection process is based on reliable signals.

Experimental Setup and Datasets

The MT-AL framework was evaluated across three distinct multi-task archetypes using several benchmark datasets:

  1. Complementing Tasks: Dependency Parsing (DP) and Named Entity Recognition (NER) using OntoNotes 5.0.
  2. Hierarchical Tasks: Relation Extraction (RE) and NER, where RE depends on the output of NER. This was tested on NYT24, NYT29, ScieRC, WebNLG, and WLP.
  3. Different Granularity: Slot Filling (SF, token-level) and Intent Detection (ID, sentence-level) using the ATIS and SNIPS datasets.

Key Insights and Results

The Necessity of Calibration

The study demonstrates that Label Smoothing is essential for MT-AL. By applying LS, the authors reduced the model's overconfidence error by up to 96%, directly translating to more effective data selection and higher final model accuracy.

Hierarchical Asymmetry and Synergy

In hierarchical task structures, the researchers found a unique asymmetry: selecting data based on the uncertainty of the dependent (downstream) task is more effective than selecting for the upstream task. Furthermore, the study observed significant cross-task synergy; selecting data for one task often improved the performance of the secondary task more effectively than if the data had been selected for that secondary task in isolation.

Performance Gains and Efficiency

MT-AL methods proved superior to single-task AL baselines in 79% of all experimental comparisons. Notable results include:

  • F1 Score Improvements: MT-AL provided gains of up to 2.4 F1 points in NER tasks compared to the best single-task selection methods.
  • Budget Optimization: In scenarios with varying annotation costs (SF + ID), the BLP optimization method consistently outperformed greedy selection strategies, proving that strategic budget allocation is vital for cost-effective training.
  • Low-Resource Stability: MT-AL methods remained robust even when using as little as 2% to 10% of the total available training data, making them ideal for cold-start scenarios.

Conclusion and Future Work

This research establishes that Multi-task Active Learning, when combined with proper model calibration via Label Smoothing, significantly reduces the manual effort required to train high-performing Transformer models. While the study focused on closely-related discriminative tasks, it opens the door for future research into "massive multi-tasking" environments and the application of MT-AL to generative models like T5 or GPT. By treating data selection as a multi-objective optimization problem, researchers can build more efficient and capable NLP systems with a fraction of the labeled data.

Summary updated

BibTeX
@article{rotman2022multi,
  author = {Guy Rotman and Roi Reichart},
  title = {{Multi-task Active Learning for Pre-trained Transformer-based Models}},
  journal = {Trans. Assoc. Comput. Linguistics},
  year = {2022},
  doi = {10.1162/tacl\_a\_00515},
}
Figure