Abstract
Large language models (LLMs) with billions of parameters and pretrained on massive amounts of data are now capable of near or better than state-of-the-art performance in a variety of downstream natural language processing tasks. Neural machine translation (NMT) is one such task that LLMs have been applied to with great success. However, little research has focused on applying LLMs to the more difficult subset of NMT called simultaneous translation (SimulMT), where translation begins before the entire source context is available to the model. In this paper, we address key challenges facing LLMs fine-tuned for SimulMT, validate classical SimulMT concepts and practices in the context of LLMs, explore adapting LLMs that are fine-tuned for NMT to the task of SimulMT, and introduce Simul-LLM, the first open-source fine-tuning and evaluation pipeline development framework for LLMs focused on SimulMT.
Introduction
Researchers from Oregon State University have introduced Simul-LLM, the first open-source framework designed to fine-tune and evaluate Large Language Models (LLMs) for simultaneous translation (SimulMT). By introducing a novel "Single Output Word" prompt structure and validating classical strategies like the wait-k policy, they demonstrate that LLMs can significantly outperform traditional specialized models in real-time translation tasks.
The Challenge of Simultaneous Translation
Simultaneous Machine Translation (SimulMT) is often considered the "hard mode" of translation. Unlike standard offline translation, the model must begin generating the target language before the speaker has finished the source sentence. This creates a delicate balance between quality (waiting for more context) and latency (translating quickly).
While LLMs excel at standard translation where the whole sentence is available, they face three major hurdles in SimulMT:
- Context Mismatch: LLMs are typically trained on complete sentences. In SimulMT, they receive input incrementally, which can confuse models expecting a full prompt.
- Lack of Tooling: There has been a lack of standardized, open-source pipelines to bridge the gap between popular LLM libraries (like Hugging Face) and SimulMT evaluation toolkits (like
SimulEval). - Strategy Uncertainty: It was previously unclear if classical SimulMT concepts, such as the wait-k policy (where the model stays k words behind the speaker), would effectively translate to the massive architecture of an LLM.
Methodology: The Simul-LLM Framework
The authors developed the Simul-LLM framework, a PyTorch-based ecosystem that handles the entire lifecycle of a simultaneous LLM. Key technical components include:
- Single Output Word Prompt Structure: Instead of a standard "Translate this" prompt, the authors propose a structure that includes the partial source sentence and the already translated target words, specifically asking the model for only the next word. This mimics the exact state of the model during real-time inference.
- PEFT and Quantization: To make training accessible, the framework uses Parameter-Efficient Fine-Tuning (LoRA) and 4-bit quantization, allowing 7B-parameter models to be trained on consumer-grade hardware.
- Speculative Beam Search (SBS): They adapted SBS for LLMs, allowing the model to "look ahead" and generate multiple potential future paths before committing to the most likely next token, which helps smooth out translation errors caused by limited context.
Datasets and Experimental Setup
The study primarily utilized MuST-C, a standard benchmark for speech-to-text translation. For this text-to-text SimulMT focus, the authors extracted text transcripts for English-to-German (en-de) and English-to-Spanish (en-es). The data was cleaned of acoustic markers and "expanded" so that each sentence pair is decomposed into multiple training examples representing different stages of the wait-k process.
Key Insights
- Training for the Future: A striking finding is that training a model with a higher lag (e.g., wait-7) makes it more robust when performing at a lower lag (e.g., wait-3) during inference. This "wait-k generalization" suggests that learning to handle more context helps the model build a better internal representation of the language pair.
- Prompting is the Bridge: The "Single Output Word" prompt structure was critical. Without it, models suffer from an "inappropriate level of context," essentially trying to guess the end of a sentence they haven't seen yet rather than focusing on the immediate next word.
- NMT LLMs are Resilient: Even LLMs fine-tuned for standard offline translation (NMT) performed surprisingly well when forced into a simultaneous schedule, often beating specialized non-LLM models.
Results
The researchers compared their Simul-LLM approach against classical Monotonic Transformers, demonstrating significant gains in translation quality across different language pairs.
- English-to-Spanish (en-es): The SimulMT-fine-tuned LLM achieved a 35.14 BLEU score, significantly outperforming the classical baseline of 24.90.
- English-to-German (en-de): Even NMT-optimized LLMs adapted to simultaneous mode reached 27.32 BLEU, outperforming the classical baseline of 22.01.
- Model Comparison: Falcon-7B and Mistral-7B showed strong performance, while Llama-2-7B struggled with "degenerate output" loops during the specific fine-tuning process used in this framework.
Limitations and Future Work
Despite high quality, computational latency remains a challenge. The computational lag (LAAL) for an LLM is roughly 3237ms, compared to 1325ms for a classical transformer, making them less suitable for ultra-low-latency applications without further optimization. Future work will focus on extending the framework to true simultaneous speech translation (SimulST) and exploring hyperparameter sensitivity in beam search settings.
The code and framework are available at: https://github.com/OSU-STARLAB/Simul-LLM
Summary updated