Industry Scale Semi-Supervised Learning for Natural Language Understanding

Luoxin Chen, Francisco Garcia, Varun Kumar, He Xie, Jianhua Lu

Abstract

Luoxin Chen, Francisco Garcia, Varun Kumar, He Xie, Jianhua Lu. Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies: Industry Papers.

2021.

Researchers at Alexa AI have developed a production-ready pipeline for Semi-Supervised Learning (SSL) that leverages millions of unlabeled user queries to boost Natural Language Understanding (NLU). By combining a two-stage data selection process with advanced techniques like Virtual Adversarial Training (VAT) and Cross-View Training (CVT), they achieved significant error reductions in intent classification and entity recognition without the high cost of human annotation.

Introduction

In the world of voice assistants, NLU systems must constantly evolve to support new features and improve accuracy. Traditionally, this requires massive amounts of human-labeled data, which is both expensive and slow to produce. While Semi-Supervised Learning (SSL)—using a small amount of labeled data alongside a large pool of unlabeled data—offers a solution, applying it at an "industry scale" presents unique hurdles:

  1. Volume: Selecting the most informative samples from hundreds of millions of unlabeled queries.
  2. Distribution Shift: Real-world unlabeled data is often "messy" and doesn't match the clean distribution of labeled training sets.
  3. Redundancy: Common queries (e.g., "turn on the lights") appear millions of times, while niche queries are rare.

This paper provides a blueprint for navigating these challenges in a live production environment.

The Proposed Pipeline

The authors propose a three-stage pipeline designed to filter, select, and train on unlabeled data efficiently.

The three-stage pipeline for unlabeled data selection and SSL training.

Stage 1: Domain Filtering

A simple binary classifier is used to extract "in-domain" queries from a massive, multi-domain unlabeled pool, ensuring the SSL process focuses on relevant data.

Stage 2: Intelligent Data Selection

To avoid processing millions of redundant samples, the researchers compared two selection methods:

  • Submodular Optimization: A mathematical approach that selects a subset of data that is as diverse and representative as possible based on n-gram features.
  • Committee-based Selection: A "committee" of four models is trained. Queries where models disagree or show high uncertainty (entropy) are discarded as untrustworthy.

Stage 3: SSL Training

The pipeline evaluates four core SSL algorithms: Pseudo-Label (PL), Knowledge Distillation (KD), Virtual Adversarial Training (VAT), and Cross-View Training (CVT). VAT and CVT are particularly notable for their advanced regularization techniques, though they are roughly 2x slower to train than simpler methods like PL.

Results and Discussion

The study utilized two primary data sources: a commercial Alexa dataset (covering Music, Communication, Notifications, and ToDos) and the public SNIPS benchmark.

Relative error rate reductions across four Alexa domains using various SSL algorithms and selection approaches.

Key Insights

  • Algorithm Specialization: A key finding was task-specific performance. VAT consistently performed better for Named Entity Recognition (NER), likely because adversarial perturbations force the model to learn more robust boundaries for specific words. Conversely, CVT excelled at Intent Classification (IC).
  • The "Goldilocks" Zone of Data: More data isn't always better. In the Music domain, performance gains peaked at 500k unlabeled samples; adding more data actually caused performance to degrade due to out-of-domain noise.
  • Diversity vs. Trustworthiness: Submodular Optimization (diversity) worked well for simpler domains like "ToDos," while Committee-based selection (trustworthiness) was superior for complex, noisy domains like "Music."

Overall, the researchers reported relative error rate reductions of up to 15.25% for Intent Classification (using CVT and Committee-based selection) and up to 11.86% for NER (using VAT and Submodular selection).

Conclusion

While the two-stage selection process is highly effective, it still faces challenges when the unlabeled data pool is radically different from the labeled data. Future research will focus on better domain adaptation techniques to bridge the gap between clean training data and the messy reality of live user queries. The trade-off between the high computational cost of VAT/CVT and accuracy gains remains a key consideration for production deployment.

Summary updated

BibTeX
@inproceedings{chen2021industry,
  author = {Luoxin Chen and Francisco Garcia and Varun Kumar and He Xie and Jianhua Lu},
  title = {{Industry Scale Semi-Supervised Learning for Natural Language Understanding}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  url = {https://openreview.net/forum?id=8bjqvRFWdlZ},
}
Figure