Future-Guided Incremental Transformer for Simultaneous Translation

Shaolei Zhang, Yang Feng, Liangyou Li

Simultaneous Translation (ST) is the task of generating a target-language translation while the source-language input is still being received. This is a critical technology for real-time applications like live subtitling and international conferences. A common approach is the wait-k policy, where the model waits for $k$ source tokens before starting to translate. However, standard Transformer-based ST models suffer from two primary issues: high computational redundancy during training and a lack of future context, often referred to as the "blindness" problem.

Addressing Computational Redundancy

In a standard Transformer, bidirectional encoders are used. As each new word arrives in a stream, the model must re-calculate the hidden states for all previous words. This leads to a training complexity of $O(n^3)$, which is prohibitively slow for large datasets.

To resolve this, the authors propose an Incremental Transformer utilizing a unidirectional encoder. By restricting the encoder to look only at past tokens, the model can process new input tokens one by one without re-calculating previous states, reducing training complexity to $O(n^2)$. To compensate for the loss of bidirectional context, an Average Embedding Layer (AEL) is integrated into the last layer of the decoder. The AEL provides a global summary of the source prefix by averaging the embeddings of all currently consumed source tokens, bridging the information gap created by the unidirectional constraint.

Future-Guided Training via Knowledge Distillation

The second challenge, "blindness," arises because the model only sees a prefix of the sentence during simultaneous decoding. While wait-k models attempt to learn anticipation from data, this is often inefficient. The authors introduce Future-Guided Training using a Knowledge Distillation (KD) framework.

The Future-Guided training framework uses an offline "Teacher" to guide an incremental "Student" model.

In this setup, a standard offline Transformer acts as a Teacher, having access to the full source sentence. The Incremental Transformer acts as the Student, seeing only the prefix. During training, the student is encouraged to match the teacher's hidden states through an $L_2$ loss function. This forces the student to "hallucinate" the features of the complete sentence even when only a fragment is available.

Impact of Regularization on Hidden States

The effectiveness of this distillation is evident when visualizing the hidden states. Without specific guidance, the incremental model's internal representations diverge significantly from those of a full-sentence model.

Visualization of hidden states showing that L2 regularization effectively aligns the Incremental (Student) model's representations with the Conventional (Teacher) model.

As shown in the visualization above, applying $L_2$ regularization during training successfully aligns the student's hidden states with the teacher's. This alignment allows the student to capture "future" context implicitly, improving its ability to make accurate translations early in the sentence.

Key Results and Performance

The Future-Guided Incremental Transformer achieves significant improvements in both efficiency and quality:

  • Training Speed: The model is approximately 28 times faster to train than standard wait-k baselines. In extreme low-latency settings ($k=1$), the speedup reaches nearly 48x.
  • Translation Quality: On Chinese-English (Zh-En) tasks, the model improved BLEU scores by an average of 1.88 points. On German-English (De-En), it saw a 0.91-point improvement.
  • Latency: Since the future-guidance mechanism is only active during training, the model maintains the low inference latency of the original wait-k policy.

Conclusion

By combining a unidirectional encoder with an Average Embedding Layer and a future-guided distillation process, the authors present a solution that is both faster to train and more accurate than traditional simultaneous translation models. This approach effectively addresses the computational bottlenecks and the context limitations inherent in real-time translation tasks.

Summary updated

BibTeX
@inproceedings{zhang2021future,
  author = {Shaolei Zhang and Yang Feng and Liangyou Li},
  title = {{Future-Guided Incremental Transformer for Simultaneous Translation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i16.17696},
}
Figure