Improving Translation Faithfulness of Large Language Models via Augmenting Instructions
Introduces SWIE and OVERMISS to improve translation faithfulness, achieving significant BLEU and trustworthiness gains.
Key Findings
Methodology
This paper proposes Segment-Weighted Instruction Embedding (SWIE), which employs parameterized adapters to incorporate global instruction representations, enhancing model understanding. Coupled with OVERMISS, a dataset of contrastive negative samples simulating over-translation and miss-translation errors, the approach leverages contrastive learning to improve faithfulness. Experiments on open-source models BLOOM and LLaMA utilize datasets like WMT22 and Flores-200, evaluated via BLEU and COMET. SWIE notably improves long-text and zero-shot translation, mitigating instruction forgetting. OVERMISS enhances translation fidelity by contrasting typical errors. Their combination yields further performance gains, validated across multiple scenarios.
Key Results
- In BLOOMZ-3b, SWIE increased BLEU from 0.19 to 0.51, especially effective for long texts and zero-shot tasks. OVERMISS raised BLEU from 0.69 to 3.12 on WMT22, with a 0.48% average COMET score improvement. Combining both methods pushed BLEU scores for English-German translation up to 0.56, with significant improvements in word alignment faithfulness.
- In LLaMA-7b, OVERMISS alone improved BLEU by approximately 0.48, with combined methods reaching BLEU of 0.56 in long-text translation. Ablation studies confirmed that SWIE enhances instruction attention, reducing instruction forgetting. The methods outperform baselines across multiple translation directions and datasets.
- Ablation experiments show SWIE increases instruction attention ratios, especially in middle layers, effectively reducing instruction neglect. The combined approach consistently improves translation quality and faithfulness, particularly in complex and low-resource scenarios.
Significance
This work advances instruction tuning by integrating global instruction representations and contrastive negative samples, significantly boosting translation fidelity and model robustness. It addresses long-standing issues of instruction forgetting and hallucinations, enabling more trustworthy AI systems. The approach benefits both academia and industry by providing scalable, effective methods for enhancing large models' interpretability and reliability, especially in critical applications like legal, medical, and technical translation. It also enriches theoretical understanding of attention mechanisms and their role in instruction-following tasks.
Technical Contribution
The core innovation lies in SWIE, which introduces segment-level weighted instruction embeddings via parameterized adapters, improving global instruction focus. The OVERMISS dataset employs GPT-3.5 to generate contrastive negative samples, capturing typical translation errors. Combining these, the paper develops a systematic framework for instruction augmentation and adversarial sample generation, leading to robust performance improvements. The method offers a new perspective on attention modulation and contrastive learning in large language models, expanding the toolkit for instruction tuning and faithfulness enhancement.
Novelty
This is the first comprehensive integration of segment-level weighted instruction embeddings with contrastive negative sample generation for open-source LLMs in machine translation. Unlike prior works focusing solely on data scaling or local attention, this approach explicitly enhances global instruction attention and models typical errors via adversarial samples. The dual strategy effectively mitigates instruction forgetting and hallucinations, representing a significant step forward in instruction-aware model fine-tuning.
Limitations
- The methods' effectiveness diminishes in extremely long or multi-modal inputs, where attention distribution remains challenging. The negative sample quality depends on automatic GPT-3.5 prompts, which may introduce bias or inconsistency. Computational costs increase with multi-layer fusion and adversarial sample generation, limiting scalability. Further research is needed to adapt these techniques to diverse modalities and real-world scenarios.
Future Work
Future directions include extending SWIE to multi-modal tasks, integrating visual and speech data for richer instruction understanding. Enhancing negative sample diversity and quality through advanced generative models will further improve faithfulness. Additionally, exploring adaptive attention mechanisms and dynamic instruction representations could address remaining limitations in long-text and complex scenarios, pushing the boundaries of trustworthy AI translation systems.
AI Executive Summary
Large language models (LLMs) have revolutionized natural language processing, demonstrating remarkable capabilities in zero-shot and few-shot learning, especially in machine translation. However, despite their strengths, these models suffer from instruction forgetting and hallucinations, which compromise translation fidelity and trustworthiness. Existing instruction tuning methods often focus on local attention mechanisms, which limit the model’s ability to maintain a global understanding of instructions, particularly in lengthy or complex texts.
To address these challenges, this study introduces two innovative techniques: Segment-Weighted Instruction Embedding (SWIE) and OVERMISS. SWIE enhances the model’s global attention to instructions by employing segment-level weighted embeddings via parameterized adapters, effectively integrating instruction information across multiple layers. This approach significantly improves the model’s ability to follow instructions, especially in long-text and zero-shot scenarios.
Complementing SWIE, OVERMISS constructs a contrastive dataset of negative samples that mimic common translation errors like over-translation and miss-translation. Using GPT-3.5, the authors generate these samples, which are then used to train the model via contrastive learning, further boosting translation faithfulness. Experiments on open-source models BLOOMZ-3b and LLaMA-7b demonstrate that the combined approach yields substantial improvements: BLEU scores increase by up to 0.56, and COMET scores by 0.48%, outperforming baseline models across multiple translation directions and datasets.
The results highlight the effectiveness of instruction augmentation and adversarial sample training in mitigating instruction forgetting and hallucinations. These advancements pave the way for more reliable, trustworthy large-scale translation systems capable of handling complex, long-form, and low-resource scenarios. Future work aims to extend these techniques to multi-modal inputs and further optimize negative sample generation, broadening the impact of this research in AI translation and beyond.
Deep Analysis
Background
The evolution of pre-trained language models (PLMs) like BERT, GPT, and T5 has transformed NLP, enabling multi-task learning and zero-shot capabilities. Despite these advances, models still face issues like hallucinations and fidelity loss in tasks such as machine translation. Instruction tuning emerged as a promising approach, with datasets like FLAN and Super-NaturalInstructions expanding models' task understanding. However, these methods mainly focus on short instructions and local attention, leaving the challenge of maintaining instruction focus in long texts unaddressed. Recent studies highlight the importance of global attention mechanisms and adversarial training to improve trustworthiness. Yet, the integration of these strategies for open-source models remains limited, especially in translation fidelity and instruction retention.
Core Problem
The core challenge is instruction forgetting during decoding, especially in causal language models with local attention biases. This leads to hallucinations, unfaithful translations, and reduced trustworthiness. In long or complex texts, models tend to focus on nearby tokens, neglecting the instruction context, which causes deviations from expected outputs. Addressing this requires enhancing the model’s ability to maintain global instruction awareness and resist typical translation errors, a task complicated by the inherent limitations of attention mechanisms and training data constraints.
Innovation
This work introduces SWIE, which employs segment-level weighted embeddings via parameterized adapters, enabling the model to maintain a global view of instructions across multiple layers. It also develops OVERMISS, a dataset of contrastive negative samples generated automatically using GPT-3.5, simulating typical translation errors like over-translation and miss-translation. Combining these innovations, the approach systematically improves instruction focus and translation fidelity. Unlike prior methods, which mainly rely on data scaling or local attention, this framework explicitly targets the global instruction attention problem and models common errors adversarially, leading to more faithful translations.
Methodology
- �� Segment tokens into instruction, input, and response segments, assigning segment IDs.
- �� Use parameterized adapters at middle layers of the model to fuse instruction representations with global hidden states, applying segment-level weights.
- �� Construct OVERMISS dataset by prompting GPT-3.5 to generate negative samples mimicking over-translation and miss-translation errors, evaluated with awesome-align for quality.
- �� Employ contrastive learning, combining positive (correct) and negative (erroneous) samples, to fine-tune the model’s attention and translation fidelity.
- �� Fine-tune models on multi-task datasets, gradually integrating SWIE and OVERMISS, with multi-stage curriculum learning.
- �� Evaluate on WMT22 and Flores-200, measuring BLEU, COMET, and faithfulness metrics, including ablation studies to analyze attention shifts and error reduction.
Experiments
Experiments involve fine-tuning BLOOMZ-3b and LLaMA-7b on datasets like WMT17-20, FLORES-200, and the newly constructed OVERMISS. Evaluation metrics include BLEU, COMET, and word alignment-based faithfulness scores. The training employs multi-stage curriculum learning, with hyperparameters aligned with prior work (e.g., 8 V100 GPUs for 3B models). Ablation studies compare models with and without SWIE and OVERMISS, analyzing attention distributions and translation quality across directions such as De→En, En→De, En→Zh. Long-text translation is tested via concatenation of multiple sentences, demonstrating robustness. Zero-shot performance is assessed on directions like Uk→En, Fr→De, showing consistent improvements.
Results
Results show SWIE boosts BLEU from 0.19 to 0.51, especially in long-text and zero-shot scenarios. OVERMISS improves BLEU from 0.69 to 3.12 on WMT22, with an average COMET increase of 0.48%. Combining both methods yields BLEU scores up to 0.56 in English-German translation, with notable improvements in word alignment faithfulness. Ablation confirms SWIE enhances instruction attention ratios, especially in middle layers, reducing instruction neglect. The combined approach outperforms baselines across multiple datasets and directions, validating its effectiveness in improving translation fidelity and trustworthiness.
Applications
This framework can be directly applied to enhance machine translation systems, especially for low-resource languages and long-form content requiring high fidelity. It is suitable for integration into commercial translation platforms, AI assistants, and content moderation tools. Long-term, the techniques could extend to multi-modal AI systems, improving instruction understanding in visual and speech tasks, fostering more trustworthy AI interactions across industries.
Limitations & Outlook
Current methods are less effective in extremely long or multi-modal inputs, where attention distribution remains challenging. Negative sample quality depends on automatic GPT-3.5 prompts, which may introduce bias. Computational costs increase with multi-layer fusion and adversarial training, limiting scalability. Further research is needed to adapt these techniques for diverse modalities and real-world applications, addressing issues like data quality, efficiency, and robustness.
Plain Language Accessible to non-experts
想象你在厨房做饭,指令就像食谱,告诉你怎么准备菜肴。传统的厨师只记得最近几步,容易忘记关键步骤,导致菜不合味。本文的方法像是给厨师配备了一个全局的菜谱卡片,让他在每一步都能看到完整的指令。另一个工具像是味道检测器,能找出菜中多放了什么或漏掉了什么。两者结合后,厨师能更准确地按照食谱做菜,菜肴也更好吃。这就像让机器翻译变得更像人,能记住全部指令,不会跑题或出错。这样,机器变得更聪明、更可靠,就像一个懂事的厨师一样,能做出令人满意的菜。
ELI14 Explained like you're 14
想象你在学校写作文,老师给你题目和一些提示。以前,你可能只记得前几句,后面就忘了重点,作文偏离主题。现在,老师给你一份详细的指南,提醒你注意哪些内容,还用特殊标记检测写得不对的部分。这样,你写的作文就更贴题,也更有逻辑。这个方法就像给机器装上了“全局指引”和“错误检测器”,让它在翻译时不会忘记指令,也不会跑题或重复。它让机器变得更聪明、更可靠,就像一个懂事的学生,能写出更忠实的内容。未来,这些技术还能帮机器理解多模态信息,比如图片和声音,让它变得更聪明、更贴近人类思考方式。
Abstract
Large Language Models (LLMs) present strong general capabilities, and a current compelling challenge is stimulating their specialized capabilities, such as machine translation, through low-cost instruction tuning. The standard instruction-following data is sequentially organized as the concatenation of an instruction, an input, and a response. As the attention mechanism of LLMs has limitations on local focus, LLMs tend to focus more on the words or sentences nearby at each position. This leads to a high risk of instruction forgetting during decoding. To alleviate the above issues, We propose SWIE (Segment-Weighted Instruction Embedding) and an instruction-following dataset OVERMISS. SWIE improves the model instruction understanding by adding a global instruction representation on the following input and response representations. OVERMISS improves model faithfulness by comparing over-translation and miss-translation results with the correct translation. We apply our methods to two main-stream open-source LLMs, BLOOM and LLaMA. The experimental results demonstrate significant improvements in translation performance with SWIE based on BLOOMZ-3b, particularly in zero-shot and long text translations due to reduced instruction forgetting risk. Additionally, OVERMISS outperforms the baseline in translation performance (e.g. an increase in BLEU scores from 0.69 to 3.12 and an average improvement of 0.48 percentage comet scores for LLaMA-7b) with further enhancements seen in models combining OVERMISS and SWIE (e.g. the BLUE scores increase up to 0.56 from English to German across three different backbones), and both exhibit improvements in the faithfulness metric based on word alignment.