Abstract
In this paper, we investigate the benefit that off-the-shelf word embedding can bring to sequence-to-sequence (seq-to-seq) automatic speech recognition (ASR). We first introduced word embedding regularization by maximizing the cosine similarity between a transformed decoder feature and the target word embedding. Based on the regularized decoder, we further proposed the fused decoding mechanism. This allows the decoder to consider semantic consistency during decoding by absorbing the information carried by the transformed decoder feature, which is learned to be close to the target word embedding. Initial results on LibriSpeech demonstrated that pre-trained word embedding can significantly lower ASR recognition error with a negligible cost, and the choice of word embedding algorithms among Skip-gram, CBOW, and BERT is important.
Introduction
Deep learning has revolutionized Automatic Speech Recognition (ASR), yet state-of-the-art sequence-to-sequence (seq-to-seq) models remain notoriously data-hungry. Achieving high performance typically requires thousands of hours of annotated audio-text pairs, which are expensive and difficult to collect—particularly for low-resource languages or specialized domains. Furthermore, the massive capacity of these networks often leads to overfitting when data is scarce.
While paired data is limited, text-only data is abundant. However, integrating this text-only knowledge into end-to-end ASR pipelines is traditionally complex, often requiring computationally intensive solutions like external language model (LM) rescoring, text-to-speech (TTS) data augmentation, or adversarial training. This paper proposes a simpler, more efficient alternative: injecting semantic knowledge directly into the ASR decoder using pre-trained, frozen word embeddings.
Proposed Methodology
The authors introduce two novel mechanisms to leverage semantic information from off-the-shelf word embeddings (such as Skip-gram, CBOW, or BERT) trained on large external text corpora. These embeddings map discrete words into a continuous vector space where semantic relationships are preserved, providing a guide for the ASR model.
1. Word Embedding Regularization
During the training phase, the seq-to-seq decoder generates a latent representation for each target word. The proposed method adds a regularization term to the standard loss function. This term maximizes the cosine similarity between the decoder's latent feature (after passing through a small projection network) and the pre-trained embedding of the ground-truth word. By forcing the model's internal representations to align with a pre-established semantic space, the regularization helps the model generalize better, even with limited audio data.
2. Fused Decoding
During the inference (decoding) phase, the model typically relies on a probability distribution over the vocabulary. Fused Decoding enhances this by calculating the cosine similarity between the decoder's latent feature and every entry in the pre-trained word embedding table. This similarity score is transformed into a probability distribution via a "Cosine-Softmax" operation and then fused with the standard ASR output. This process nudges the model toward choosing words that are semantically consistent with the learned latent space.
Notably, the word embedding table remains frozen throughout training, ensuring that these enhancements add virtually no computational overhead—pre-training the embeddings accounts for only about 2% of the total training time.
Experimental Setup
The proposed methods were evaluated on the LibriSpeech dataset under two conditions:
- High Resource: 460 hours of annotated clean speech, with embeddings trained on the 960-hour transcriptions.
- Low Resource: 100 hours of annotated clean speech, with embeddings trained on the 460-hour transcriptions.
Results and Discussion
The experiments demonstrate that semantic injection is a highly cost-effective way to improve ASR accuracy.
Performance Gains
In the high-resource (460h) setting, the baseline Word Error Rate (WER) on the "Clean Test" set was 14.28%. Implementing both Regularization and Fused Decoding (using Skip-gram) reduced the WER to 13.06%. In the low-resource (100h) setting, the baseline WER of 22.3% dropped to 21.2%.
When compared to other techniques, the proposed method outperformed traditional back-translation data augmentation (23.6% WER) and approached the performance of complex adversarial training (19.2% WER), but at a significantly lower computational cost.
Embedding Selection and LM Integration
The choice of embedding algorithm proved critical. Skip-gram generally outperformed CBOW. While BERT provided excellent regularization during training, its bidirectional nature prevents it from being used in the autoregressive Fused Decoding step. Furthermore, the authors found that while the benefits of word embeddings overlap with traditional RNN-based Language Models (RNN-LMs), combining the two yields the best overall results (reducing WER from 12.37% to 11.62% in the high-resource setting). This suggests that word embeddings capture unique semantic relationships that standard next-word prediction models might miss.
Conclusion and Future Work
This research presents a lightweight, "plug-in" approach to enhancing seq-to-seq ASR systems. By using frozen word embeddings for regularization and decoding, models can achieve significant accuracy improvements with negligible training costs.
While the current Fused Decoding method is limited to autoregressive embeddings, future work may explore ways to integrate bidirectional contextual embeddings like BERT into the inference process. These techniques are particularly promising for domain-specific ASR where text data is plentiful but transcribed audio remains a bottleneck.
Summary updated