Towards Effective and Compact Contextual Representation for Conformer Transducer Speech Recognition Systems

Mingyu Cui, Jiawen Kang, Jiajun Deng, Xi Yin, Yutao Xie, Xie Chen, Xunying Liu

Introduction

Modern Automatic Speech Recognition (ASR) systems have achieved remarkable accuracy, yet most operate on a per-utterance basis. This "forgetful" nature ignores the rich linguistic and acoustic context provided by preceding speech. In natural conversation, podcasts, or lectures, previous sentences often contain critical cues for resolving phonetic ambiguities or identifying specialized terminology. This paper addresses the challenge of incorporating cross-utterance context into the Conformer-Transducer (C-T) framework without incurring prohibitive computational costs.

The Contextual Dilemma

Integrating historical context usually involves a trade-off between memory and speed. Existing approaches typically fall into two categories, each with distinct drawbacks:

  1. The Vanishing Problem: Older Recurrent Neural Network (RNN) approaches often suffer from information decay, where context from distant history fades before it can be utilized.
  2. The Bloat Problem: Newer Transformer-based models often rely on concatenating raw history vectors. While effective for accuracy, this leads to high-dimensional data that significantly increases latency, making real-time streaming deployment difficult.

The authors propose a "Goldilocks" solution: a representation that is sufficiently expressive to improve accuracy but compact enough for production environments.

Methodology: The Compact Contextual Conformer

The researchers introduce three primary innovations to the standard Conformer-Transducer architecture to enable efficient context processing:

Attention-Based Pooling

Rather than passing raw hidden states from previous utterances forward, the model employs a specialized attention pooling layer. This mechanism "scans" the historical data and compresses variable-length hidden states into a fixed-length, low-dimensional vector. This acts as a distilled summary of the most relevant historical information, significantly reducing the data footprint.

Dual-Path Context Fusion

The compressed historical summary is integrated into both the Encoder (acoustic modeling) and the Predictor (language modeling) components of the C-T system. By influencing both paths, the context helps the model better understand both the acoustic nuances and the linguistic likelihood of upcoming words simultaneously.

Efficient Caching and Serialized Training

To maintain efficiency, the system utilizes a caching mechanism inspired by Transformer-XL, preventing redundant calculations across utterance boundaries. Furthermore, the training process was modified to use "serialized training," where utterances from the same audio source are processed chronologically rather than being shuffled randomly. This teaches the model to actively leverage the temporal dependencies between sentences.

Experimental Evaluation

The proposed model was evaluated on the Gigaspeech M-size corpus, a 1000-hour dataset featuring diverse content from audiobooks, podcasts, and YouTube. This dataset is particularly well-suited for contextual ASR research due to its conversational and long-form nature, where topics often persist across multiple sentences.

Key Findings

  • Accuracy Gains: The contextual model achieved a Word Error Rate (WER) reduction of 0.5% to 0.7% absolute, representing a relative improvement of 3.1% to 4.3% over the non-contextual baseline. These improvements were consistent across both development and test sets.
  • Computational Efficiency: Despite the added complexity of processing history, the compact representation limited the increase in processing latency to just 7.5% during the context fusion step, demonstrating its viability for streaming applications.
  • Interpretability: Analysis of attention maps revealed that the pooling mechanism successfully learns to focus on salient keywords from previous utterances. For instance, if a previous sentence mentioned a specific topic like "fabric," the model assigns higher weight to that term to assist in the decoding of subsequent related terms.

Conclusion and Future Work

This research demonstrates that effective cross-utterance context does not require the retention of all raw historical data. By utilizing attention-based pooling to create compact representations, Conformer-Transducer systems can achieve significant accuracy improvements with minimal impact on latency.

While the results are promising, the authors noted that future exploration is needed to determine if even longer-range history (e.g., the entirety of a long meeting) can be compressed as effectively. Additionally, further work will focus on generalizing these contextual models to domains beyond the Gigaspeech corpus and further optimizing latency for edge device deployment.

Summary updated

BibTeX
@inproceedings{cui2023towards,
  author = {Mingyu Cui and Jiawen Kang and Jiajun Deng and Xi Yin and Yutao Xie and Xie Chen and Xunying Liu},
  title = {{Towards Effective and Compact Contextual Representation for Conformer Transducer Speech Recognition Systems}},
  booktitle = {Interspeech},
  year = {2023},
  doi = {10.21437/interspeech.2023-552},
}
Figure