Streaming Transformer Transducer Based Speech Recognition Using Non-Causal Convolution

Yangyang Shi, Chunyang Wu, Dilin Wang, Alex Xiao, Jay Mahadeokar, Xiaohui Zhang, Chunxi Liu, Ke Li, Yuan Shangguan, Varun Nagaraja, Ozlem Kalinli, Mike Seltzer

Introduction

Streaming Automatic Speech Recognition (ASR) is a critical component for real-time applications like voice assistants and live captioning. Unlike offline models that process entire utterances, streaming models must operate on a continuous audio stream with minimal lookahead. While the Conformer architecture has set benchmarks in offline ASR by leveraging convolutions, its adaptation to streaming remains challenging due to the inherent future-dependency of non-causal convolutions. This paper introduces the Advanced Emformer, an evolution of the Emformer architecture that integrates streaming non-causal convolutions, "talking-heads" attention, and a simplified context compression mechanism to achieve significant accuracy improvements without compromising latency.

Architectural Enhancements

The authors propose three primary modifications to the baseline Emformer to bridge the performance gap between streaming and offline models.

1. Streaming Non-Causal Convolution

Standard non-causal convolutions require access to future frames, making them unsuitable for strict streaming. The researchers developed a block-based approach where the input is partitioned into a center block (current audio) and a right context (lookahead). By applying a specific padding strategy—using the end of the center block to pad the lookahead—the model can utilize local future context within the lookahead window during both training and inference without leaking information from beyond the allowed buffer.

2. Talking-Heads Attention

In standard multi-head attention, different heads operate independently. The Advanced Emformer adopts "talking-heads" attention, which introduces linear projections to allow heads to share information before and after the attention mechanism. This cross-head interaction enhances the model's representational capacity with negligible computational overhead.

3. Context Compression

To maintain long-term dependency without the computational bottleneck of sequential memory updates, the authors implemented context compression. This method uses linear interpolation to condense an entire block of audio features into a single memory slot. This simplification enables efficient parallel training on GPUs, bypassing the auto-regressive constraints of previous memory schemes.

Comparison between the baseline Emformer (a) and the proposed Advanced Emformer (b), highlighting the integration of Talking Heads Attention, Non-Causal Convolution, and Context Compression.

Experimental Evaluation

The models were evaluated on large-scale industrial datasets, including 18.3K hours for voice assistant tasks and over 2 million hours of semi-supervised data for open-domain dictation. Performance was measured using Word Error Rate (WER) across three domains: dictation (dict), assistant queries (ass), and calling (call). Latency was tracked via Speech Perceived Latency (SPL) and Real-Time Factor (RTF).

Results and Discussion

The Advanced Emformer demonstrated substantial gains, particularly in smaller model configurations (32M parameters), which are ideal for on-device deployment.

Ablation study showing the cumulative impact of non-causal convolution, talking-heads attention, and context compression on WER and latency for 73M and 32M parameter models.

Key findings include:

  • Accuracy Gains: For the 32M parameter model, the combined enhancements resulted in relative WER reductions of 5.1% for dictation, 14.5% for assistant queries, and 8.4% for calling scenarios.
  • Latency Stability: These improvements were achieved while maintaining an SPL of approximately 600ms, ensuring the model remains responsive for real-time interaction.
  • Scalability: While the benefits were most pronounced for smaller models, the 73M parameter version still showed competitive performance, suggesting that these architectural refinements are highly effective for maximizing the efficiency of resource-constrained models.

Conclusion

By successfully adapting non-causal convolutions for streaming and refining the attention and memory mechanisms, the Advanced Emformer provides a robust framework for high-accuracy, low-latency speech recognition. The ability to train these models efficiently in parallel further underscores their suitability for large-scale industrial applications.

Summary updated

BibTeX
@inproceedings{shi2022streaming,
  author = {Yangyang Shi and Chunyang Wu and Dilin Wang and Alex Xiao and Jay Mahadeokar and Xiaohui Zhang and Chunxi Liu and Ke Li and Yuan Shangguan and Varun Nagaraja and Ozlem Kalinli and Mike Seltzer},
  title = {{Streaming Transformer Transducer Based Speech Recognition Using Non-Causal Convolution}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2022},
  doi = {10.1109/icassp43922.2022.9747706},
}
Figure