Skip to main content
QUICK REVIEW

[Paper Review] Improving Translation Faithfulness of Large Language Models via Augmenting Instructions

Yijie Chen, Yijin Liu|arXiv (Cornell University)|Aug 24, 2023
Topic ModelingComputer Science6 citations
TL;DR

This paper proposes SWIE (Segment-Weighted Instruction Embedding) and OverMiss, a contrastive instruction-tuning dataset, to improve translation faithfulness in large language models. SWIE enhances model attention to instructions via segmented weighted embeddings, while OverMiss targets over- and under-translation errors. The methods significantly boost BLEU scores (up to +0.56) and faithfulness metrics across zero-shot, long-context, and few-shot settings on BLOOMZ and LLaMA models.

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.

Motivation & Objective

  • To address instruction forgetting in causal language models during translation decoding due to local attention bias.
  • To improve translation faithfulness by reducing hallucinations, specifically over-translation and miss-translation.
  • To develop a data construction method that generates contrastive negative samples for faithfulness improvement.
  • To validate the effectiveness of SWIE and OverMiss across diverse backbone models and translation benchmarks.
  • To analyze attention distributions and demonstrate that SWIE increases instruction attention, especially in middle layers.

Proposed method

  • SWIE introduces parameterized adapters to inject a global instruction representation into the input and response representations, with segment-weighted attention to emphasize instruction tokens.
  • The method uses a weighted sum of attention scores across layers, focusing on enhancing attention to the instruction span relative to input and output spans.
  • OverMiss is a novel instruction-tuning dataset that constructs contrastive negative samples by explicitly prompting models to avoid over-translation and miss-translation.
  • The dataset includes instructions such as 'no over-translation' and 'no miss-translation' to guide models toward faithful outputs.
  • Faithfulness is quantified using cross-lingual word alignment to compute source and target word coverage rates, with average recall used as a metric.
  • Internal attention scores are visualized across model layers to compare baseline and SWIE models, showing increased attention to instruction endings in SWIE.

Experimental results

Research questions

  • RQ1Does enhancing attention to instructions via segment-weighted embeddings reduce instruction forgetting in causal LLMs during translation?
  • RQ2Can contrastive instruction tuning with OverMiss effectively reduce over-translation and miss-translation errors?
  • RQ3How does SWIE affect attention distribution across model layers, particularly in middle layers where instruction forgetting is most likely?
  • RQ4To what extent do SWIE and OverMiss improve translation performance and faithfulness on zero-shot and long-context translation tasks?
  • RQ5Does the combination of SWIE and OverMiss yield synergistic improvements in BLEU and faithfulness metrics?

Key findings

  • SWIE improved BLEU scores from 0.19 to 0.51 on four WMT22 translation directions and from 0.20 to 0.58 on six zero-shot directions with BLOOMZ-3b.
  • On long sentence translation, BLOOMZ-3b achieved an average BLEU score of 0.67 with SWIE, demonstrating improved performance in long-context settings.
  • OverMiss increased BLEU scores from 0.69 to 3.12 on WMT22 test sets and improved average COMET scores by 0.48 points on LLaMA-7b.
  • The combination of SWIE and OverMiss achieved a BLEU improvement of up to 0.56 on English-to-German translation across three backbone models.
  • Faithfulness evaluation via word alignment showed a score increase from 87.94 (Parrot-hint) to 88.84 with OverMiss, and 88.80 with both methods combined.
  • Attention visualization confirmed that SWIE increases the attention ratio on instruction endings by up to 20% in middle layers, validating reduced instruction forgetting.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.