Efficiently Exploring Large Language Models for Document-Level Machine Translation with In-context Learning
Cui, Menglong, Du, Jiangcun, Zhu, Shaolin, Xiong, Deyi
–arXiv.org Artificial Intelligence
Large language models (LLMs) exhibit outstanding performance in machine translation via in-context learning. In contrast to sentence-level translation, document-level translation (DOCMT) by LLMs based on in-context learning faces two major challenges: firstly, document translations generated by LLMs are often incoherent; secondly, 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.
arXiv.org Artificial Intelligence
Jun-11-2024
- Country:
- South America > Chile
- North America
- Dominican Republic (0.04)
- United States > Hawaii
- Honolulu County > Honolulu (0.04)
- Canada > Ontario
- Toronto (0.04)
- Europe
- Austria > Vienna (0.14)
- Italy (0.04)
- Spain > Galicia
- A Coruña Province > Santiago de Compostela (0.04)
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- Finland > Pirkanmaa
- Tampere (0.04)
- Asia
- Singapore (0.04)
- Middle East > UAE
- Abu Dhabi Emirate > Abu Dhabi (0.04)
- China
- Tianjin Province > Tianjin (0.04)
- Hong Kong (0.04)
- Genre:
- Research Report > New Finding (0.88)
- Technology: