To Label or Not to Label: Hybrid Active Learning for Neural Machine Translation

Abdul Hameed Azeemi, Ihsan Ayyub Qazi, Agha Ali Raza

TL;DR

HUDS (Hybrid Uncertainty and Diversity Sampling) is a new active learning strategy for Neural Machine Translation (NMT) that balances model uncertainty with data diversity. By selecting sentences that are both challenging for the model and representative of the data distribution, HUDS significantly reduces labeling costs while outperforming traditional single-objective methods across multiple domains and languages.

What Problem Does This Paper Address?

Training robust NMT models, especially for specialized domains like medicine or law, requires massive amounts of high-quality parallel data. Acquiring this data is expensive and slow, often requiring professional translators with domain expertise.

Active Learning (AL) aims to solve this by identifying the most "informative" sentences from an unlabeled pool for human annotation. However, existing AL methods usually fall into two camps, each with a flaw:

  1. Uncertainty Sampling: Selects sentences the model is most "confused" about. While useful, this often results in picking repetitive, redundant examples that don't help the model generalize.
  2. Diversity Sampling: Selects a varied set of sentences to cover the data distribution. The risk here is picking "trivial" sentences that are different but easy for the model to translate, wasting the annotation budget.

The authors propose HUDS to bridge this gap, creating a hybrid approach specifically tailored for the complexities of NMT domain adaptation.

Methods

The HUDS workflow is a multi-step procedure designed to capture the "two faces" of active learning:

Figure 2: A representation of hybrid uncertainty and diversity sampling (HUDS) for active learning in NMT.
  1. Uncertainty Scoring: The model computes a Normalized Negative Log-Likelihood (NNLL) for each sentence in the unlabeled pool. High scores indicate high model uncertainty.
  2. Stratification: Instead of just picking the top uncertain sentences, HUDS divides the sentences into $n$ "strata" (layers) based on their uncertainty scores.
  3. Diversity via Clustering: Within each stratum, the system generates sentence embeddings using a pre-trained BERT model and clusters them using $k$-means. The diversity score for a sentence is its distance to its cluster centroid—the further away, the more "unique" it is within that difficulty level.
  4. Hybrid Acquisition: Finally, a weighted hybrid score combines the uncertainty and diversity metrics. The top-$k$ sentences with the highest hybrid scores are sent for human labeling.

Datasets

The researchers evaluated HUDS on several challenging domain-adaptation tasks:

  • Out-of-Domain Base: WMT14 English-German (En-De) parallel data (4.5M pairs).
  • In-Domain (En-De): Three distinct corpora: Medicine, Law, and IT.
  • Generalization Task: English-French (En-Fr) using WMT14 as base and IWSLT 2014 Ted Talks as the in-domain target.

Key Insights and Ideas

  • The Power of Stratification: By grouping sentences by uncertainty before clustering for diversity, HUDS ensures it doesn't just pick the most difficult sentences. It picks the most diverse sentences at every level of difficulty, including informative sentences that might have lower overall uncertainty but contain "hard" segments.
  • Early-Iteration Efficiency: HUDS is particularly effective in the early stages of active learning. As shown in Figure 1, it prioritizes sentences that are both highly uncertain and highly diverse right from the start, leading to faster model improvement.
  • Vocabulary Coverage: Analysis showed that HUDS selects sentences with higher unigram coverage (overlap with the validation set) compared to other methods. This suggests that the hybrid approach is better at identifying the core vocabulary needed for a new domain.
Figure 1: Comparison of the instances selected through different active learning strategies on the task of English to German (En →De) translation using the Law domain dataset and BART-base model. The color represents the active learning iteration; from the darkest (first iteration) to the lightest (tenth iteration). Our proposed hybrid active learning method (HUDS) selects diverse yet chal- lenging sentences for annotation in early iterations.

Key Results

HUDS consistently outperformed strong baselines like Random selection, Normalized Sequence Probability (NSP), and In-Domain Diversity Sampling (IDDS).

  • Performance Gains: In the Medicine domain, HUDS achieved a 34.58 SACREBLEU score after 10 iterations, significantly higher than NSP (33.68) and Random (32.70).
  • Consistency: These gains were consistent across the Law and IT domains as well. Even when the annotation budget was increased to 5,000 sentences per iteration, HUDS maintained its lead.
  • Metric Robustness: Beyond BLEU scores, HUDS also showed superior performance when evaluated with COMET, a state-of-the-art neural evaluation metric that correlates more closely with human judgment.

Limitations and Future Work

  • Computational Latency: The authors acknowledge that computing embeddings and performing clustering for every unlabeled sentence adds computational overhead. They suggest pre-computing embeddings and caching scores to mitigate this in real-world interactive settings.
  • Granularity: Currently, HUDS operates at the sentence level. The authors note that phrase-level active learning could be even more cost-effective by avoiding the translation of easy phrases within otherwise difficult sentences. Extending HUDS to phrase-level selection is a primary goal for future work.
  • Hyperparameter Tuning: The balance between uncertainty and diversity ($\lambda$) was set to 0.5 (equal weight). While effective, the authors suggest this parameter could be further tuned for specific datasets using a small validation set.

Summary updated

Abstract

Active learning (AL) techniques reduce labeling costs for training neural machine translation (NMT) models by selecting smaller representative subsets from unlabeled data for annotation. Diversity sampling techniques select heterogeneous instances, while uncertainty sampling methods select instances with the highest model uncertainty. Both approaches have limitations - diversity methods may extract varied but trivial examples, while uncertainty sampling can yield repetitive, uninformative instances. To bridge this gap, we propose Hybrid Uncertainty and Diversity Sampling (HUDS), an AL strategy for domain adaptation in NMT that combines uncertainty and diversity for sentence selection. HUDS computes uncertainty scores for unlabeled sentences and subsequently stratifies them. It then clusters sentence embeddings within each stratum and computes diversity scores by distance to the centroid. A weighted hybrid score that combines uncertainty and diversity is then used to select the top instances for annotation in each AL iteration. Experiments on multi-domain German-English and French-English datasets demonstrate the better performance of HUDS over other strong AL baselines. We analyze the sentence selection with HUDS and show that it prioritizes diverse instances having high model uncertainty for annotation in early AL iterations.
BibTeX
@inproceedings{azeemi2025label,
  author = {Abdul Hameed Azeemi and Ihsan Ayyub Qazi and Agha Ali Raza},
  title = {{To Label or Not to Label: Hybrid Active Learning for Neural Machine Translation}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2025},
}
Figure