NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Decoder-only Streaming Transformer for Simultaneous Translation

Shoutao Guo, Shaolei Zhang, Yang Feng

Abstract

Simultaneous Machine Translation (SiMT) generates translation while reading source tokens, essentially producing the target prefix based on the source prefix. To achieve good performance, it leverages the relationship between source and target prefixes to exact a policy to guide the generation of translations. Although existing SiMT methods primarily focus on the Encoder-Decoder architecture, we explore the potential of Decoder-only architecture, owing to its superior performance in various tasks and its inherent compatibility with SiMT. However, directly applying the Decoder-only architecture to SiMT poses challenges in terms of training and inference. To alleviate the above problems, we propose the first Decoder-only SiMT model, named Decoder-only Streaming Transformer (DST). Specifically, DST separately encodes the positions of the source and target prefixes, ensuring that the position of the target prefix remains unaffected by the expansion of the source prefix. Furthermore, we propose a Streaming Self-Attention (SSA) mechanism tailored for the Decoder-only architecture. It is capable of obtaining translation policy by assessing the sufficiency of input source information and integrating with the soft-attention mechanism to generate translations. Experiments demonstrate that our approach achieves state-of-the-art performance on three translation tasks.

Introduction

Simultaneous Machine Translation (SiMT) is a challenging task that requires generating target text in real-time as source tokens are received. Traditionally, this has been the domain of Encoder-Decoder architectures. However, the recent success of large-scale Decoder-only models suggests that these architectures offer superior scaling and parameter efficiency.

Transitioning SiMT to a Decoder-only framework presents two significant hurdles. First, inference efficiency: standard decoder-only models often require re-encoding the entire sequence when new tokens arrive due to shifting positional indices. Second, policy learning: SiMT requires a robust "read-vs-write" policy. In a single-stream architecture, learning this dynamic balance is more complex than in dual-stream systems. This paper introduces the Decoder-only Streaming Transformer (DST) to address these challenges.

Methods

The DST architecture introduces several key innovations to enable efficient and effective simultaneous translation within a decoder-only framework.

Separate Position Encoding

To solve the inference efficiency problem, DST employs separate position encodings for source and target prefixes. By decoupling these, the position IDs of previously generated target tokens remain stable even as the source prefix expands. This eliminates the computational overhead of re-encoding the target prefix at every step.

Streaming Self-Attention (SSA)

The core of DST is the Streaming Self-Attention mechanism. Unlike standard masked self-attention, SSA calculates an "allocated attention" probability for potential source prefixes. This allows the model to dynamically determine if the current source information is sufficient to generate the next target token.

The DST architecture featuring separate positional embeddings and the Streaming Self-Attention mechanism.

Training Objectives and Curriculum Learning

DST is trained using a multi-constraint loss function, including a Summation Constraint to align SSA with standard self-attention, a Latency Constraint to ensure low-latency translation, and a Consistency Constraint to ensure policy agreement across transformer layers. Additionally, a curriculum learning strategy is used, where the model transitions from full-sentence training to prefix-based translation.

Results and Discussion

DST was evaluated on three major benchmarks: IWSLT15 (En→Vi), WMT16 (En→Ro), and WMT15 (De→En).

Performance and Efficiency

DST achieved state-of-the-art (SOTA) results across all language pairs, outperforming established methods like Wait-k, MMA, and HMT. Notably, DST is more parameter-efficient, using 67M parameters to outperform the 80M-parameter HMT baseline. It also demonstrates significant speed improvements, being 1.4x faster during inference and 2x faster to train.

Performance comparison of DST against other SiMT methods across three language pairs, showing BLEU score vs. Average Lagging.

Hallucination Mitigation

A common failure mode in SiMT is "hallucination," where the model predicts text without sufficient source context. DST's adaptive SSA mechanism significantly reduces hallucination rates compared to fixed policies like Wait-k by more accurately judging information sufficiency.

Conclusion

The Decoder-only Streaming Transformer (DST) represents a significant step forward for simultaneous translation. By leveraging the efficiency of decoder-only architectures and introducing novel attention and encoding mechanisms, DST achieves superior quality-latency trade-offs. Future work will explore scaling DST to larger model sizes and refining curriculum learning for more diverse language pairs.

Summary updated

BibTeX
@inproceedings{guo2024decoder,
  author = {Shoutao Guo and Shaolei Zhang and Yang Feng},
  title = {{Decoder-only Streaming Transformer for Simultaneous Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=aJaCCGGDJz},
}

Loading related content...

Figure