[Paper Review] Improving Generalization of Transformer for Speech Recognition with Parallel Schedule Sampling and Relative Positional Embedding
This paper proposes Parallel Scheduled Sampling (PSS) and Relative Positional Embedding (RPE) to improve Transformer generalization in speech recognition. PSS enables efficient, parallel scheduled sampling during training to reduce exposure bias, while RPE enhances modeling of local, relative sequence positions to mitigate attention confusion in long sequences. The combination achieves a 7% relative CER reduction on short utterances and a 70% relative gain on long utterances in a 10,000-hour Mandarin ASR task.
Transformer has shown promising results in many sequence to sequence transformation tasks recently. It utilizes a number of feed-forward self-attention layers to replace the recurrent neural networks (RNN) in attention-based encoder decoder (AED) architecture. Self-attention layer learns temporal dependence by incorporating sinusoidal positional embedding of tokens in a sequence for parallel computing. Quicker iteration speed in training than sequential operation of RNN can be obtained. Deeper layers of the transformer also make it perform better than RNN-based AED. However, this parallelization ability is lost when applying scheduled sampling training. Self-attention with sinusoidal positional embedding may cause performance degradations for longer sequences that have similar acoustic or semantic information at different positions as well. To address these problems, we propose to use parallel scheduled sampling (PSS) and relative positional embedding (RPE) to help the transformer generalize to unseen data. Our proposed methods achieve a 7% relative improvement for short utterances and a 70% relative gain for long utterances on a 10,000-hour Mandarin ASR task.
Motivation & Objective
- To address the generalization gap in Transformer-based end-to-end speech recognition, especially for long and unseen-length utterances.
- To overcome the inefficiency of scheduled sampling in non-autoregressive, parallel-decoding Transformers.
- To reduce attention confusion and deletion errors (tail and internal deletions) caused by similar acoustic or semantic content in long sequences.
- To improve generalization beyond training sequence lengths by modeling relative, local positional relationships.
- To combine PSS and RPE for synergistic gains in robustness and accuracy on both short and long test sets.
Proposed method
- Proposes Parallel Scheduled Sampling (PSS), where ground-truth labels and model-generated outputs are mixed at inference-like rates during training to simulate real decoding dynamics.
- Uses a hybrid model (Kaldi-based) or the transformer itself to generate candidate outputs for mixing with ground truth during decoder input injection.
- Introduces Relative Positional Embedding (RPE) to replace or supplement absolute positional embeddings, enabling the model to learn relative positional relationships within a local context window.
- Applies RPE in both encoder and decoder multi-head attention layers, restricting attention to a fixed relative range (e.g., k=10) to improve localization and reduce confusion.
- Employs a learnable token ID-based positional embedding as a baseline comparison to sinusoidal APE, showing limitations in generalization to unseen positions.
- Combines PSS and RPE in a joint training setup, with iterative decoding during training to better align with inference behavior.
Experimental results
Research questions
- RQ1Can scheduled sampling be efficiently applied to parallel-decoding Transformers without sacrificing training speed or introducing sequential bottlenecks?
- RQ2Does relative positional embedding improve generalization of Transformers to long, unseen-length utterances in speech recognition?
- RQ3To what extent do PSS and RPE reduce tail deletions and internal deletions in long-form speech recognition?
- RQ4How does RPE compare to absolute positional embeddings in handling similar acoustic or semantic segments in long sequences?
- RQ5What is the combined effect of PSS and RPE on model generalization across short and long utterance distributions?
Key findings
- The proposed PSS method achieves a 7.2% relative CER reduction (from 8.88% to 8.24%) on short utterances compared to teacher-forcing training.
- The combination of PSS and RPE reduces CER on long utterances from 42.41% to 12.73%, representing a 70% relative improvement.
- RPE alone reduces long utterance CER from 42.41% (baseline) to 29.87% when using k=10 in the encoder, and further to 12.73% with RPE in both encoder and decoder.
- The use of RPE significantly reduces both tail deletions and internal deletions, as confirmed by error analysis and example decoding comparisons.
- RPE mitigates the self-loop problem in attention decoding, as observed in qualitative examples where incorrect repetitions are corrected.
- The best-performing model (E8+E3) achieves a CER of 8.9% on short utterances and 12.89% on long utterances, demonstrating strong generalization across sequence lengths.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.