Edit Distance based RL for RNNT decoding

Dongseong Hwang, Changwan Ryu, Khe Chai SimarXiv 2023 · DOI

Introduction

The Recurrent Neural Network-Transducer (RNN-T) has become a standard architecture for streaming speech recognition. Despite its success, it remains susceptible to exposure bias. During training, the model is typically optimized using "teacher forcing," where it only observes ground-truth labels. However, during inference, the model generates its own sequence of tokens via beam search. If the model makes an early error, it often fails to recover because it was never exposed to its own mistakes during the training phase.

Traditional solutions, such as Minimum Word Error Rate (MWER) training, attempt to mitigate this by optimizing for sentence-level rewards. However, sentence-level objectives are often sample-inefficient; a single incorrect word can lead to a penalty for the entire sequence, providing a noisy signal to the model about which specific actions were incorrect.

Edit Distance based RL (EDRL)

To address these limitations, researchers at Google proposed Edit Distance based RL (EDRL). This method shifts the focus from global sentence rewards to fine-grained, token-level rewards. By providing a specific reward for every action—including both emitted tokens and the "blank" symbols used in RNN-T—the model receives a much clearer signal for error recovery.

The Reward Mechanism

The core of EDRL is a reward signal derived from the edit distance between the generated hypothesis and the ground truth. The reward is calculated as follows:

  • Mistakes: If an action increases the edit distance (e.g., a substitution or insertion), the model receives a negative reward.
  • Correct Actions: If an action maintains or decreases the edit distance, it receives a small positive reward ($r_p = 0.1$).
The EDRL framework calculates rewards at the character, token, and action levels to provide a dense training signal.

Optimization and Stability

The method utilizes an Actor-Critic framework where the RNN-T serves as the policy. To ensure training stability, the authors employ a hybrid loss function that combines the RL objective with the standard RNN-T loss. This "anchor" prevents the model from hallucinating or over-emitting blank symbols. Additionally, the authors developed a TPU-optimized approach using scatter operations to efficiently compute edit distances in parallel across large batches.

Experimental Results

The authors evaluated EDRL on the LibriSpeech benchmark using a 600M parameter Conformer RNN-T. The model was pre-trained on the 960-hour labeled dataset and, in some configurations, the 60,000-hour unlabeled Libri-Light dataset.

Performance and Efficiency

EDRL demonstrated superior performance compared to both the standard RNN-T baseline and the MWER approach. On the challenging "test-other" portion of LibriSpeech, EDRL achieved a Word Error Rate (WER) of 2.6%, outperforming the baseline (2.7%) and MWER (2.9%).

Performance comparison of EDRL against baselines and other state-of-the-art models on LibriSpeech.

Notably, EDRL is highly efficient. The RL fine-tuning stage converged in approximately 7,000 steps, taking roughly 12 hours on 32 TPU V3 cores. This allows the model to achieve competitive results without the massive computational overhead typically associated with iterative self-training pipelines (like Noisy Student Training).

Conclusion and Future Work

EDRL provides a practical and effective way to minimize WER directly by leveraging token-level granularity. By teaching the model to handle its own decoding errors and properly time "blank" emissions, it closes the gap toward state-of-the-art performance with significantly less data and compute than traditional self-training methods.

Despite these gains, a significant "Oracle gap" remains. The best possible path in the beam search (Oracle WER) is 1.4%, while EDRL reaches 2.6%, suggesting further room for improvement in how models navigate the search space. Future research may also explore the application of EDRL to other sequence-to-sequence tasks and its performance in real-time, low-latency streaming environments.

Summary updated

BibTeX
@misc{hwang2023edit,
  author = {Dongseong Hwang and Changwan Ryu and Khe Chai Sim},
  title = {{Edit Distance based RL for RNNT decoding}},
  year = {2023},
  eprint = {2306.01789},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.01789},
}
Figure