MFLA: Monotonic Finite Look-ahead Attention for Streaming Speech Recognition

Yinfeng Xia, Huiyan Li, Chenyang Le, Manhong Wang, Yutao Sun, Xingyang Ma, Yanmin Qian

Introduction

Large-scale pre-trained models, most notably OpenAI’s Whisper, have set new benchmarks for automatic speech recognition (ASR) across multiple languages. However, these models are fundamentally designed as sequence-to-sequence systems that require the entire audio signal to be present before processing. This "offline" nature introduces significant inference latency, rendering them unsuitable for real-time applications such as live captioning, simultaneous interpretation, or interactive voice assistants.

Adapting these models for streaming—where audio is processed in small, incremental chunks—presents two primary challenges: asynchronous processing and boundary ambiguity. Training typically occurs on full sentences, creating a mismatch when the model is asked to perform on partial audio segments during inference. Furthermore, without "future" context, models often struggle to identify word boundaries or resolve phonetic similarities at the edge of an audio chunk. To address these issues, researchers have introduced Streaming-Whisper, a framework utilizing Monotonic Finite Look-ahead Attention (MFLA) to achieve a controllable balance between recognition accuracy and processing delay.

The Streaming-Whisper Framework

Streaming-Whisper transforms the offline Whisper architecture into a real-time system through three integrated components: a predictor module, a specialized attention mechanism, and an efficient decoding strategy.

Continuous Integrate-and-Fire (CIF) Predictor

To bridge the gap between continuous audio frames and discrete text tokens, the authors integrated a Continuous Integrate-and-Fire (CIF) predictor. This module consists of two linear layers that estimate "token weights" for each incoming audio frame. As audio is processed, these weights accumulate; once they reach a predefined threshold, the system triggers the emission of a text token. This mechanism establishes a quasi-monotonic alignment, ensuring the model only attempts to generate text when sufficient acoustic information has been gathered.

Monotonic Finite Look-ahead Attention (MFLA)

Standard self-attention allows every token to attend to every other token in a sequence, which is impossible in a streaming context. MFLA modifies this by restricting the attention mask. Each token maintains access to the entire preceding history (infinite left-context) but is limited to a small, fixed window of the future (finite right-context). This "finite look-ahead" allows the model to "peek" just far enough into the future to resolve phonetic ambiguities at chunk boundaries without waiting for the speaker to finish the entire utterance.

Wait-k Decoding and State Continuation

Borrowing from simultaneous machine translation, the framework employs a Wait-k policy. The system waits for $k$ chunks of audio to arrive before it begins generating the transcript. To optimize this process, the researchers implemented buffer state continuation (denoted as Wait-k†). Unlike standard decoding which might re-calculate hidden states for every new chunk, state continuation preserves the hidden states of the encoder and decoder, significantly reducing redundant Floating Point Operations (FLOPs).

Experimental Setup

The Streaming-Whisper model was fine-tuned using Low-Rank Adaptation (LoRA), which allows for efficient training by freezing the original Whisper parameters and only updating small adapter layers. The model was evaluated across various scales (from Small to Large-V3-Turbo) using a massive multi-lingual dataset:

  • WenetSpeech4TTS: 12,800 hours of Mandarin audio.
  • LibriSpeech: The standard benchmark for English ASR.
  • Multilingual Librispeech (MLS): For German and Spanish evaluation.
  • VoxPopuli: To ensure robustness across diverse European languages.

Key Results and Insights

The researchers found that the inclusion of finite look-ahead context was critical for performance. By providing the model with a small window of future context, the errors typically associated with "guessing" at chunk boundaries were significantly reduced.

Accuracy vs. Latency

Using the Wait-3 policy on the Whisper Large-V3-Turbo model, the system achieved a Word Error Rate (WER) of 7.17%. While this represents a slight increase from the offline baseline of 5.63%, it enables real-time functionality that the baseline cannot provide. When compared to the industry-standard "Local Agreement" policy, the Wait-1 strategy reduced latency (measured by Differentiable Average Lagging) by 43.63% with minimal impact on accuracy.

Computational Efficiency

The implementation of state continuation (Wait-k†) proved highly effective for deployment. The optimized decoding strategy achieved a 60.86% reduction in redundant computations compared to standard wait-k approaches, making it feasible for resource-constrained environments.

Conclusion and Future Work

Streaming-Whisper and the MFLA mechanism provide a robust solution for adapting powerful offline models to real-time constraints. By combining monotonic alignment with a controlled look-ahead window, the framework achieves state-of-the-art streaming performance.

However, limitations remain. The current CIF predictor is relatively simple, which can occasionally lead to biased token weight estimations. Additionally, the use of LoRA, while efficient, may limit the encoder's ability to fully adapt to the nuances of streaming audio compared to full fine-tuning. Future research will focus on developing more sophisticated predictor networks and exploring deeper adaptation methods to further close the performance gap between offline and streaming ASR.

Summary updated

BibTeX
@inproceedings{xia2025mfla,
  author = {Yinfeng Xia and Huiyan Li and Chenyang Le and Manhong Wang and Yutao Sun and Xingyang Ma and Yanmin Qian},
  title = {{MFLA: Monotonic Finite Look-ahead Attention for Streaming Speech Recognition}},
  booktitle = {Interspeech},
  year = {2025},
  doi = {10.21437/interspeech.2025-1541},
}
Figure