SiLLM: Large Language Models for Simultaneous Machine Translation

Shoutao Guo, Shaolei Zhang, Zhengrui Ma, Min Zhang, Yang FengarXiv 2024 · DOI

Abstract

Simultaneous Machine Translation (SiMT) requires a model to generate translations in real-time as the source sentence is being delivered. This creates a fundamental trade-off between latency and translation quality. Traditional approaches often struggle to balance these competing demands within a single architecture. We present SiLLM, a novel framework that decouples the SiMT task into two specialized components: a policy-decision agent that determines the timing of translations and a large language model (LLM) translation agent. By introducing a universal word-level policy and targeted fine-tuning, SiLLM achieves state-of-the-art performance on standard benchmarks, effectively leveraging the linguistic prowess of LLMs for streaming applications.

Introduction

Simultaneous Machine Translation (SiMT) is essential for real-world applications like live subtitling and international conferences. Unlike offline translation, SiMT models must decide when they have sufficient context to begin translating (the "policy") and then produce accurate target text (the "translation"). If a model waits too long, the delay becomes unacceptable for users; if it starts too soon, it risks "hallucinating" or producing incoherent output due to missing context.

Historically, SiMT has relied on single Transformer-based models to handle both policy and translation. However, the requirements for these tasks are distinct. Large Language Models (LLMs) have demonstrated exceptional translation capabilities but are typically designed for full-sentence processing. SiLLM addresses this by creating a "division of labor" between a timing-focused agent and a high-capacity translation agent.

The SiLLM Architecture

The SiLLM framework consists of three primary modules working in a collaborative loop: the Policy-Decision Agent, the Translation Agent, and a shared Memory Module.

The SiLLM framework decouples the SiMT task into specialized agents for policy and translation.
  1. Policy-Decision Agent: This module acts as the system's "brain" for timing. It uses a conventional SiMT model (such as a Hidden Markov Transformer or HMT) to monitor the incoming source stream. Its sole responsibility is to decide whether to read more source words or signal the translation agent to generate the next target word.
  2. Translation Agent (LLM): Once triggered by the policy agent, a fine-tuned LLM (e.g., Llama 2-7B) generates the translation. It utilizes the partial source sentence and the history of generated target words stored in memory.
  3. Memory Module: This serves as the central repository for instructions, the accumulating source sentence, and the translation history, ensuring both agents have access to the current state of the task.

Bridging the Gap: Word-Level Policy and SFT

A significant challenge in decoupling these agents is the difference in tokenization. Different models use different sub-word units, making a token-based policy incompatible across agents. SiLLM solves this by implementing a word-level policy. Token-level decisions from the policy agent are aggregated into universal word-level boundaries, which the LLM can then interpret consistently.

Furthermore, while LLMs are powerful, they are not natively trained to translate from incomplete "prefixes." To optimize performance, the authors employed Supervised Fine-Tuning (SFT) using Low-Rank Adaptation (LoRA). Interestingly, experiments revealed that fine-tuning on full-sentence pairs was more effective than training on partial prefixes. Training on incomplete data tended to degrade the LLM's understanding of semantic equivalence, whereas full-sentence training preserved its core translation strength while allowing it to adapt to the SiLLM framework.

Experimental Results

SiLLM was evaluated on two major benchmarks: WMT15 German-to-English (De-En) and MuST-C English-to-German (En-De).

Performance comparison of SiLLM against baseline models across different latency levels (Average Lagging).

The results demonstrate that SiLLM sets a new state-of-the-art (SOTA) for simultaneous translation. On the WMT15 De-En task, the HMT-SiLLM+SFT variant achieved a BLEU score of 30.60 at an Average Lagging (AL) of 4.2, significantly outperforming the standard HMT model (29.10 BLEU).

Key observations include:

  • Reduced Hallucinations: By leveraging the vast internal knowledge of the LLM and the strategic timing of the policy agent, SiLLM produces far fewer errors when context is limited compared to traditional end-to-end models.
  • Efficiency: Despite the 7B parameter size, SiLLM maintains a generation speed of approximately 9 words per second on consumer-grade hardware (NVIDIA RTX 3090). This comfortably exceeds the average human speech rate of 2-3 words per second, making it viable for real-time use.

Conclusion

SiLLM demonstrates that the "division of labor" approach is highly effective for complex tasks like simultaneous translation. By decoupling timing from linguistics, the framework allows each component to excel in its specialized role. Future work will focus on improving the policy-decision agent, as its accuracy currently acts as the primary bottleneck for the system's overall performance. Additionally, exploring smaller, distilled LLMs could further reduce the computational footprint without sacrificing translation quality.

Summary updated

BibTeX
@misc{guo2024sillm,
  author = {Shoutao Guo and Shaolei Zhang and Zhengrui Ma and Min Zhang and Yang Feng},
  title = {{SiLLM: Large Language Models for Simultaneous Machine Translation}},
  year = {2024},
  eprint = {2402.13036},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.13036},
}
Figure