arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.07081cs.CL
收藏

利用上下文学习高效探索大语言模型用于文档级机器翻译

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

College of Intelligence and Computing, Tianjin University(天津大学智能与计算学部)

Menglong Cui, Jiangcun Du, Shaolin Zhu, Deyi Xiong

AI总结:

针对 LLM 文档级翻译的不连贯与示例长度受限问题,提出 CAP 方法,通过多层级上下文选择、摘要生成与相似示例检索提升译文连贯性,并在多类 DOCMT 任务中验证有效性。

摘要:

大语言模型(LLM)通过上下文学习在机器翻译中表现出卓越性能。与句子级翻译相比,基于上下文学习的 LLM 文档级翻译(DOCMT)面临两大挑战:首先,LLM 生成的文档翻译往往不连贯;其次,上下文学习的示例长度通常受限。为解决这些问题,我们提出了一种上下文感知提示方法(CAP),使 LLM 能够通过上下文学习生成更准确、更具衔接性和连贯性的译文。CAP 考虑多层级注意力,选择与当前句子最相关的句子作为上下文,然后根据这些收集到的句子生成摘要。随后,从数据存储中检索与该摘要最相似的句子作为示例,从而有效引导 LLM 生成具有衔接性和连贯性的译文。我们在多种 DOCMT 任务上进行了大量实验,结果证明了本方法的有效性,尤其在零代词翻译(ZPT)和文学翻译任务中表现突出。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑