Analyzing Context Contributions in LLM-based Machine Translation
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have achieved state-of-the-art performance in machine translation (MT) and demonstrated the ability to leverage in-context learning through few-shot examples. However, the mechanisms by which LLMs use different parts of the input context remain largely unexplored. In this work, we provide a comprehensive analysis of context utilization in MT, studying how LLMs use various context parts, such as few-shot examples and the source text, when generating translations. We highlight several key findings: (1) the source part of few-shot examples appears to contribute more than its corresponding targets, irrespective of translation direction; (2) finetuning LLMs with parallel data alters the contribution patterns of different context parts; and (3) there is a positional bias where earlier few-shot examples have higher contributions to the translated sequence. Finally, we demonstrate that inspecting anomalous context contributions can potentially uncover pathological translations, such as hallucinations. Our findings shed light on the internal workings of LLM-based MT which go beyond those known for standard encoder-decoder MT models.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 33 of its 60 references that are in the map. First posted on arXiv 21 Oct 2024.
Builds on
33 of 60 references.
References · 33
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2022No Language Left Behind: Scaling Human-Centered Machine Translationcited by 1,290
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2020Quantifying Attention Flow in Transformerscited by 759
- 2023Larger language models do in-context learning differentlycited by 386
- 2023How Good Are GPT Models at Machine Translation? A Comprehensive Evaluationcited by 344
21 more
- 2023Prompting Large Language Model for Machine Translation: A Case Studycited by 247
- 2023Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learningcited by 235
- 2024Tower: An Open Multilingual Large Language Model for Translation-Related Taskscited by 205
- 2022In-context Examples Selection for Machine Translationcited by 172
- 2023Continual Pre-Training of Large Language Models: How to (re)warm your model?cited by 135
- 2023Hallucinations in Large Multilingual Translation Modelscited by 126
- 2022Ground-Truth Labels Matter: A Deeper Look into Input-Label Demonstrationscited by 116
- 2024Information Flow Routes: Automatically Interpreting Language Models at Scalecited by 92
- 2023The unreasonable effectiveness of few-shot learning for machine translationcited by 91
- 2022Detecting and Mitigating Hallucinations in Machine Translation: Model Internal Workings Alone Do Well, Sentence Similarity Even Bettercited by 75
- 2020Analyzing the Source and Target Contributions to Predictions in Neural Machine Translationcited by 71
- 2022Measuring the Mixing of Contextual Information in the Transformercited by 63
- 2023Measuring Inductive Biases of In-Context Learning with Underspecified Demonstrationscited by 49
- 2023Steering Large Language Models for Machine Translation with Finetuning and In-Context Learningcited by 48
- 2022Towards Opening the Black Box of Neural Machine Translation: Source and Target Interpretations of the Transformercited by 45
- 2023Explaining How Transformers Use Context to Build Predictionscited by 42
- 2023HalOmi: A Manually Annotated Benchmark for Multilingual Hallucination and Omission Detection in Machine Translationcited by 35
- 2022Toxicity in Multilingual Machine Translation at Scalecited by 26
- 2024LM Transparency Tool: Interactive Tool for Analyzing Transformer Language Modelscited by 16
- 2024Machine Translation Hallucination Detection for Low and High Resource Languages using Large Language Modelscited by 13
- 2024On Measuring Context Utilization in Document-Level MT Systemscited by 9
Built on by
Citing papers per year: 2025: 1.
1 paper.