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

关于大语言模型中上下文学习用于机器翻译的实证研究

An Empirical Study of In-context Learning in LLMs for Machine Translation

Nilekani Centre at AI4Bharat(尼罗卡尼AI4印度中心);IIT Madras(印度理工学院马德拉斯分校);National Institute of Information and Communications Technology(日本情报通信研究机构);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)

Pranjal A. Chitale, Jay Gala, Raj Dabre

AI总结:

本研究首次详尽探究了上下文学习(ICL)在机器翻译中的作用,发现ICL主要由示例而非指令驱动,且目标分布质量、扰动及相关任务示例均对性能有重要影响。

摘要:

近期,利用大语言模型(LLMs)通过上下文学习(ICL)进行机器翻译(MT)的兴趣激增(Vilar et al., 2023)。大多数先前的研究主要集中在优化翻译质量,对理解影响该质量的ICL具体方面的关注有限。为此,我们进行了首次此类关于机器翻译上下文学习的详尽研究。我们首先确立ICL主要由示例驱动而非指令驱动。随后,我们对示例的各个方面进行了广泛探索,以理解它们对下游性能的影响。我们的分析包括演示的质量和数量、空间邻近性以及源与目标的原创性等因素。此外,我们还调查了涉及示例间接性和不对齐的挑战性场景,以理解ICL的局限性。虽然我们确立了演示中目标分布质量相对于源分布的重要性,但我们进一步观察到扰动有时充当正则化器,从而带来性能提升。令人惊讶的是,ICL并不需要来自同一任务的示例,具有相同目标分布的相关任务被证明就足够了。我们希望我们的研究能作为在MT中利用ICL的考虑因素的指导资源。我们的代码可在 https://github.com/PranjalChitale/in-context-mt-analysis 获取。

英文摘要:

Recent interest has surged in employing Large Language Models (LLMs) for machine translation (MT) via in-context learning (ICL) (Vilar et al., 2023). Most prior studies primarily focus on optimizing translation quality, with limited attention to understanding the specific aspects of ICL that influence the said quality. To this end, we perform the first of its kind, an exhaustive study of in-context learning for machine translation. We first establish that ICL is primarily example-driven and not instruction-driven. Following this, we conduct an extensive exploration of various aspects of the examples to understand their influence on downstream performance. Our analysis includes factors such as quality and quantity of demonstrations, spatial proximity, and source versus target originality. Further, we also investigate challenging scenarios involving indirectness and misalignment of examples to understand the limits of ICL. While we establish the significance of the quality of the target distribution over the source distribution of demonstrations, we further observe that perturbations sometimes act as regularizers, resulting in performance improvements. Surprisingly, ICL does not necessitate examples from the same task, and a related task with the same target distribution proves sufficient. We hope that our study acts as a guiding resource for considerations in utilizing ICL for MT. Our code is available on https://github.com/PranjalChitale/in-context-mt-analysis.

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

↑