TransLLaMa: LLM-based Simultaneous Translation System

Roman Koshkin, Katsuhito Sudoh, Satoshi Nakamura

Abstract

Simultaneous Machine Translation (SiMT) requires a delicate balance between translation quality and latency. Traditional approaches rely on complex encoder-decoder architectures with external decision-making policies. TransLLaMa simplifies this by transforming off-the-shelf, decoder-only Large Language Models (LLMs) into high-performance SiMT systems. By fine-tuning on "causally aligned" data, the model learns to autonomously manage information flow using a special <WAIT> token. Our results demonstrate that TransLLaMa achieves competitive performance compared to specialized state-of-the-art models without requiring a separate policy.

Introduction

Simultaneous Machine Translation (SiMT) involves translating speech or text in real-time as the source is being produced. This task presents a fundamental trade-off: translating too early leads to errors due to lack of context, while waiting too long results in unusable latency for the listener.

Conventional SiMT systems typically employ an encoder-decoder framework paired with an external "policy" model or logic that dictates when to READ (wait for more input) or WRITE (generate output). While effective, this adds significant engineering complexity. Modern Large Language Models (LLMs) like Llama-2 or GPT-4, though powerful, are primarily designed for full-sentence processing. Adapting these decoder-only models to the incremental nature of simultaneous interpretation remains a challenge.

Methodology: TransLLaMa

TransLLaMa is a "policy-free" SiMT system where the LLM itself manages the quality-latency tradeoff. The system architecture, illustrated in Figure 1, uses a cascaded approach for speech-to-text tasks.

TransLLaMa system architecture showing the integration of ASR, word buffering, and the LLM decision loop.

Causal Alignment

The core innovation of TransLLaMa is Causal Alignment. Because word orders differ across languages, a standard parallel corpus is unsuitable for incremental training. The authors modified the training data through a three-step process:

  1. Word Alignment: Identifying correspondences between source and target words using standard tools.
  2. Token Insertion: Inserting <WAIT> tokens into the target sequence to ensure a target word only appears after its corresponding source word has been processed.
  3. Fine-tuning: Training Llama-2 (13B and 70B) using Low-Rank Adaptation (LoRA) on this aligned data.
Examples of original vs. causally aligned data for English-to-Russian and English-to-German translation.

At inference, the model generates tokens until it produces a full word (WRITE) or a <WAIT> token (READ). This collapses the translation and policy models into a single entity that "interprets" when it has sufficient information to proceed.

Experimental Setup

The models were evaluated on two primary datasets:

  • MuST-C v2.0: A large-scale speech translation corpus (TED talks) for English-to-German (en-de) and English-to-Russian (en-ru).
  • TED-TST-2023: A newly compiled test set of 102 pairs from TED talks posted after February 2023, used to ensure results were not influenced by data leakage during Llama-2's original pre-training.

Results and Discussion

TransLLaMa achieved BLEU scores comparable to or exceeding recent state-of-the-art SiMT baselines. Key findings include:

  • Scaling Benefits: The 70B parameter model significantly outperformed the 13B version, indicating that the reasoning required for latency management scales with model size.
  • Linguistic Intuition: The model naturally learned to insert <WAIT> tokens after function words (articles, prepositions), waiting for content words (nouns, verbs) before committing to a translation—a behavior mirroring human interpreters.
  • Zero-Shot Potential: GPT-4 showed strong zero-shot SiMT capabilities when prompted to use <WAIT> tokens, though it occasionally struggled with strict formatting constraints.
  • ASR Impact: Transitioning from text-to-text to speech-to-text resulted in a ~1 BLEU point drop, largely due to transcription errors from the Whisper ASR front-end.

Conclusion

TransLLaMa demonstrates that LLMs can effectively serve as simultaneous translators by internalizing the decision-making policy through causal alignment. While successful, limitations remain, including the computational overhead of long system prompts and the latency introduced by cascaded ASR. Future work will explore "baking" instructions into the model weights and moving toward end-to-end audio-to-text architectures to further reduce delays.

Summary updated

BibTeX
@inproceedings{koshkin2024transllama,
  author = {Roman Koshkin and Katsuhito Sudoh and Satoshi Nakamura},
  title = {{TransLLaMa: LLM-based Simultaneous Translation System}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.27},
}
Figure