NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DCTX-Conformer: Dynamic context carry-over for low latency unified streaming and non-streaming Conformer

Goeric Huybrechts, Srikanth Ronanki, Xilai Li, Hadis Nosrati, Sravan Bodapati, Katrin Kirchhoff

Abstract

Conformer-based end-to-end models have become ubiquitous these days and are commonly used in both streaming and non-streaming automatic speech recognition (ASR). Techniques like dual-mode and dynamic chunk training helped unify streaming and non-streaming systems. However, there remains a performance gap between streaming with a full and limited past context. To address this issue, we propose the integration of a novel dynamic contextual carry-over mechanism in a state-of-the-art (SOTA) unified ASR system. Our proposed dynamic context Conformer (DCTX-Conformer) utilizes a non-overlapping contextual carry-over mechanism that takes into account both the left context of a chunk and one or more preceding context embeddings. We outperform the SOTA by a relative 25.0% word error rate, with a negligible latency impact due to the additional context embeddings.

Introduction

In Automatic Speech Recognition (ASR), there is a classic trade-off between latency and accuracy. Non-streaming models achieve high accuracy by utilizing the full context of an audio recording. In contrast, streaming models, essential for real-time applications like voice assistants, process audio in small chunks (e.g., 320ms). This limited view often results in a performance gap as the model loses global acoustic and linguistic information. While unified models attempt to bridge this gap, performance degrades significantly when the past context is restricted. DCTX-Conformer addresses this by introducing a mechanism to maintain global context without the lag of look-ahead frames.

Methods

The DCTX-Conformer builds upon the standard Conformer architecture by introducing a Dynamic Contextual Carry-Over (CCO) mechanism.

  1. Context Embeddings: The model generates a summary vector, or context embedding, for each audio chunk. This embedding is passed to the subsequent chunk, effectively carrying over historical information.
  2. Multiple History Buffers: Unlike traditional methods that only consider the immediate previous chunk, DCTX-Conformer can attend to a bank of multiple previous context embeddings, allowing for longer-term memory.
  3. Dynamic Training: The model is trained with varying chunk sizes and left-context lengths, making it robust and "elastic" at inference time.
  4. Non-Overlapping Streaming: To minimize latency, the model operates with zero look-ahead frames, ensuring it never waits for future audio to process the current segment.
Architecture of DCTX-Conformer showing context carry-over (CTX) between chunks across encoder layers.

Key Insights and Results

The primary innovation of DCTX-Conformer is that distilled context embeddings are more effective than raw audio frames for incorporating history. This approach is computationally efficient and provides a significant accuracy boost.

A key finding is the "Inference Trick": although the model is trained to rely on a specific context, increasing the number of context embeddings in the memory bank during inference consistently improves performance across most datasets. This allows developers to trade a few milliseconds of memory for higher accuracy dynamically.

WER performance as a function of the number of context embeddings used during inference across various datasets.

Performance Highlights

  • Accuracy Gains: DCTX-Conformer outperformed SOTA unified models by an average of 25% relative Word Error Rate (WER).
  • Closing the Gap: On large-scale 10k-hour datasets, the model matched or exceeded the performance of models with unlimited past context.
  • Minimal Latency: The addition of context embeddings only adds approximately 4 to 7 milliseconds of P99 latency, which is imperceptible to users.

Conclusion

DCTX-Conformer successfully bridges the gap between streaming and non-streaming ASR performance. By utilizing dynamic context embeddings, the model achieves state-of-the-art accuracy with negligible latency impact. Future work will explore applying similar dynamic context logic to the decoder and joint networks in Transducer setups to further refine performance on short-form and specialized datasets.

Summary updated

BibTeX
@inproceedings{huybrechts2023dctx,
  author = {Goeric Huybrechts and Srikanth Ronanki and Xilai Li and Hadis Nosrati and Sravan Bodapati and Katrin Kirchhoff},
  title = {{DCTX-Conformer: Dynamic context carry-over for low latency unified streaming and non-streaming Conformer}},
  booktitle = {Interspeech},
  year = {2023},
  url = {https://openreview.net/forum?id=wXJAv0lrWy},
}
Figure