Efficient Streaming LLM for Speech Recognition

Junteng Jia, Gil Keren, Wei Zhou, Egor Lakomkin, Xiaohui Zhang, Chunyang Wu, Frank Seide, Jay Mahadeokar, Ozlem Kalinli

TL;DR

SpeechLLM-XL is a novel streaming speech recognition model that adapts decoder-only Large Language Models (LLMs) to process long-form audio with linear computational scaling. By segmenting audio into fixed-size chunks and restricting the LLM's attention window, it eliminates the quadratic processing costs and early-termination bugs typical of standard SpeechLLMs. The model achieves highly competitive Word Error Rates (WER) on LibriSpeech and handles audio over 10 times longer than its training data with zero performance degradation.

What Problem Does This Paper Address?

Recent advances in Automatic Speech Recognition (ASR) show that pretrained LLMs can be successfully adapted for speech by prompting them with audio encodings. While these "SpeechLLMs" achieve state-of-the-art accuracy, they suffer from three major limitations when applied to long-form, real-world audio:

  1. Poor Length Extrapolation: Because they are trained on short audio clips, standard SpeechLLMs tend to emit an "End-of-Sentence" (EOS) token prematurely when encountering long utterances, leading to massive deletion errors.
  2. Quadratic Computational Cost: The self-attention mechanism of LLMs scales quadratically ($O(T^2)$) with the length of the input sequence, making long-form inference computationally prohibitive.
  3. High Latency: Standard models are non-streaming; they require the entire audio utterance to be recorded and processed before generating any text, which is unacceptable for real-time applications.

The authors introduce SpeechLLM-XL (Extra Long) to solve these challenges simultaneously.

Methods

SpeechLLM-XL combines a streaming audio encoder (Emformer) with a downsized Llama2 LLM decoder. The core innovation lies in its chunk-based processing and attention constraints:

  • Audio Chunking: The input audio is divided into static-length chunks (e.g., 1.28 seconds). The audio encodings are interleaved with text embeddings based on their temporal alignment.
  • Limited Attention Window: Instead of allowing tokens to attend to the entire history, the LLM decoder's self-attention is restricted to the current chunk plus a small, configurable number of historical chunks ($b$). This bounds the attention context, shifting the computational complexity from quadratic to linear ($O(T)$).
  • Per-Chunk EOS: The model is trained to predict a chunk-level EOS token ($) to signal when it has finished transcribing the current audio chunk, allowing it to seamlessly transition to the next block of streaming audio.
  • CTC Forced Alignment: To train the model without requiring manual word-level timestamps, the authors introduce an auxiliary Connectionist Temporal Classification (CTC) loss to the encoder. A CTC forced aligner automatically segments the text transcripts to match the audio chunks during training.
Overview of the SpeechLLM-XL architecture and chunking mechanism.

Datasets

The model was trained and evaluated on the standard LibriSpeech dataset, which contains 960 hours of English audiobooks. To test long-form extrapolation, the authors created synthetic long-form datasets by concatenating multiple test-clean and test-other utterances together to form sequences up to 10 times longer than typical training samples.

Key Insights and Ideas

  • History Can Be Aggressively Pruned: A surprising finding is that the LLM's context window can be drastically reduced without hurting accuracy. Limiting the decoder's memory to just the previous 1.28 seconds of audio performs nearly as well as keeping an infinite history.
  • Context is Still King: While history can be short, it cannot be zero. Completely isolating chunks (zero historical context) causes a notable spike in errors, proving that bridging context between streaming chunks is vital.
  • Chunking Cures Early Termination: By forcing the model to decode chunk-by-chunk and terminate only at the local chunk level, the global "early EOS" hallucination on long audio is entirely averted.

Key Results

  • Competitive Accuracy: With a chunk size of 1.28 seconds, SpeechLLM-XL achieves a Word Error Rate (WER) of 2.7% on test-clean and 6.7% on test-other, performing comparably to non-streaming baselines.
  • Flawless Extrapolation: On audio sequences stretched to 10x the training length, the standard SpeechLLM baseline failed completely, with its WER skyrocketing to over 80% due to early termination. SpeechLLM-XL maintained a stable 2.7% WER with zero degradation.
Table showing the effect of audio chunk size on Word Error Rate (WER).
  • Baseline Comparison: SpeechLLM-XL outperformed other popular streaming architectures, including standard CTC and Transducer baselines, as well as contemporary LLM-based streaming models like ReaLLM.

Limitations and Future Work

The authors note that the automated CTC forced alignment tends to predict token boundaries roughly 52 milliseconds ahead of a high-quality hybrid acoustic reference model. This slight "negative emission delay" causes a minor accuracy penalty.

Additionally, this work focused strictly on evaluating the core architecture and hyper-parameters. The authors suggest that incorporating standard ASR performance boosters—such as self-supervised encoder pre-training, pseudo-labeling, or shallow fusion with external language models—remains an open and promising direction for future deployment.

Summary updated

BibTeX
@inproceedings{jia2025efficient,
  author = {Junteng Jia and Gil Keren and Wei Zhou and Egor Lakomkin and Xiaohui Zhang and Chunyang Wu and Frank Seide and Jay Mahadeokar and Ozlem Kalinli},
  title = {{Efficient Streaming LLM for Speech Recognition}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2025},
  doi = {10.1109/icassp49660.2025.10890853},
}
Figure