Mutually-Constrained Monotonic Multihead Attention for Online ASR

Jaeyun Song, Hajin Shim, Eunho Yang

Introduction

Automatic Speech Recognition (ASR) is increasingly shifting towards online processing for real-time applications like live captioning and virtual assistants. Unlike offline Transformers that process entire sequences, online models must transcribe speech as it arrives. Monotonic Multihead Attention (MMA) was developed to enable this, allowing multiple attention "heads" to independently decide when they have sufficient acoustic information to output a token.

However, a significant challenge in MMA is the synchronization of these heads. In practice, the system's latency is determined by the slowest head. While techniques like Head-Synchronous Decoding (HSD) force heads to synchronize during inference, a discrepancy arises because the models are typically trained assuming head independence. Researchers from KAIST have introduced Mutually-Constrained Monotonic Multihead Attention (MCMMA) to resolve this training-test mismatch by incorporating synchronization constraints directly into the training phase.

Methods: Bridging the Training-Inference Gap

The core innovation of MCMMA is the integration of synchronization constraints into the model's mathematical framework during training. Instead of calculating expected alignments for each head in isolation, MCMMA modifies these calculations so that the probability of a head selecting a specific audio frame is bounded by the positions of other heads in the same layer.

Comparison between standard MMA (a) and the proposed Mutually-Constrained MMA (b), illustrating the waiting threshold constraint.

The authors derived differentiable functions to enforce a "waiting threshold" ($\epsilon$). This threshold ensures that if one head advances too far, others are mathematically encouraged to catch up. By simulating the forced synchronization of inference during training, the model learns features that are inherently compatible with real-time decoding constraints, leading to more robust performance.

Evaluation and Key Results

The MCMMA model was evaluated on two benchmark datasets: Librispeech (100-hour) for English and AISHELL-1 for Mandarin Chinese. The results demonstrate that MCMMA consistently outperforms existing online baselines.

On the noisy "test-other" set of Librispeech, MCMMA achieved a 24.8% Word Error Rate (WER), significantly better than the 27.0% achieved by the previous state-of-the-art method, HeadDrop. In the AISHELL-1 task, it reached a 6.2% Character Error Rate (CER), matching or exceeding other online methods while maintaining superior latency characteristics.

WER/CER vs. Relative Latency on Librispeech and AISHELL-1, showing MCMMA on the Pareto front.

As shown in the latency-quality plots, MCMMA consistently occupies the "Pareto front," providing the best accuracy for any given latency budget. Interestingly, the authors noted that the online MCMMA model occasionally outperformed standard offline Transformers on clean data. This suggests that the "locality" enforced by the synchronization constraints helps the model focus on relevant acoustic features while ignoring distant, irrelevant noise.

Insights and Limitations

The primary takeaway is that addressing the training-test discrepancy is crucial for high-performance online ASR. By making the model "aware" of future synchronization requirements, it learns to distribute information across heads more effectively.

However, the performance is sensitive to the choice of the waiting threshold ($\epsilon$). A threshold that is too restrictive can stifle head diversity, while one that is too loose fails to reduce latency effectively. Additionally, the modified alignment mathematics increase the computational complexity of the training phase, though inference remains efficient. Future work may explore further regularization techniques to achieve even tighter synchronization without sacrificing the unique perspectives provided by multi-head attention.

Summary updated

Abstract

Despite the feature of real-time decoding, Monotonic Multi-head Attention (MMA) shows comparable performance to the state-of-the-art offline methods in machine translation and automatic speech recognition (ASR) tasks. However, the latency of MMA is still a major issue in ASR and should be combined with a technique that can reduce the test latency at inference time, such as head-synchronous beam search decoding, which forces all non-activated heads to activate after a small fixed delay from the first head activation. In this paper, we remove the discrepancy between training and test phases by considering, in the training of MMA, the interactions across multiple heads that will occur in the test time. Specifically, we derive the expected alignments from monotonic attention by considering the boundaries of other heads and reflect them in the learning process. We validate our proposed method on the two standard benchmark datasets for ASR and show that our approach, MMA with the mutually-constrained heads from the training stage, provides better performance than baselines.
BibTeX
@inproceedings{song2021mutually,
  author = {Jaeyun Song and Hajin Shim and Eunho Yang},
  title = {{Mutually-Constrained Monotonic Multihead Attention for Online ASR}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2021},
  url = {https://openreview.net/forum?id=wVKmDUxq1IR},
}
Figure