Leveraging Cross-Utterance Context For ASR Decoding

Robert Flynn, Anton Ragni

Abstract

Modern Automatic Speech Recognition (ASR) systems often treat utterances as independent events, ignoring the rich contextual information present in continuous human speech. This paper investigates the integration of long-context Transformer Language Models (TLMs) directly into the first-pass beam search decoding process via shallow fusion. By utilizing efficient architectural optimizations such as Multi-Query Attention (MQA) and Key-Value (KV) caching, the authors demonstrate significant Word Error Rate (WER) reductions on conversational datasets like AMI, consistently outperforming traditional second-pass rescoring methods.

Introduction

Most contemporary ASR systems operate under a "fragmented" assumption, treating every spoken utterance as an independent and identically distributed (i.i.d.) event. However, human communication is inherently contextual; vocabulary and topics mentioned in one sentence are highly likely to recur in subsequent ones.

While previous research has attempted to capture this "cross-utterance" context during a second-pass re-scoring stage—where a model selects the best candidate from a pre-generated list—this approach is fundamentally limited. If the initial context-blind model fails to include the correct transcript in its top candidates, re-scoring cannot recover the error. The challenge addressed here is the practical integration of long-range context directly into the initial beam search without incurring prohibitive computational or memory costs.

Methodology

The authors propose a system that incorporates a Transformer Language Model (TLM) into the first-pass beam search through shallow fusion. To make this integration viable for long-form speech (up to 1000 tokens of history), several technical innovations were implemented:

  • Architectural Efficiency: To manage long histories, the system utilizes Key-Value (KV) Caching to eliminate redundant computations. Furthermore, the adoption of Multi-Query Attention (MQA)—which uses a single head for keys and values—reduced memory bandwidth bottlenecks, resulting in a 74% improvement in iteration time.
  • Contextual Modeling: A special SEP (separator) token was introduced to mark utterance boundaries. Additionally, an initial token prediction layer was added to help the model learn the typical starting patterns of utterances in specific domains, such as the frequent hesitations found in meeting corpora.
  • Stabilization: L2 normalization was applied to attention keys and queries to stabilize TLM training.
Architecture for integrating cross-utterance context via shallow fusion.

By combining the TLM score with the Acoustic Model (AM) score at every step of the beam search, the decoder can maintain hypotheses that a context-blind model would have otherwise pruned.

Experimental Setup

The proposed methods were evaluated across three distinct data environments:

  1. AMI: A multi-speaker meeting corpus characterized by frequent speaker overlaps and rapid turn-taking.
  2. Tedlium-1: A collection of formal TED talks, representing structured, long-form single-speaker speech.
  3. OpenSubtitles: A massive corpus used for initial TLM pre-training before domain-specific fine-tuning.

Results and Discussion

The experimental results highlight a clear advantage for early-integration context over late-stage rescoring. On the AMI dataset, the researchers achieved an absolute WER reduction of 0.7% on the dev set and 0.3% on the test set compared to a single-utterance baseline.

WER performance comparison between Rescoring and Beam Search across context lengths.

Key Findings:

  • Beam Search Superiority: As shown in the performance tables, beam search integration provided a 2.4%–2.5% absolute decrease over the greedy baseline on AMI, whereas n-best re-scoring only achieved a 2.0%–2.1% decrease. This confirms that applying context early allows the decoder to explore more accurate paths.
  • Diminishing Returns of Context: While perplexity continues to improve as context length increases toward 1000 tokens, actual ASR performance gains tend to plateau around 500 tokens.
  • Robustness to History Errors: A critical concern in cross-utterance ASR is error propagation—where a mis-transcription in one sentence poisons the context for the next. Testing with Ground Truth History (GTH) revealed that while noisy histories do slightly degrade performance, the system still significantly outperforms context-blind baselines.
  • Domain Sensitivity: Improvements were more pronounced on the conversational AMI data than on the formal Tedlium talks. This suggests that the utility of cross-utterance context is highly dependent on the spontaneity and turn-taking nature of the speech.

Conclusion

This research demonstrates that integrating long-context language models directly into ASR decoding is both feasible and superior to traditional rescoring. While computational overhead remains a challenge—with cross-utterance decoding taking significantly longer than single-utterance passes—optimizations like MQA and KV-caching provide a path toward practical implementation. Future work may explore deeper integration of context directly into the acoustic model or more advanced error-correction mechanisms for historical context.

Summary updated

BibTeX
@inproceedings{flynn2023leveraging,
  author = {Robert Flynn and Anton Ragni},
  title = {{Leveraging Cross-Utterance Context For ASR Decoding}},
  booktitle = {Interspeech},
  year = {2023},
  doi = {10.21437/interspeech.2023-1941},
}
Figure