NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Alexa Teacher Model: Pretraining and Distilling Multi-Billion-Parameter Encoders for Natural Language Understanding Systems

Jack FitzGerald, Shankar Ananthakrishnan, Konstantine Arkoudas, Davide Bernardi, Abhishek Bhagia, Claudio Delli Bovi, Jin Cao, Rakesh Chada, Amit Chauhan, Luoxin Chen, Anurag Dwarakanath, Satyam Dwivedi, Turan Gojayev, Karthik Gopalakrishnan, Thomas Gueudré, Dilek Hakkani-Tur, Wael Hamza, Jonathan J. Hüser, Kevin Martin Jose, Haidar Khan, Beiye Liu, Jianhua Lu, Alessandro Manzotti, Pradeep Natarajan, Karolina Owczarzak, Gokmen Oz, Enrico Palumbo, Charith Peris, Chandana Satya Prakash, Stephen Rawls, Andy Rosenbaum, Anjali Shenoy, Saleh Soltan, Mukund Harakere Sridhar, Liz Tan, Fabian Triefenbach, Pan Wei, Haiyang Yu, Shuai Zheng, Gökhan Tür, Prem Natarajan · DOI

Introduction

In the current landscape of Natural Language Processing (NLP), a significant "deployment gap" exists between state-of-the-art research and production-ready systems. While researchers continue to scale models to hundreds of billions of parameters, virtual assistants like Alexa must operate within strict latency and memory constraints to provide real-time responses. Furthermore, most public models are trained on "written-form" text (e.g., Wikipedia), which differs significantly from the "spoken-form" text (e.g., "call mom" vs. "Call Mom.") encountered by smart speakers.

Amazon researchers have addressed these challenges with the Alexa Teacher Model (AlexaTM). This framework utilizes a multi-stage pipeline to pretrain massive 9.3-billion-parameter encoders and distill their knowledge into tiny, 17-million-parameter models that outperform industry standards like XLM-R Base while maintaining production-level efficiency.

Methodology: The Multi-Stage Pipeline

The core of the AlexaTM approach is a sophisticated training and distillation pipeline designed to bridge the gap between massive general-purpose models and specialized production models.

Two-Stage Pretraining

  1. Stage 1 (General Knowledge): The "Teacher" model (up to 9.3B parameters) is first trained on massive public datasets, including mC4, CC-100, and Wikipedia, across 12 languages.
  2. Stage 2 (Domain Adaptation): The model undergoes domain adaptation using 50 million unlabeled, anonymized utterances from the Alexa system. This allows the model to learn the specific nuances of how users interact with virtual assistants.

Spoken-Form Adaptation

To mitigate the accuracy drop standard models experience when processing spoken language, the researchers transformed 70% of the training data into "spoken form." This involved lower-casing and verbalizing numbers (e.g., converting "7:30" to "seven thirty") to match the typical output of Speech-to-Text (ASR) systems.

Two-Phase Distillation (Teacher Assistant)

Directly distilling a 9.3B parameter model into a 17M parameter model often results in significant information loss. To solve this, the authors introduced an intermediate step: the 9.3B Teacher is first distilled into a 170M "Teacher Assistant." This intermediate model then serves as the teacher for the final 17M production Student.

The AlexaTM pipeline: Two-stage pretraining followed by a two-phase distillation process to create production-ready student models.

Key Insights and Empirical Results

The Importance of In-Domain Data

One of the most striking findings was that a 170M model distilled from a "Stage 2" teacher (adapted to Alexa data) outperformed the original 2.3B "Stage 1" teacher (trained only on public data) on internal NLU tasks. This suggests that data relevance is often more critical than raw parameter count.

Pretraining Metrics and Downstream Performance

The researchers found strong correlations between pretraining metrics—such as perplexity and noun mask-filling accuracy—and final fine-tuned accuracy on benchmarks like XNLI. As shown in the figures below, improvements in these proxy metrics during the pretraining of the larger models directly translated to better performance in the final student models.

Correlation between pretraining metrics (Perplexity and Mask-filling Accuracy) and fine-tuned XNLI accuracy for the 2B parameter model.

Production Impact

In live A/B testing with real-world Alexa users, the distilled 17M model demonstrated significant improvements:

  • User Dissatisfaction: Reduced overall user dissatisfaction by 3.74% to 4.91%.
  • Tail Performance: For rare or complex "tail" utterances, dissatisfaction was reduced by up to 10.3%, indicating that the massive teacher model helps the student handle difficult edge cases.
  • Efficiency: The 17M model outperformed XLM-R Base (85M) by over 4% despite being roughly 5x smaller.

Conclusion and Future Work

The Alexa Teacher Model demonstrates that the knowledge contained within multi-billion parameter models can be effectively compressed into tiny production models through domain adaptation and multi-stage distillation. By focusing on spoken-form text and in-domain data, the researchers achieved significant gains in both accuracy and user satisfaction.

Future work will focus on improving the model's robustness to ASR noise (errors in speech-to-text transcription) and incorporating multi-turn conversational context to further refine the assistant's natural language understanding capabilities.

Summary updated

BibTeX
@inproceedings{fitzgerald2022alexa,
  author = {Jack FitzGerald and Shankar Ananthakrishnan and Konstantine Arkoudas and Davide Bernardi and Abhishek Bhagia and Claudio Delli Bovi and Jin Cao and Rakesh Chada and Amit Chauhan and Luoxin Chen and Anurag Dwarakanath and Satyam Dwivedi and Turan Gojayev and Karthik Gopalakrishnan and Thomas Gueudré and Dilek Hakkani-Tur and Wael Hamza and Jonathan J. Hüser and Kevin Martin Jose and Haidar Khan and Beiye Liu and Jianhua Lu and Alessandro Manzotti and Pradeep Natarajan and Karolina Owczarzak and Gokmen Oz and Enrico Palumbo and Charith Peris and Chandana Satya Prakash and Stephen Rawls and Andy Rosenbaum and Anjali Shenoy and Saleh Soltan and Mukund Harakere Sridhar and Liz Tan and Fabian Triefenbach and Pan Wei and Haiyang Yu and Shuai Zheng and Gökhan Tür and Prem Natarajan},
  title = {{Alexa Teacher Model: Pretraining and Distilling Multi-Billion-Parameter Encoders for Natural Language Understanding Systems}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2022},
  doi = {10.1145/3534678.3539173},
}
Figure