Lune

ACL Findings2024

Efficiently Exploring Large Language Models for Document-Level Machine Translation with In-context Learning

Menglong Cui, Jiangcun Du, Shaolin Zhu, Deyi Xiong

Abstract

Large language models (LLMs) exhibit outstanding performance in machine translation via in-context learning. In contrast to sentencelevel translation, document-level translation (DOCMT) by LLMs based on in-context learning faces two major challenges: (1) document translations generated by LLMs are often incoherent; (2) the length of demonstration for in-context learning is usually limited. To address these issues, we propose a Context-Aware Prompting method (CAP), which enables LLMs to generate more accurate, cohesive, and coherent translations via in-context learning. CAP takes into account multi-level attention, selects the most relevant sentences to the current one as context, and then generates a summary from these collected sentences. Subsequently, sentences most similar to the summary are retrieved from the datastore as demonstrations, which effectively guide LLMs in generating cohesive and coherent translations. We conduct extensive experiments across various DOCMT tasks, and the results demonstrate the effectiveness of our approach, particularly in zero pronoun translation (ZPT) and literary translation tasks.

Ask Lune

Ask anything. The answer quotes the paper.

Lune reads all of it and the papers around it, then shows you the passages behind every answer.

Questions to start from

Lune answers from

the full paper · 5 top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Cited by top-tier papers5

  1. All You Need is One: Capsule Prompt Tuning with a Single VectorYiyang Liu, James Liang, Heng Fan, Wenhao Yang et al.NeurIPS 2025 · 16 citations
  2. Two Intermediate Translations Are Better Than One: Fine-tuning LLMs for Document-level Translation RefinementYichen Dong, Xinglin Lyu, Junhui Li, Daimeng Wei et al.ACL 2025
  3. MLAS-LoRA: Language-Aware Parameters Detection and LoRA-Based Knowledge Transfer for Multilingual Machine TranslationTianyu Dong, Bo Li, Jinsong Liu, Shaolin Zhu et al.ACL 2025
  4. What Makes In-Context Examples Effective for Code Generation?Dongze Li, Songqiang Chen, Jialun Cao, Shing-Chi CheungISSTA 2026
  5. AdaDPI: Document-level Translation Adaptive Agent via Dynamic Parametric InternalizationHong Ren, Liting Deng, Shaolin Zhu, Deyi XiongACL 2026

Builds on12

  1. BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and ComprehensionMike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad et al.ACL 2020 · 1,224 citations
  2. In-context Examples Selection for Machine TranslationSweta Agrawal, Chunting Zhou, Mike Lewis, Luke Zettlemoyer et al.ACL Findings 2023 · 78 citations
  3. Making Monolingual Sentence Embeddings Multilingual using Knowledge DistillationNils Reimers, Iryna GurevychEMNLP 2020 · 54 citations
  4. Rethinking Document-level Neural Machine TranslationZewei Sun, Mingxuan Wang, Hao Zhou, Chengqi Zhao et al.ACL Findings 2022 · 45 citations
  5. Large Language Models Can be Lazy Learners: Analyze Shortcuts in In-Context LearningRuixiang Tang, Dehan Kong, Longtao Huang, Hui XueACL Findings 2023 · 31 citations

Related papers

  1. Towards Demonstration-Aware Large Language Models for Machine TranslationChen Li, Meishan Zhang, Xuebo Liu, Zhaocong Li et al.ACL Findings 2024 · 2 citations
  2. SubDocTrans: Enhancing Document-level Machine Translation with Plug-and-play Multi-granularity Knowledge AugmentationHanghai Hong, Yibo Xie, Jiawei Zheng, Xiaoli WangEMNLP Findings 2025
  3. Dissecting In-Context Learning of Translations in GPT-3Vikas Raunak, Arul Menezes, Hany Hassan AwadallaEMNLP Findings 2023 · 2 citations
  4. Augmenting Large Language Model Translators via Translation MemoriesYongyu Mu, Abudurexiti Reheman, Zhiquan Cao, Yuchun Fan et al.ACL Findings 2023 · 11 citations
  5. Large Language Models Might Not Care What You Are Saying: Prompt Format Beats DescriptionsChenming Tang, Zhixiang Wang, Hao Sun, Yunfang WuEMNLP Findings 2025 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines