Reinforcement Learning Based Speech Enhancement for Robust Speech Recognition

Yih-Liang Shen, Chao-Yuan Huang, Syu-Siang Wang, Yu Tsao, Hsin-Min Wang, Tai-Shih Chi

TL;DR

Speech enhancement models are typically trained to make audio sound clean to human ears by minimizing mean squared error, but this doesn't always help Automatic Speech Recognition (ASR) systems understand the audio better. This paper introduces a reinforcement learning framework that optimizes a speech enhancement model directly against the final ASR error rate, treating the ASR system as a fixed, non-differentiable environment. The approach yields significant reductions in character error rates under noisy conditions without needing to alter or retrain the underlying ASR model.

What Problem Does This Paper Address?

When automatic speech recognition (ASR) systems operate in noisy real-world environments, their performance drops drastically. To combat this, researchers use Speech Enhancement (SE) front-ends to filter out noise before passing the audio to the ASR engine.

Traditionally, these SE models are trained using a Mean Squared Error (MSE) loss function to make the enhanced audio match a clean reference signal as closely as possible. However, what sounds "clean" or optimal to human ears (or to an MSE loss function) does not necessarily align with what makes an acoustic model perform well.

Ideally, we would train the SE model using the ASR system's recognition error as the loss function. The catch? Modern ASR systems are complex pipelines consisting of acoustic models, language models, and search graphs. This makes the entire system highly non-differentiable, meaning you cannot use standard backpropagation to pass gradients from the ASR error back into the SE model. Furthermore, in many practical scenarios, developers rely on third-party, closed-source ASR APIs that cannot be modified or retrained.

Methods

The authors bypass the differentiability problem by framing speech enhancement as a Reinforcement Learning (RL) problem. In this setup, the SE model acts as the RL agent, and the fixed ASR system serves as the environment.

Instead of predicting continuous spectral masks, which can be highly unstable to learn via RL, the authors discretize the problem:

  1. IBM Clustering: They take Ideal Binary Masks (IBMs) from the training data and use K-means clustering (with Hamming distance) to compress them into $A = 32$ representative mask prototypes.
  2. Action Estimation: A Deep Neural Network (DNN) serves as the policy network. It takes noisy speech features and outputs an action vector—essentially predicting which of the 32 mask prototypes will yield the best ASR result.
  3. Reward Function: The reward is tied directly to ASR performance. An utterance-level reward ($R$) is calculated by comparing the Character Error Rate (CER) of the raw noisy speech against the CER of the enhanced speech. To ensure proper credit assignment, they introduce a time-varying chunk reward ($r_c$) that weights the overall reward based on the local reconstruction error of each audio chunk.

During training, the policy network updates its weights to maximize this reward, effectively learning an enhancement strategy tailored specifically to the quirks of the fixed ASR engine.

Noisy Speech ──> [ DNN (Agent) ] ──> Select Mask (Action) ──> [ IBM-SE ] ──> Enhanced Speech ──> [ Fixed ASR ] ──> Calculate CER (Reward)

Datasets

  • MATBN: A 198-hour Mandarin Chinese broadcast news corpus.
  • A 25-hour gender-balanced subset was used to train the baseline CD-DNN-HMM acoustic models.
  • 460 utterances were used as the training set for the RL-based SE system.
  • 30 utterances were reserved for evaluation.
  • Noise: "Baby-cry" noise was artificially mixed into the clean data. The training set was mixed at a 5 dB Signal-to-Noise Ratio (SNR), while the testing set was evaluated at both 0 dB and 5 dB SNR using distinct segments of the noise source to ensure realistic generalization.

Key Insights and Ideas

  • ASR as a Black Box: By treating the ASR system as a fixed environment, the SE framework becomes a "plug-and-play" front-end. This is incredibly practical for real-world applications where developers use commercial, third-party ASR engines.
  • Simplifying RL via Clustering: Trying to learn continuous mask values through reinforcement learning often fails due to the massive action space. Compressing the masks into 32 discrete cluster actions made the policy optimization tractable and stable.
  • Accidental Denoising: Even though the reward function only penalized ASR character errors and knew nothing about human audio perception, the resulting spectrograms showed that the model naturally learned to perform clean denoising. Optimizing for machine perception inherently aligned with removing acoustic distortions.

Key Results

The baseline ASR system achieved a 11.50% CER on clean audio. When baby-cry noise was introduced, performance degraded severely.

The authors evaluated two variants of their system based on chunk sizes ($RLSE_1$ and $RLSE_2$). The $RLSE_2$ model delivered the best results:

  • At 5 dB SNR: The baseline noisy audio resulted in a 56.14% CER. The proposed $RLSE_2$ system reduced this to 49.18% (a 12.40% relative error reduction).
  • At 0 dB SNR: The baseline noisy audio resulted in an 81.40% CER. The $RLSE_2$ system cut this down to 65.75% (a 19.23% relative error reduction).
  • Comparison to Baselines: A standard one-nearest-neighbor baseline ($1nnSE$) actually degraded performance compared to the raw noisy audio, proving that standard matching techniques fail where the RL policy succeeds.
  • Perceptual Metrics: $RLSE_2$ also improved objective speech intelligibility (STOI) scores (e.g., from 0.74 to 0.81 at 0 dB), demonstrating a strong positive correlation between STOI improvements and ASR error reductions.

Limitations and Future Work

  • Single Noise Type: The system was only trained and evaluated using one specific background noise ("baby-cry"). To prove true robustness, the framework needs to be tested against a broader variety of non-stationary environmental noises (e.g., street noise, babble, white noise).
  • Evaluation Scale: The evaluation was conducted on a relatively small test set of 30 utterances.
  • Future Directions: The authors note that future work will focus on scaling the system to handle multiple noise types and a wider range of SNR levels to build a more generalized, robust RL-based speech enhancement front-end.

Summary updated

BibTeX
@misc{shen2018reinforcement,
  author = {Yih-Liang Shen and Chao-Yuan Huang and Syu-Siang Wang and Yu Tsao and Hsin-Min Wang and Tai-Shih Chi},
  title = {{Reinforcement Learning Based Speech Enhancement for Robust Speech Recognition}},
  year = {2018},
  eprint = {1811.04224},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.04224},
}
Figure