[Paper Review] Monotonic Chunkwise Attention
This paper proposes Monotonic Chunkwise Attention (MoChA), a novel attention mechanism that enables online, linear-time decoding by combining hard monotonic attention with soft attention over adaptive, non-overlapping chunks of the input sequence. MoChA achieves state-of-the-art performance in online speech recognition and a 20% relative improvement in document summarization over monotonic attention, while maintaining compatibility with standard backpropagation and only a modest increase in computational cost.
Sequence-to-sequence models with soft attention have been successfully applied to a wide variety of problems, but their decoding process incurs a quadratic time and space cost and is inapplicable to real-time sequence transduction. To address these issues, we propose Monotonic Chunkwise Attention (MoChA), which adaptively splits the input sequence into small chunks over which soft attention is computed. We show that models utilizing MoChA can be trained efficiently with standard backpropagation while allowing online and linear-time decoding at test time. When applied to online speech recognition, we obtain state-of-the-art results and match the performance of a model using an offline soft attention mechanism. In document summarization experiments where we do not expect monotonic alignments, we show significantly improved performance compared to a baseline monotonic attention-based model.
Motivation & Objective
- To address the quadratic time and space complexity of standard soft attention in sequence-to-sequence models, which prevents real-time inference.
- To overcome the limitations of hard monotonic attention, which restricts model expressivity and underperforms soft attention in non-monotonic alignment tasks.
- To enable efficient, online decoding while preserving the flexibility of soft attention through adaptive chunking of the input sequence.
- To develop a training procedure compatible with standard backpropagation that allows MoChA to be integrated into existing sequence-to-sequence architectures.
Proposed method
- MoChA uses a hard monotonic attention mechanism to determine the end of a chunk in the encoder memory, ensuring left-to-right, non-reordering alignment.
- Within each chunk, soft attention is applied over a fixed window size w, computing a weighted average of the memory states as the context vector.
- The chunk boundaries are determined dynamically at test time by the monotonic mechanism, allowing adaptive segmentation based on input structure.
- The attention weights for each chunk are computed using a standard soft attention mechanism, with the query from the decoder's hidden state and keys from the memory chunk.
- The model is trained end-to-end using standard backpropagation, with the expected output of the hard monotonic mechanism approximated during training to enable gradient flow.
- The chunk size w is a hyperparameter that controls the trade-off between computational efficiency and modeling flexibility.
Experimental results
Research questions
- RQ1Can a hybrid attention mechanism combining monotonic chunking with soft attention achieve linear-time decoding while maintaining high performance?
- RQ2Does MoChA close the performance gap between soft attention and hard monotonic attention in online sequence transduction tasks?
- RQ3Can MoChA effectively model local reorderings in tasks like document summarization, where monotonic alignments are not expected?
- RQ4Is MoChA trainable with standard backpropagation without requiring specialized optimization or reinforcement learning?
Key findings
- On the Wall Street Journal online speech recognition benchmark, MoChA achieved a word error rate (WER) of 13.9%, matching the performance of a soft attention model (14.2%) and outperforming the previous state-of-the-art monotonic attention model (17.4%).
- In document summarization on the CNN/Daily Mail dataset, MoChA with w=8 achieved an ROUGE-F1 score of 35.46, representing a 20% relative improvement over hard monotonic attention (31.14) and approaching the performance of soft attention (39.11).
- MoChA enables online, linear-time decoding with O(TU) complexity reduced to O(T) for inference, making it suitable for real-time applications.
- The method maintains compatibility with standard backpropagation, allowing seamless integration into existing sequence-to-sequence models without architectural overhaul.
- The performance gain in summarization demonstrates that MoChA can model local reorderings effectively, even when the input-output alignment is not strictly monotonic.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.