TL;DR
Off-the-shelf large language models (LLMs) can perform simultaneous machine translation (SiMT) zero-shot, matching or beating specialized, state-of-the-art systems. By introducing a technique called "response priming" and injecting minimal background context into the prompt, this approach enables context-aware, terminologically accurate real-time translation without requiring resource-intensive fine-tuning.
What Problem Does This Paper Address?
Simultaneous machine translation (SiMT)—where a system must translate speech in real-time before the speaker has even finished their sentence—is incredibly challenging. Traditional SiMT systems operate strictly on a sentence-by-sentence or chunk-by-chunk level. Because they are completely "context-unaware," they frequently suffer from logical inconsistencies and struggle to correctly translate ambiguous or highly technical terms over long conversations.
Human interpreters solve this problem by preparing ahead of time—studying topic-specific glossaries, slides, and context. This paper explores how to give AI translation systems this same context-awareness by leveraging the in-context learning and reasoning capabilities of modern LLMs, entirely zero-shot.
Methods
The authors propose a cascaded framework that pairs an automatic speech recognition (ASR) model with an off-the-shelf, instruction-tuned LLM (specifically, Meta's Llama-3-70B-Instruct).
- Online ASR: Audio is streamed in 200ms increments into a Whisper model, which continuously updates a text buffer of the source speech.
- Context Injection: The LLM is provided a system prompt that includes background information (such as a domain topic and a mini-glossary of terms in JSON format).
- Response Priming: To prevent the LLM from generating conversational filler (e.g., "Sure, here is the translation:"), the authors introduce response priming. They pre-fill the assistant's response block with a rigid prefix (e.g.,
<|start_header_id|>assistant<|end_header_id|>German translation: [partial translation]). This forces the model to immediately continue translating. - Read/Write Policy: The LLM greedily generates tokens. If it outputs a full word, a WRITE action is taken, updating the translation. If it outputs an end-of-turn token (
<|eot_id|>), a READ action is triggered, prompting the system to wait for more text from the ASR buffer.
Datasets
The framework was evaluated on English-to-German translation alongside four other language pairs (English to Spanish, French, Italian, and Russian) using the following datasets:
- FLEURS: A standard benchmark for speech translation evaluation.
- TED-TST-2023: A dataset compiled from recent TED talks.
- TED-TST-2024: A new dataset curated by the authors consisting of TED talks published after Llama-3's training cutoff, explicitly designed to eliminate any risk of data leakage.
- AMBIEVAL: A novel, context-augmented dataset created by the authors to simulate highly technical translation. It features sentences containing severe homonymy or ambiguous acronyms (e.g., "CPA" or "kicks") that can only be correctly translated if the model utilizes the provided background glossary.
Key Insights and Ideas
- Zero-Shot SiMT is Viable: Clever prompting and response priming allow an off-the-shelf LLM to act simultaneously as both the translator and the translation policy agent, removing the need for complex, specialized reinforcement learning architectures.
- Response Priming is Crucial: Forcing the initial text of the assistant's response acts as a powerful constraint that keeps the LLM from breaking character or adding unwanted commentary.
- Implicit ASR Error Correction: Because the LLM possesses deep semantic understanding of the broader context, it naturally corrects errors made by the ASR model on the fly (e.g., correcting the misheard phrase "his bala" to "Hezbollah" based on surrounding context).
- Scale is Mandatory: While the strategy works exceptionally well with Llama-3-70B, it fails with the smaller 8B variant. The smaller model struggles to strictly follow formatting constraints and fails to leverage the injected background context.
Key Results
The zero-shot LLM approach demonstrated highly competitive quality-latency trade-offs against specialized baselines like NAIST, FBK, and SeamlessStreaming.
- Superior Ambiguity Resolution: On the challenging AMBIEVAL dataset, the proposed method achieved a BLEU score of 42.60, vastly outperforming SeamlessStreaming (29.76) and TransLLaMa (32.43), validating the power of context injection.
- Benchmark Competitiveness: On standard benchmarks like FLEURS and TED-TST-2023, the model performed on par with or better than state-of-the-art baselines while maintaining a comparable Length-Aware Average Lagging (LAAL) of around 2000 ms.
- Real-Time Feasibility: Powered by the vLLM inference engine and tensor parallelism across 4x A100 GPUs, the system achieved a Real-Time Factor (RTF) of 0.86, proving it can translate faster than human speech in a live deployment scenario.
Limitations and Future Work
- Closed-Source API Incompatibility: Because commercial APIs (like GPT-4 or Claude) enforce rigid prompt structures and do not allow developers to pre-fill or "prime" the assistant's response prefix, this method is currently restricted to open-weights models where inference can be tightly controlled.
- Cascaded Bottlenecks: Operating ASR and translation as separate steps can lead to low-latency hallucinations if the ASR model misinterprets initial silence. The authors note that future work should focus on end-to-end speech-to-text LLMs that project audio embeddings directly into the LLM's input space.
Summary updated