Have Best of Both Worlds: Two-Pass Hybrid and E2E Cascading Framework for Speech Recognition

Guoli Ye, Vadim Mazalov, Jinyu Li, Yifan Gong

This paper from Microsoft Research presents a "best of both worlds" approach to Automatic Speech Recognition (ASR). By cascading a traditional hybrid model with a modern end-to-end (E2E) model, the researchers achieve significant accuracy gains while maintaining the practical, production-ready features of older systems.

TL;DR

The Two-Pass Hybrid and E2E Cascading (HEC) framework uses a modular hybrid model for initial decoding and an Attention-based Encoder-Decoder (AED) model for a second-pass refinement. This approach reduces Word Error Rate (WER) by 8-10% and allows for easy customization and model updates without retraining the entire system.

What Problem Does This Paper Address?

In the world of speech recognition, there is a tug-of-war between two architectures:

  1. Hybrid Systems: These are modular (separate acoustic and language models). They are the industry workhorses because they are easy to customize with "biased lists" (like a user's specific contact names) and handle speech segmentation (deciding when a sentence ends) very reliably.
  2. End-to-End (E2E) Systems: These are single, massive neural networks. They are generally more accurate because they optimize the entire process at once, but they are "black boxes" that are notoriously difficult to customize and often struggle with long-form audio or precise segmentation.

The authors address the challenge of getting E2E-level accuracy without losing the "production-friendly" modularity and customization of hybrid systems.

Methods

The authors propose the HEC (Hybrid and E2E Cascading) framework, which operates in two distinct stages:

  • Pass 1 (The Hybrid Foundation): A conventional LSTM-based hybrid model processes the audio. It performs speech segmentation and generates "N-best" hypotheses (the top few guesses of what was said). Because it's a hybrid system, it can easily incorporate external language models or customized vocabulary.
  • Pass 2 (The E2E Refiner): An Attention-based Encoder-Decoder (AED) model takes both the segmented audio and the text hypotheses from Pass 1. It acts as an "error corrector."

Key Technical Innovations: * No Parameter Sharing: Unlike previous "deliberation" models where the two passes share an encoder, HEC keeps them entirely separate. This "loose coupling" means you can update or swap the first-pass model without needing to retrain the second-pass model. * Cross-Attention Structures: The researchers tested two ways to fuse audio and text in the second pass: Parallel Cross-Attention (PCA), where the decoder looks at audio and text simultaneously, and Cascaded Cross-Attention (CCA), where it looks at audio first and then uses that context to look at the text. Both performed similarly well.

Datasets

The models were trained on a massive internal Microsoft dataset:

  • Training Data: 65,000 hours of anonymized US-English production traffic (e.g., Cortana, conversational data).
  • Evaluation Sets:
    • en-US General: 1.8 million words of standard American English.
  • en-Dialect: 1.2 million words from the UK, Australia, Canada, and New Zealand.
  • en-Accent: 1.9 million words of non-native accented English recorded in clean environments.

Key Insights and Ideas

  • Complementary Error Patterns: Hybrid and E2E models tend to make different kinds of mistakes. By forcing the E2E model to "look" at the hybrid model's best guess, it can effectively fix errors that a standalone E2E system might have missed.
  • The Segmentation Advantage: E2E models often lose accuracy when they have to detect the end of a sentence themselves (End-of-Speech detection). HEC sidesteps this by letting the mature, highly-optimized hybrid segmenter handle the timing, then passing the clean segments to the E2E model.
  • Engineering Robustness: The paper proves that the second-pass model is robust. When the authors upgraded the first-pass hybrid model with more data, the second-pass E2E model automatically improved its results without being retrained. This is a major win for real-world software maintenance.

Key Results

  • Accuracy Boost: The HEC system achieved an 8-10% relative reduction in Word Error Rate (WER) compared to using either the Hybrid or AED models alone.
  • Generalization: On the en-US General set, the HEC-PCA model reached a WER of 6.86%, outperforming the standalone Hybrid (8.37%) and AED (7.27%) models.
  • Customization: In a specific test with "biased" lists (names/entities), the HEC system maintained the hybrid model's ability to recognize rare names while still providing the overall accuracy boost of the E2E pass.

Limitations and Future Work

  • Computational Overhead: Running two passes—especially with two separate encoders in the second pass—increases the computational cost and memory footprint compared to a single-pass system.
  • Latency: While the authors used offline (non-streaming) models for this study to establish a baseline, two-pass systems inherently introduce more latency, which might be a hurdle for real-time applications.
  • N-best Diversity: The authors found that using only the "1-best" hypothesis from the first pass was sufficient. Future work could explore if richer information (like word lattices) could provide even more gains.

Summary updated

BibTeX
@inproceedings{ye2022have,
  author = {Guoli Ye and Vadim Mazalov and Jinyu Li and Yifan Gong},
  title = {{Have Best of Both Worlds: Two-Pass Hybrid and E2E Cascading Framework for Speech Recognition}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2022},
  doi = {10.1109/icassp43922.2022.9747144},
}
Figure