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

用推理补偿数据:基于LLM的低资源机器翻译

Compensating for Data with Reasoning: Low-Resource Machine Translation with LLMs

Department of Computer Science / University of Innsbruck(计算机科学系 / 因斯布鲁克大学)

Samuel Frontull, Thomas Ströhle

AI总结:

本文提出Fragment-Shot Prompting及其无平行数据扩展Pivoted Fragment-Shot方法,利用LLM的推理能力补偿低资源语言翻译数据的不足,实验证明句法覆盖度与翻译质量正相关,且强推理模型能更有效地利用检索知识提升低资源语言间的翻译效果。

摘要:

大型语言模型(LLMs)在多语言机器翻译中展现了强大的能力,有时甚至超越了传统的神经系统。然而,先前的研究强调了使用LLMs(特别是通过提示工程)处理低资源语言时的挑战。在这项工作中,我们引入了Fragment-Shot Prompting,这是一种新颖的上下文学习方法,它对输入进行分段,并基于句法覆盖度检索翻译示例;同时提出了Pivoted Fragment-Shot,这是一种扩展方法,能够在没有直接平行数据的情况下实现翻译。我们使用GPT-3.5、GPT-4o、o1-mini、LLaMA-3.3和DeepSeek-R1评估了这些方法在意大利语与两种拉登语变体之间翻译的效果,揭示了三个关键发现:(1)Fragment-Shot Prompting对于翻译到以及在这些所研究的低资源语言之间进行翻译是有效的,且句法覆盖度与翻译质量呈正相关;(2)具有更强推理能力的模型能更有效地利用检索到的知识,通常能产生更好的翻译,并使Pivoted Fragment-Shot能够显著提升拉登语变体之间的翻译质量;(3)当从低资源语言翻译到高资源语言时,提示工程带来的改进有限甚至没有,因为零样本提示已经产生了令人满意的结果。我们公开发布了我们的代码和检索语料库。

英文摘要:

Large Language Models (LLMs) have demonstrated strong capabilities in multilingual machine translation, sometimes even outperforming traditional neural systems. However, previous research has highlighted the challenges of using LLMs, particularly with prompt engineering, for low-resource languages. In this work, we introduce Fragment-Shot Prompting, a novel in-context learning method that segments input and retrieves translation examples based on syntactic coverage, along with Pivoted Fragment-Shot, an extension that enables translation without direct parallel data. We evaluate these methods using GPT-3.5, GPT-4o, o1-mini, LLaMA-3.3, and DeepSeek-R1 for translation between Italian and two Ladin variants, revealing three key findings: (1) Fragment-Shot Prompting is effective for translating into and between the studied low-resource languages, with syntactic coverage positively correlating with translation quality; (2) Models with stronger reasoning abilities make more effective use of retrieved knowledge, generally produce better translations, and enable Pivoted Fragment-Shot to significantly improve translation quality between the Ladin variants; and (3) prompt engineering offers limited, if any, improvements when translating from a low-resource to a high-resource language, where zero-shot prompting already yields satisfactory results. We publicly release our code and the retrieval corpora.

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

↑