TL;DR
This paper introduces an efficient method to incorporate long-range, cross-utterance context into Conformer-Transducer speech recognition systems. By using attention pooling layers to compress variable-length history vectors into compact, low-dimensional representations, the model achieves significant word error rate (WER) reductions with minimal computational and latency overhead.
What Problem Does This Paper Address?
Most modern Automatic Speech Recognition (ASR) systems operate at the individual utterance (sentence) level, treating each spoken phrase as an isolated event. However, human conversation is inherently continuous; we rely heavily on the context of previous sentences to resolve ambiguities, understand rare words, and accurately track topics.
While incorporating cross-utterance context is highly beneficial, doing so efficiently in End-to-End (E2E) architectures like Transformers or Conformers is challenging. Previous attempts either used recurrent networks (like LSTMs) that suffer from vanishing history effects, or they concatenated frame-level embeddings from previous sentences. The concatenation approach causes the context representation size to explode alongside the length of the history, leading to severe computational bottlenecks and latency issues during deployment. This paper tackles the challenge of capturing long-range context without blowing up the computational budget.
Methods
The authors propose a Contextual Conformer-Transducer (C-T) architecture that introduces two primary modifications to handle history efficiently:
- Attention Pooling Layers: Instead of keeping every single frame embedding from previous utterances, the model uses an attention pooling mechanism. This layer compresses variable-length history vectors into a compact, fixed-size matrix ($L \times D$, where $L$ is a small fixed length like 16 or 32, and $D$ is the embedding dimension). This allows the model to dynamically weight and select the most relevant historical time steps.
- History Caching: Inspired by Transformer-XL, the encoder hidden states and the LSTM predictor states from preceding utterances are efficiently cached to prevent redundant recomputations.
To train this system effectively, the authors also designed a specialized Data Serialization strategy. Instead of shuffling sentences randomly, they group and serialize training data by audio clip or conversation session based on chronological start times, ensuring context flows naturally across minibatches.
Datasets
The model was trained and evaluated on the Gigaspeech (M-size) corpus:
- Training Set: 1,000 hours of English speech collected from diverse domains including Audiobooks, Podcasts, and YouTube videos.
- Evaluation Sets: A development set (12 hours) and a test set (40 hours) randomly sampled from Podcast and YouTube data.
Key Insights and Ideas
- Compression Without Loss: Compressing variable-length history into a tiny, fixed-size matrix ($16 \times 512$ or $32 \times 512$) performs just as well as keeping the full uncompressed frame-level history. This proves that attention pooling successfully filters out noise and retains the core semantic cues.
- Interpretability via Attention: Visualizing the attention heatmaps revealed that the pooling layer naturally assigns higher weights to highly informative keywords (e.g., "fabric") from previous sentences, which directly helps the model correctly decode related words in the current sentence.
- The Power of Deeper History: Looking back two utterances instead of just one yielded consistent performance gains, validating the importance of tracking longer-range conversational context.
Key Results
The proposed compact contextual model was evaluated across both streaming and non-streaming setups:
- Word Error Rate (WER) Reductions: For streaming C-T models, the proposed method achieved an absolute WER reduction of 0.7% on the dev set (16.4% down to 15.7%) and 0.5% on the test set (16.2% down to 15.7%). This translates to a 3.1% to 4.3% relative improvement over the baseline that only used internal sentence context.
- Computational Efficiency: Unlike uncompressed frame concatenation, which significantly slows down processing, the attention pooling method incurred only a minor 7.5% increase in latency (Real-Time Factor) during the encoder context fusion step.
Limitations and Future Work
While the paper demonstrates clear empirical gains, the authors note a few areas for future exploration:
- Generalization: Future work will focus on improving how well these cross-utterance models generalize across highly diverse or mismatched conversational domains.
- Efficiency: Further optimizations are needed to minimize the remaining latency overhead, making it even more practical for tight, real-time edge deployment scenarios.
Summary updated