HAINAN: Fast and Accurate Transducer for Hybrid-Autoregressive ASR

Hainan Xu, Travis M. Bartley, Vladimir Bataev, Boris Ginsburg

TL;DR

HAINAN (Hybrid-Autoregressive INference TrANsducer) is a novel speech recognition architecture that allows a single model to operate in three modes: ultra-fast non-autoregressive (NAR), highly accurate autoregressive (AR), and a balanced semi-autoregressive (SAR) mode. By using a simple stochastic masking trick during training, HAINAN outperforms traditional CTC models in speed-sensitive tasks while matching state-of-the-art Transducer accuracy.

What Problem Does This Paper Address?

In the world of Automatic Speech Recognition (ASR), researchers usually have to choose between two extremes.

On one hand, Connectionist Temporal Classification (CTC) models are incredibly fast because they predict tokens in parallel (non-autoregressive). However, they struggle with accuracy because they assume each audio frame is independent of the others.

On the other hand, RNN-Transducers (RNN-T) and the more recent Token-and-Duration Transducers (TDT) are highly accurate because they are autoregressive—they use the history of what has already been "said" to predict the next token. The catch is that they are computationally expensive and slow because they must generate text one token at a time.

The authors of HAINAN sought to bridge this gap, creating a "unified" model that doesn't force a permanent trade-off between speed and precision.

Methods

HAINAN is an extension of the TDT architecture. The "secret sauce" is a surprisingly simple training technique: Stochastic Predictor Masking.

During training, the output of the predictor network (the part that handles text history) is randomly replaced with zeros 50% of the time. This forces the "joint network" (which combines audio and text features) to learn two things simultaneously:

  1. How to predict tokens using both audio and text history (AR mode).
  2. How to predict tokens using only audio features (NAR mode).

This training enables three distinct inference paths:

  • AR Mode: Uses the full model for maximum accuracy.
  • NAR Mode: Bypasses the predictor entirely for maximum speed, processing all audio frames in parallel.
  • SAR Mode (Semi-Autoregressive): A two-step process. First, it generates a quick "draft" using NAR. Then, it uses the predictor to refine that draft in parallel, correcting errors with minimal extra time.

Additionally, the authors introduced a Viterbi-based decoding method that treats the NAR output as a Directed Acyclic Graph (DAG), allowing the model to find the most likely path through multiple overlapping hypotheses.

Datasets

The researchers evaluated HAINAN on two major scales:

  • English: A massive 60,000-hour dataset combining Librispeech, Mozilla Common Voice, VoxPopuli, Fisher, and others. They used a 1.1-billion parameter FastConformer-XXL encoder.
  • German: A 2,000-hour dataset (Mozilla Common Voice, MLS, VoxPopuli) using a 110-million parameter FastConformer-Large encoder.

Evaluation was performed using standard ASR benchmarks, including AMI, Earnings22, and Gigaspeech.

Key Insights and Ideas

  • The "One-Line" Innovation: HAINAN is extremely easy to implement, requiring essentially a one-line change in the training code of a standard TDT model to enable the stochastic masking.
  • Capturing Ambiguity: Unlike CTC models, which exhibit "peaky" behavior (committing to one token per frame), NAR HAINAN can represent multiple hypotheses across different time stamps. For example, it can simultaneously track "ice cream" and "I scream" in its internal representations, which the Viterbi decoder can then resolve.
  • Zero-Duration Mitigation: A common failure in TDT-style models is "infinite loops" where the model predicts a duration of zero indefinitely. Stochastic masking naturally creates a "contradiction" for the model if it tries to predict duration zero, effectively training the model to avoid this failure mode without manual constraints.

Key Results

English ASR Results
  • Accuracy Parity: In AR mode, HAINAN matches the Word Error Rate (WER) of TDT and RNN-T.
  • NAR Superiority: In NAR mode, HAINAN significantly outperforms CTC. For instance, on the English benchmark, HAINAN NAR achieved a 7.19% average WER compared to CTC’s 7.38%, while maintaining nearly identical inference speeds (41s vs 39s).
  • The SAR Sweet Spot: Semi-autoregressive inference (SAR-1) closed the gap between NAR and AR significantly. It achieved a 7.13% WER with only a 4-second overhead compared to the NAR mode (45s total), making it much faster than full AR (which took 89s).
  • Efficiency: NAR HAINAN was found to be over 4x faster than the standard RNN-T model while delivering better accuracy.

Limitations and Future Work

Error Breakdown

The authors noted that while SAR is excellent at fixing substitution and insertion errors, it struggles with deletions at the subword level. As seen in the error breakdown, deletions actually increase slightly from NAR to SAR-1 (2.64 to 2.85). Because SAR reuses the timestamps from the initial NAR pass, it cannot easily "insert" a missing subword if the initial hypothesis was too short.

Future work includes applying the HAINAN framework to other sequence tasks like speech translation and speech synthesis, as well as exploring more flexible architectures to further bridge the AR/NAR gap.

Summary updated

BibTeX
@inproceedings{xu2025hainan,
  author = {Hainan Xu and Travis M. Bartley and Vladimir Bataev and Boris Ginsburg},
  title = {{HAINAN: Fast and Accurate Transducer for Hybrid-Autoregressive ASR}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=LrmPGtnros},
}
Figure