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

大语言模型支持下的人机协同机器翻译

Human-in-the-loop Machine Translation with Large Language Model

University of Macau(澳门大学)

Xinyi Yang, Runzhe Zhan, Derek F. Wong, Junchao Wu, Lidia S. Chao

AI总结:

提出一种人机协同流水线,利用修订指令和上下文学习增强LLM翻译,在五个德英领域基准上验证了其提升翻译性能的有效性。

摘要:

大语言模型(LLM)因其上下文学习机制和涌现能力而受到广泛关注。研究界已开展多项试点研究,将LLM应用于机器翻译任务,并从多个角度评估其性能。然而,以往的研究主要聚焦于LLM本身,并未探索在LLM推理过程中引入人工干预。LLM的特性,如上下文学习和提示工程,与人类在语言任务中的认知能力高度相似,这为人机协同生成提供了直观的解决方案。在本研究中,我们提出了一种人机协同流水线,通过修订指令引导LLM生成定制化输出。该流水线首先提示LLM生成草稿翻译,随后利用自动检索或人工反馈作为监督信号,通过上下文学习增强LLM的翻译能力。此过程中产生的人机交互也被存储于外部数据库中,以扩展上下文检索数据库,使我们能够在离线场景中利用人工监督。我们使用GPT-3.5-turbo API在五个领域特定的德英翻译基准上评估了所提出的流水线。结果表明,该流水线在定制领域内翻译和提升翻译性能方面相较于直接翻译具有有效性。此外,我们从以下角度讨论了结果:1)不同上下文检索方法的有效性;2)低资源场景下检索数据库的构建;3)观察到的领域差异;4)语言统计的定量分析;5)翻译案例的定性分析。代码和数据可在https://github.com/NLP2CT/HIL-MT/获取。

英文摘要:

The large language model (LLM) has garnered significant attention due to its in-context learning mechanisms and emergent capabilities. The research community has conducted several pilot studies to apply LLMs to machine translation tasks and evaluate their performance from diverse perspectives. However, previous research has primarily focused on the LLM itself and has not explored human intervention in the inference process of LLM. The characteristics of LLM, such as in-context learning and prompt engineering, closely mirror human cognitive abilities in language tasks, offering an intuitive solution for human-in-the-loop generation. In this study, we propose a human-in-the-loop pipeline that guides LLMs to produce customized outputs with revision instructions. The pipeline initiates by prompting the LLM to produce a draft translation, followed by the utilization of automatic retrieval or human feedback as supervision signals to enhance the LLM's translation through in-context learning. The human-machine interactions generated in this pipeline are also stored in an external database to expand the in-context retrieval database, enabling us to leverage human supervision in an offline setting. We evaluate the proposed pipeline using GPT-3.5-turbo API on five domain-specific benchmarks for German-English translation. The results demonstrate the effectiveness of the pipeline in tailoring in-domain translations and improving translation performance compared to direct translation. Additionally, we discuss the results from the following perspectives: 1) the effectiveness of different in-context retrieval methods; 2) the construction of a retrieval database under low-resource scenarios; 3) the observed domains differences; 4) the quantitative analysis of linguistic statistics; and 5) the qualitative analysis of translation cases. The code and data are available at https://github.com/NLP2CT/HIL-MT/.

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

↑