Abstract
Large Language Models (LLMs) have significantly advanced the field of machine translation (MT), yet they frequently struggle with "Context-Sensitive Units" (CSUs)—words or phrases whose meanings vary significantly based on context. This paper introduces Dynamic Focus Anchoring (DFA), a novel prompting strategy that identifies these ambiguous units and explicitly directs the model's attention toward them. By leveraging both external bilingual lexicons and internal model knowledge, DFA mitigates semantic ambiguity and prevents catastrophic translation failures. Experimental results on Llama2 and Llama3 models demonstrate that DFA consistently outperforms state-of-the-art baselines across multiple language pairs, including English-Chinese and English-German, without the need for additional training data or model fine-tuning.
Introduction: The Challenge of Semantic Ambiguity
Despite their impressive capabilities, LLMs often falter when encountering polysemous words or domain-specific terminology. For instance, the English word "bank" can refer to a financial institution, a riverbank, or a storage facility. In standard translation tasks, LLMs tend to treat sentences as "homogeneous units," failing to prioritize these critical points of ambiguity. This leads to a phenomenon termed information flattening, where the model defaults to the most frequent translation rather than the contextually appropriate one. In extreme cases, this confusion can cause the model to produce gibberish or refuse the translation task entirely.
Methodology: Dynamic Focus Anchoring
The proposed DFA framework operates through a two-stage process: CSU Identification and Semantic Focus Injection.
- CSU Identification: This stage employs a dual-path framework. The "External Knowledge Acquisition" path utilizes bilingual lexicons (e.g., MUSE) to identify words with multiple target-language equivalents. To ensure precision, a semantic filter using word embeddings and clustering is applied to distinguish between true polysemy and simple synonyms. The "Internal Knowledge Activation" path uses a meta-task where the LLM itself is prompted to identify challenging vocabulary, such as cultural or domain-specific terms, within the source sentence.
- Semantic Focus Injection: Once CSUs are identified, they are integrated into a structured prompt. Crucially, the authors found that providing the model with specific translation options can lead to over-reliance and hallucinations. Instead, DFA uses an "anchoring" approach, simply instructing the model to ensure specific words are accurately translated: "[Ensure that the following words are accurately translated: {word1, word2...}]". This forces the model to activate its internal latent knowledge to resolve the ambiguity.
Experimental Setup
The researchers evaluated DFA using the WMT22 test set, which encompasses diverse domains such as news, social media, and e-commerce. The study focused on both "similar" language pairs (English-German) and "distant" pairs (English-Chinese). The method was tested on Llama2-7b and Llama3-8b, comparing performance against strong baselines like Bayling2.
Results and Discussion
DFA demonstrated significant quantitative improvements, achieving an average gain of 0.83 in COMET scores and 0.81 in BLEU scores over the strongest baselines. These gains were consistent across different language pairs, highlighting the method's robustness.
A key insight from the study is the "Less is More" prompting paradox. Providing explicit translation candidates (e.g., "bank can be 银行 or 河岸") often degraded performance as models became "lazy" or confused, sometimes including both options in the output. Simple anchoring proved far more effective. Furthermore, qualitative analysis showed that DFA effectively corrects catastrophic failures where baseline models previously failed to translate or switched languages incorrectly.
Conclusion and Future Work
Dynamic Focus Anchoring provides a resource-efficient solution to semantic ambiguity in LLM-based translation. By acting as a retrieval cue for the model's internal knowledge, DFA enhances accuracy and reliability without the overhead of fine-tuning. Future research may explore extending the CSU scope beyond polysemy and domain terms, and investigating the applicability of DFA to other NLP tasks like dialogue systems and summarization where semantic confusion remains a hurdle.
Summary updated