Improving Machine Translation with Large Language Models: A Preliminary Study with Cooperative Decoding

Jiali Zeng, Fandong Meng, Yongjing Yin, Jie Zhou

Abstract

Traditional Neural Machine Translation (NMT) systems are efficient but often lack linguistic nuance and struggle with specialized terminology. Conversely, Large Language Models (LLMs) offer high quality but suffer from high latency and "off-target" language hallucinations. This paper introduces Cooperative Decoding (CoDec), a hybrid framework that leverages NMT for rapid draft generation and an LLM for selective parallel verification and re-decoding. CoDec achieves superior translation quality, particularly in complex scenarios, while operating approximately twice as fast as pure LLM-based translation.

Introduction: The Efficiency-Quality Trade-off in MT

The encoder-decoder NMT framework has long been the industry standard due to its efficiency. However, these models frequently struggle with rare words and maintaining natural flow in complex sentences. While LLMs show promise in addressing these gaps, they introduce significant challenges:

  1. Latency: Sequential token generation is computationally expensive and slow for long documents.
  2. Off-target Errors: LLMs may hallucinate the wrong language or switch codes unexpectedly.
  3. Inefficient Integration: Existing hybrid methods often rely on separate, potentially inaccurate Quality Estimation (QE) modules to trigger LLM intervention.

Methodology: Cooperative Decoding (CoDec)

CoDec addresses these issues by fusing NMT and LLMs into a unified three-step pipeline:

  1. Draft Generation: A standard NMT system quickly produces an initial translation draft.
  2. Parallel Verification: The draft is fed into an MT-oriented LLM. Unlike generation, verification is a parallel operation (a single forward pass), making it significantly faster. The LLM checks if each token in the draft aligns with its own high-probability predictions (top-k candidates).
  3. Selective Re-decoding: If a token is deemed unlikely, the LLM stops verification and takes over, generating the remainder of the sentence using the verified portion as a prefix.
Comparison of the traditional Hybrid Threshold approach and the proposed Cooperative Decoding (CoDec) framework.

This "speculative execution" style allows the system to retain accurate NMT segments while utilizing the LLM's strengths exactly where NMT fails.

Experimental Evaluation

The framework was evaluated using WMT22 test sets, a "noisy" WebCrawl dataset for real-world simulation, and the WMT23 Terminology Task.

Performance and Efficiency

CoDec consistently outperformed standalone NMT (GoogleMT) and pure LLM generation in COMET scores. Notably, it achieved an acceleration ratio of approximately 2x compared to direct LLM generation. In human evaluations on the WebCrawl dataset, CoDec was preferred over GoogleMT by a ratio of 3.5 to 1 (144 wins vs. 41 losses).

Mitigating Off-target Errors

One of the primary advantages of CoDec is its ability to "anchor" the LLM using the NMT draft, which significantly reduces language drifting. Standalone LLMs can exhibit a higher tendency to produce off-target language tokens, particularly in specific language pairs.

Probability of generating the correct target language vs. other languages across different models and language pairs.

Key Insights

  • Complementary Strengths: NMT provides literal adequacy for common text, while LLMs provide fluency and handle infrequent terminology.
  • Parallelism is Key: The efficiency gain stems from maximizing parallel verification time over sequential generation.
  • Terminology Mastery: CoDec showed a significantly higher success rate in following domain-specific vocabulary constraints compared to standard NMT.

Conclusion and Future Work

CoDec represents a significant step toward practical LLM-enhanced translation by balancing quality and speed. Future research will explore its performance in low-resource language pairs and refine the token-level validation logic to further optimize the intervention threshold.

Summary updated

BibTeX
@inproceedings{zeng2024improving,
  author = {Jiali Zeng and Fandong Meng and Yongjing Yin and Jie Zhou},
  title = {{Improving Machine Translation with Large Language Models: A Preliminary Study with Cooperative Decoding}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.786},
}
Figure