Abstract
Simultaneous Machine Translation (SiMT) requires a delicate balance between translation quality and latency. We present the Hidden Markov Transformer (HMT), a novel framework that treats the timing of translation as a latent variable. By framing SiMT as a Hidden Markov Model, HMT explicitly models multiple potential "moments" to translate each token. The model is trained to maximize the marginal likelihood of the target sequence across all possible timing paths, allowing it to learn optimal READ/WRITE policies without requiring explicit timing labels. Our results on IWSLT15 En→Vi and WMT15 De→En benchmarks show that HMT achieves state-of-the-art performance, outperforming both fixed and adaptive baselines in quality and efficiency.
Introduction
Simultaneous Machine Translation (SiMT) provides real-time translation, such as live subtitling. The primary challenge is the READ/WRITE conflict: determining whether the model should wait for more source context (READ) to improve accuracy or translate immediately (WRITE) to minimize latency.
Existing approaches typically utilize either fixed policies or adaptive policies. Fixed policies (e.g., wait-k) follow rigid rules that often struggle with divergent word orders between languages. Adaptive policies attempt to learn when to READ or WRITE but face significant training difficulties because the "optimal moment" to translate is a hidden event not present in standard parallel corpora.
Methods
The Hidden Markov Transformer (HMT) addresses these challenges by treating translation timing as a hidden state in an HMM framework.
Architecture
The HMT architecture is designed to handle multiple timing hypotheses in parallel:
- State Production: For each target token, the model generates $K$ candidate states, each corresponding to a different amount of source context.
- Hidden Markov Decoder: This component processes the $K$ states using self-attention between states, enabling the model to consider various historical timing decisions when predicting the current token.
- Selection & Confidence: During inference, the model predicts a confidence score for each state. It selects the first state that exceeds a predefined threshold (e.g., 0.5) to perform a WRITE action.
Training Strategy
HMT is trained using an HMM Loss, which calculates the probability of the target sequence by marginalizing over all possible timing paths. This encourages the model to identify the most informative source contexts naturally. Additionally, a Latency Loss penalizes excessive waiting, and a State Loss ensures that all candidate states contribute to translation accuracy.
Experiments and Results
The model was evaluated on two major benchmarks: IWSLT15 English→Vietnamese (En→Vi) and WMT15 German→English (De→En). The latter is particularly challenging due to the structural differences between German and English verb placements.
Performance and Efficiency
HMT consistently achieves state-of-the-art results across various latency levels. On the De→En task, HMT demonstrated significant BLEU score improvements over strong baselines like wait-k, MMA, and GSiMT.
Beyond quality, HMT is highly efficient. By avoiding the sequential READ/WRITE decision process common in other adaptive models, HMT leverages parallel computation, achieving faster inference speeds (e.g., 0.0142s per token compared to 0.0247s for GSiMT).
Discussion and Conclusion
The success of HMT stems from its ability to marginalize over latent timing decisions, identifying necessary source context without explicit supervision. The multi-state approach provides a robust search space for optimal translation moments, while the parallel architecture ensures high throughput.
While HMT introduces some training overhead due to the $K$ candidate states and requires tuning of the search window parameters ($L$ and $K$), its performance gains are substantial. Future work may extend this HMM-based approach to other streaming tasks, such as simultaneous speech-to-text translation.
Summary updated