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

在推理时利用领域知识进行大语言模型翻译:检索与生成

Leveraging Domain Knowledge at Inference Time for LLM Translation: Retrieval versus Generation

University of Pennsylvania(宾夕法尼亚大学);Google(谷歌)

Bryan Li, Jiaming Luo, Eleftheria Briakou, Colin Cherry

AI总结:

本文通过提示设置比较检索与生成两类领域知识对LLM翻译的影响,发现少样本示例优于术语、检索优于生成,并指出多领域基准更偏向写作风格适应而非领域适应。

摘要:

尽管大语言模型(LLMs)在机器翻译(MT)中日益被广泛采用,但它们在医学和法律等专业领域的表现仍是一个未解决的挑战。先前的工作表明,LLMs可以在测试时通过检索有针对性的少样本示例或术语并将其纳入提示来实现领域适应。与此同时,对于通用的大语言模型机器翻译,近期研究发现,在翻译之前从LLM自身生成类似的领域知识也取得了一定成功。我们的工作通过精心设计的提示设置研究基于LLMs的领域适应机器翻译,发现示例始终优于术语,检索始终优于生成。我们发现,使用较弱模型生成示例可以缩小与较大模型零样本性能之间的差距。鉴于示例的有效性,我们进行了详细分析以理解其价值。我们发现领域特异性尤为重要,并且流行的多领域基准测试更多是在测试对特定写作风格的适应,而非对特定领域的适应。

英文摘要:

While large language models (LLMs) have been increasingly adopted for machine translation (MT), their performance for specialist domains such as medicine and law remains an open challenge. Prior work has shown that LLMs can be domain-adapted at test-time by retrieving targeted few-shot demonstrations or terminologies for inclusion in the prompt. Meanwhile, for general-purpose LLM MT, recent studies have found some success in generating similarly useful domain knowledge from an LLM itself, prior to translation. Our work studies domain-adapted MT with LLMs through a careful prompting setup, finding that demonstrations consistently outperform terminology, and retrieval consistently outperforms generation. We find that generating demonstrations with weaker models can close the gap with larger model's zero-shot performance. Given the effectiveness of demonstrations, we perform detailed analyses to understand their value. We find that domain-specificity is particularly important, and that the popular multi-domain benchmark is testing adaptation to a particular writing style more so than to a specific domain.

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

↑