Skip to main content
QUICK REVIEW

[Paper Review] A study of latent monotonic attention variants

Albert Zeyer, Ralf Schlüter|arXiv (Cornell University)|Mar 30, 2021
Speech Recognition and SynthesisComputer Science71 references7 citations
TL;DR

This paper proposes a mathematically principled method to enforce monotonic attention in sequence-to-sequence models by introducing a latent variable representing audio segment boundaries. The approach achieves performance on par with global soft attention on Switchboard (14.4% WER) while enabling online inference, stability, and efficiency through strict monotonicity.

ABSTRACT

End-to-end models reach state-of-the-art performance for speech recognition, but global soft attention is not monotonic, which might lead to convergence problems, to instability, to bad generalisation, cannot be used for online streaming, and is also inefficient in calculation. Monotonicity can potentially fix all of this. There are several ad-hoc solutions or heuristics to introduce monotonicity, but a principled introduction is rarely found in literature so far. In this paper, we present a mathematically clean solution to introduce monotonicity, by introducing a new latent variable which represents the audio position or segment boundaries. We compare several monotonic latent models to our global soft attention baseline such as a hard attention model, a local windowed soft attention model, and a segmental soft attention model. We can show that our monotonic models perform as good as the global soft attention model. We perform our experiments on Switchboard 300h. We carefully outline the details of our training and release our code and configs.

Motivation & Objective

  • Address convergence, instability, and inefficiency issues in global soft attention by enforcing monotonicity.
  • Overcome limitations of heuristic or deterministic monotonicity methods that lack flexibility in alignment decisions.
  • Provide a principled, differentiable, and probabilistic framework for monotonic alignment using latent variables.
  • Enable online streaming and stable decoding by ensuring strict monotonicity in attention mechanisms.
  • Demonstrate competitive performance against global soft attention while maintaining monotonicity and efficiency.

Proposed method

  • Introduce a latent variable $ t_i $ representing the source frame position for each output label $ y_i $, modeling $ p(t_i | y_{1}^{i-1}, x_{1}^{T}) $.
  • Use a softmax-normalized attention distribution over all encoder frames to compute $ p(t_i | ext{decoder state}) $, ensuring monotonicity via the latent variable.
  • Train the model end-to-end with cross-entropy loss on both labels and alignments, enabling joint optimization of transcription and alignment.
  • Implement online-capable variants by restricting the maximum step size to $ au $, e.g., 30 frames (1.8s), to avoid full-sequence computation.
  • Compare with baseline global soft attention, hard attention, local windowed attention, and segmental soft attention models on Switchboard 300h.
  • Use beam search decoding with recombination and label smoothing to stabilize training and improve alignment quality.

Experimental results

Research questions

  • RQ1Can a latent variable-based approach enforce strict monotonicity in attention mechanisms while maintaining competitive ASR performance?
  • RQ2How does the performance of monotonic latent attention compare to global soft attention in terms of WER on Switchboard?
  • RQ3What is the optimal maximum step size for online inference without sacrificing accuracy?
  • RQ4Does the use of a probabilistic latent alignment mechanism improve training stability and convergence compared to deterministic or heuristic methods?
  • RQ5Can monotonic latent attention models support both label-synchronous and time-synchronous decoding, enabling online streaming?

Key findings

  • The proposed monotonic latent attention models achieve a WER of 14.4% on Hub5'00, matching the performance of the global soft attention baseline.
  • A maximum step size of 30 frames (1.8s) is sufficient for high performance, with no significant improvement beyond this threshold.
  • Label smoothing and proper sequence shuffling during training significantly improve convergence and reduce WER by over 1 percentage point.
  • The model exhibits stable training dynamics after initial instability due to alignment issues, which are mitigated by recombination and weight feedback mechanisms.
  • Hard attention variants with approximated recombination and expanded time modeling ($ K_t = 48 $) achieve WER of 14.8%, showing robustness to hyperparameter tuning.
  • Visualizations confirm that the latent models produce sharper, more monotonic attention distributions than global soft attention, with minimal non-monotonic deviations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.