Abstract
Modern end-to-end Automatic Speech Recognition (ASR) systems often rely on the joint CTC-Attention framework. However, these models frequently suffer from a mismatch between training—where the decoder receives perfect ground-truth text—and inference, where it must process error-prone acoustic predictions. This paper introduces a Linguistic-Enhanced Transformer that bridges this gap by incorporating Connectionist Temporal Classification (CTC) predictions directly into the Transformer decoder during training. By utilizing techniques such as Aligned Embedding Fusion (AEF) and N-best Embedding (NE), the proposed architecture transforms the decoder into a robust error-correction module. Experimental results on the AISHELL-1 dataset demonstrate a relative reduction in Character Error Rate (CER) of up to 7%.
Introduction
The "joint CTC-Attention" framework has become a standard in ASR, utilizing an encoder as an acoustic model and a decoder as a linguistic model. Despite its success, two primary issues persist. First, there is a significant data imbalance; while large-scale language models are trained on trillions of tokens, ASR decoders are limited to the transcriptions available in their specific audio datasets. Second, the "exposure bias" during training means the decoder never learns to handle the messy, imperfect outputs generated by the acoustic model during real-world inference.
To address these limitations, this research proposes a method to inject explicit linguistic information from the CTC branch into the Transformer decoder. By forcing the decoder to interact with actual acoustic predictions during training, the model learns to identify and correct common phonetic and linguistic errors.
Proposed Methodology
The authors propose three distinct methods for integrating CTC-derived linguistic information into the decoder architecture:
1. Embedding Fusion (EF)
Embedding Fusion is the most straightforward approach. It takes the "1-best" prediction from the CTC branch and combines its word embeddings with the ground-truth embeddings using a weighted average. To ensure the model is not misled by highly inaccurate CTC predictions, the authors implement "absolute" and "relative" length thresholds. These thresholds determine whether the CTC input is reliable enough to be fused or if the model should rely solely on ground-truth data.
2. Aligned Embedding Fusion (AEF)
A significant challenge in simple fusion is the misalignment between CTC predictions and ground-truth labels (e.g., insertions or deletions). AEF addresses this by using an edit-distance algorithm to align the two sequences. By inserting "blank" symbols where necessary, AEF ensures that the decoder receives a logically consistent sequence, allowing it to learn more effectively from the discrepancies between the acoustic prediction and the target text.
3. N-best Embedding (NE)
Recognizing that the single best CTC prediction may not contain enough information, the NE method utilizes beam search to extract the top $N$ hypotheses. These hypotheses are processed through a dedicated N-best Embedding module featuring self-attention. This information is then fed into the decoder via a parallel attention sub-layer, enabling the decoder to simultaneously weigh multiple potential interpretations of the audio signal.
Experimental Setup
The models were evaluated using the AISHELL-1 corpus, a widely used Mandarin speech dataset.
- Data Volume: Approximately 170 hours of recorded speech.
- Diversity: 400 speakers with various regional accents.
- Vocabulary: 4,231 distinct labels, including characters and special tokens.
Key Insights and Results
Performance Gains
The Linguistic-Enhanced models consistently outperformed the baseline Transformer. On the AISHELL-1 test set, the AEF and NE (where $n=5$) models achieved a CER of 7.4% to 7.5%, a notable improvement over the baseline's 7.7%. This represents a relative error reduction of approximately 7%. When combined with pre-training on a standard Transformer, the CER further improved to 7.2%.
The Decoder as a Corrector
A primary finding of this study is that the Transformer decoder is highly sensitive to linguistic-level inputs. By providing explicit textual embeddings rather than relying solely on implicit features from the encoder's latent space, the decoder transitions from a passive language model to an active error-correction unit.
The Importance of Alignment and Beam Size
The transition from EF to AEF proved that raw data injection is insufficient; structural alignment is critical. Without alignment, the decoder is often presented with conflicting training samples that hinder convergence. Additionally, while the N-best Embedding method is powerful, the authors noted diminishing returns as $N$ increased, with performance stabilizing at $n=5$.
Limitations and Future Outlook
While effective, the proposed methods introduce certain trade-offs. The N-best Embedding approach increases computational complexity and memory usage due to the requirement of running beam search during every training step. Furthermore, the Embedding Fusion methods require manual tuning of length thresholds, which may vary across different datasets.
Future research may explore how these explicit linguistic injections scale with massive datasets (exceeding 10,000 hours), where decoders might naturally develop higher robustness. Additionally, automating the threshold-tuning process could make the Embedding Fusion approach more adaptable to diverse ASR tasks.
Summary updated