Abstract
Modern Automatic Speech Recognition (ASR) systems rely heavily on Language Models (LMs) to provide context and improve transcription accuracy. While Transformer-based LMs excel at capturing intra-utterance dependencies, they often struggle with long-range cross-utterance context compared to recurrent architectures. This paper introduces the Recurrent Transformer Language Model (R-TLM), a hybrid architecture that embeds LSTM modules within Transformer blocks. By combining the attention mechanisms of Transformers with the robust long-term memory of LSTMs, the proposed model achieves significant reductions in Word Error Rate (WER), particularly on error-prone words in conversational speech.
Introduction
In ASR, the Language Model helps predict the next word by analyzing the history of the discourse. Capturing long-range context is crucial for understanding multi-party meetings or long telephone conversations where topics discussed minutes prior can influence current word choice.
While "Transformer-XL" introduced segment-wise recurrence to address long-range dependencies, LSTMs remain highly robust, especially when training data is limited or when the historical context contains transcription errors. The researchers from Cambridge University sought to synthesize these strengths, creating a model that leverages the powerful parallel processing of Transformers while maintaining the stable cross-utterance representation characteristic of LSTMs.
Methodology
The core innovation of this work is the R-TLM (Recurrent Transformer Language Model). Instead of replacing the Transformer architecture, the authors "plug in" an LSTM module directly into a standard Transformer block.
Key Technical Features
- Selective Integration: The LSTM module is not added to every layer. The authors found that adding it to a single, strategically placed block (e.g., the 1st or 3rd block) is sufficient to capture the necessary context without significantly increasing computational overhead.
- Hidden State Carry-over: The hidden states of the LSTM are passed from one segment to the next, allowing the model to maintain a continuous "memory" of the conversation history across utterance boundaries.
- Fusion Layer: A dedicated fusion layer combines the original input with the LSTM's output (often via concatenation and a fully connected layer) before the data enters the Multi-Head Attention (MHA) module.
- Compatibility: The R-TLM is designed to be compatible with existing techniques like the segment-wise recurrence of Transformer-XL, resulting in the R-TLM XL variant.
Experimental Setup
The models were evaluated on three major speech recognition benchmarks to test scalability and robustness:
- AMI Meeting Corpus: A small-scale dataset (~0.9 million words) of office meeting recordings.
- Switchboard (SWB) + Fisher: A moderate-scale dataset (~27 million words) of telephone conversations.
- Eval2000 & RT03: Standard evaluation sets used to validate performance on the Switchboard/Fisher models.
Results and Discussion
The R-TLM consistently outperformed both standard Transformers and LSTMs across all test sets. On the AMI Eval set, the best R-TLM configuration achieved a 0.9% absolute WER reduction over a single-utterance Transformer baseline and a 0.5% reduction over a strong cross-utterance Transformer-XL baseline.
Key Insights
- Robustness to Errors: LSTMs provide a history representation that is more resilient to "noise" (errors in the transcriptions of previous utterances) than pure attention mechanisms. This makes the R-TLM particularly effective for ASR rescoring where the input history may be imperfect.
- The "Error-Prone Word" Advantage: The R-TLM showed significant gains on "error-prone words"—statistically difficult words that are frequently misrecognized. While pure Transformer-XL models might achieve lower overall perplexity, the R-TLM was superior at accurately modeling these specific, difficult tokens.
- Efficiency: Because the LSTM is only added to a single block, the increase in training and rescoring (inference) time is negligible, making it a practical upgrade for production pipelines.
Conclusion
The R-TLM architecture successfully bridges the gap between the high-capacity attention of Transformers and the robust sequential memory of LSTMs. By integrating recurrence directly into the Transformer block, the model captures cross-utterance context more effectively than either architecture alone. Future work may explore automated methods for determining the optimal block placement for the LSTM module and more sophisticated hierarchical fusion layers to further enhance context representation.
Summary updated