Abstract
Large Language Models (LLMs) frequently exhibit "instruction forgetting" during extended translation tasks, resulting in hallucinations such as over-translation and omissions. This paper presents two primary contributions: SWIE (Segment-Weighted Instruction Embedding), an architectural modification that injects instruction awareness into the model's internal layers, and OVERMISS, a contrastive dataset designed to train models to avoid specific translation errors. Experimental results on BLOOMZ and LLaMA demonstrate significant improvements in translation quality and faithfulness, particularly in zero-shot and long-text scenarios.
1. Introduction
Despite the impressive capabilities of causal LLMs like LLaMA and BLOOM, they often struggle with maintaining global context during long-form generation. As a translation task progresses, the initial instruction (e.g., "Translate the following text...") becomes increasingly distant in the model's hidden states. This "local focus" problem leads to unfaithful outputs, categorized primarily as over-translation (adding extraneous information) and miss-translation (omitting source content). This research aims to ensure instructions remain globally accessible throughout the generation process.
2. Methodology
The proposed approach addresses faithfulness through both architectural innovation and data augmentation.
2.1 SWIE: Segment-Weighted Instruction Embedding
To mitigate "attention inadequacy" in the middle layers of LLMs, the authors developed SWIE. This method utilizes parameterized adapters to extract a global representation of the task instruction.
Key components include:
- Layer-Specific Injection: Analysis revealed that middle layers are most prone to losing instruction focus. SWIE specifically targets these layers for instruction fusion.
- Segment Weights ($W_{seg}$): To prevent the instruction signal from decaying as the sequence length increases, a linear slope weight is applied across the input and generated response segments.
2.2 OVERMISS Dataset Construction
To explicitly teach the model to avoid common pitfalls, the authors introduced the OVERMISS dataset. This contrastive learning resource contains 54,420 samples where "bad" translations (intentionally generated via GPT-3.5 to include omissions or hallucinations) are paired with high-quality human references.
3. Experimental Results
The methods were evaluated using BLOOMZ (3b, 7b) and LLaMA-7b across standard benchmarks (WMT22, Flores-200) and a custom long-text dataset (WMT22-concat).
- Zero-Shot Gains: On BLOOMZ-3b, SWIE increased BLEU scores from 0.19 to 0.51 on WMT22.
- Improved Faithfulness: Training LLaMA-7b on the OVERMISS dataset yielded a substantial increase in BLEU (from 0.69 to 3.12) and an average COMET score improvement of 0.48.
- Long-Text Robustness: In concatenated sentence tests, SWIE provided an average improvement of 0.67 BLEU, confirming its effectiveness in mitigating instruction decay over long sequences.
4. Discussion and Conclusion
The study highlights that LLMs do not lose instructions uniformly; the "middle layer" drop-off is a critical bottleneck for faithfulness. By treating instructions as a global state via SWIE and providing negative examples through OVERMISS, models can be steered toward more reliable translation. Future work will explore making segment weights trainable and extending these techniques to other instruction-following tasks like summarization.
Summary updated