Speech-Text Based Multi-Modal Training with Bidirectional Attention for Improved Speech Recognition

Yuhang Yang, Haihua Xu, Hao Huang, Eng Siong Chng, Sheng Li

TL;DR

Researchers have developed a novel multi-modal training framework that uses a Bidirectional Attention Mechanism (BiAM) to bridge the gap between speech and text data. By effectively aligning these two modalities, the model can leverage vast amounts of unpaired text data to significantly improve Automatic Speech Recognition (ASR) performance, achieving up to a 9.23% reduction in word error rates.

What Problem Does This Paper Address?

Modern End-to-End (E2E) ASR systems are notoriously "data-hungry." While paired data (audio recordings with exact transcripts) is the gold standard for training, it is expensive and time-consuming to produce. In contrast, unpaired text data is abundant and cheap.

However, integrating text-only data into ASR training faces two major hurdles:

  1. AliProblem-1 (Synchronicity): Speech signals are sampled at a much higher rate than text. A single second of audio might contain 50–100 frames, while the corresponding text might only have a few characters or phonemes.
  2. AliProblem-2 (Homogeneity): Even if you align the lengths, the mathematical representations (embeddings) generated by a speech encoder look very different from those generated by a text encoder.

The authors aim to solve these "alignment" and "similarity" problems simultaneously to make ASR models more data-efficient.

Methods

The core innovation is the Bidirectional Attention Mechanism (BiAM). Instead of using standard attention (which typically uses separate Query, Key, and Value matrices), BiAM uses a simplified approach where speech and text embeddings are directly multiplied to create a shared attention matrix.

The BiAM Workflow:

  • Feature Exchange: BiAM allows the model to "transform" speech embeddings into the text representational space and vice versa. This effectively synchronizes the sampling rates by mapping the longer speech sequence onto the shorter text sequence (and vice vice).
  • Joint Training: The system trains a Conformer-based speech encoder and a Transformer-based text encoder together.
  • Multi-Objective Loss: To ensure the transformed features are actually useful, the authors employ a suite of loss functions:
  • CTC Loss: For standard ASR training.
  • Cosine Distance Loss: To force the speech and text embeddings to be mathematically similar (addressing AliProblem-2).
  • Masked Language Model (MLM) Loss: To enrich the speech representations with linguistic context.
  • Grapheme CTC: Using graphemes (characters) instead of phonemes makes the system "language agnostic," meaning it doesn't require a specialized dictionary to work for different languages.

Datasets

The researchers evaluated their method using the LibriSpeech corpus, a standard benchmark for English ASR:

  • 100-hour "train-clean" subset: Used to simulate a low-resource scenario.
  • 960-hour full set: Used to test the model at scale.
  • Unpaired Text: 960 hours of transcripts were used as "unpaired" text data to further boost the 100-hour model.
  • Evaluation Sets: The standard dev-clean, dev-other, test-clean, and test-other sets.

Key Insights and Ideas

  • Neural Forced Alignment: BiAM acts as a "neural forced-aligner." By visualizing the attention weights, the authors showed a clear monotonic alignment between speech and text, proving the model successfully learned which audio frames correspond to which characters.
  • The Importance of Similarity: The experiments showed that Cosine Distance Loss is essential. Without it, the speech and text encoders "drift apart," and the performance gains from multi-modal training diminish.
  • Linguistic Enrichment: By forcing the bottom layers of the ASR encoder to match the text encoder's output, the speech representations become "enriched" with linguistic information, making the model more robust to noise and speaker variation.

Key Results

The BiAM approach consistently outperformed the baseline Conformer models:

  • Paired Data Only (100h): Achieved a 6.15% Word Error Rate Reduction (WERR) on the test-clean set compared to the baseline.
  • With Unpaired Text: When the 100-hour model was augmented with 960 hours of unpaired text, the improvement jumped to 9.23% WERR.
  • Full Scale (960h): Even with the full dataset, the BiAM model showed significant improvements, particularly on the "other" (noisier) test sets, reducing WER from 5.3% to 5.0%.

Limitations and Future Work

While the results are promising, the authors noted a few hurdles:

  • Unpaired Pre-training Mismatch: When training on text-only data, the model lacks real duration information (how long a person actually takes to say a word). Currently, they simply replicate text embeddings twice to simulate duration, which is a "mismatched" training signal.
  • Future Direction: The team plans to develop a more sophisticated method to reconstruct or estimate duration for unpaired text to make the pre-training phase more effective.
  • Efficiency: While the BiAM module is removed after training (meaning it doesn't slow down the actual ASR process during use), the joint training process itself is more computationally intensive than standard ASR training.

Summary updated

BibTeX
@inproceedings{yang2023speech,
  author = {Yuhang Yang and Haihua Xu and Hao Huang and Eng Siong Chng and Sheng Li},
  title = {{Speech-Text Based Multi-Modal Training with Bidirectional Attention for Improved Speech Recognition}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10096726},
}
Figure