arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2401.08429cs.CLcs.AIcs.HCcs.LG
收藏

基于大型语言模型的机器翻译:面向波斯语、英语和俄语方向的提示工程

Machine Translation with Large Language Models: Prompt Engineering for Persian, English, and Russian Directions

University of Isfahan(伊斯法罕大学)

Nooshin Pourkamali, Shler Ebrahim Sharifi

AI总结:

本文研究波斯语、英语和俄语机器翻译中的提示工程,发现PaLM等多语言LLM可产生接近人工水平的翻译,并系统分类了LLM翻译错误,为上下文学习提示设计提供指导。

摘要:

生成式大型语言模型(LLMs)已在多种自然语言处理(NLP)任务中展现出卓越能力,包括机器翻译、问答、文本摘要和自然语言理解。为进一步提升LLMs在机器翻译中的表现,我们针对波斯语、英语和俄语之间的跨语言组合,研究了两种流行的提示方法及其组合方式。我们采用了n-shot输入和定制化提示框架。研究结果表明,像PaLM这样的多语言LLM能够产生接近人工水平的机器翻译输出,从而能够根据风格指南和语言学考量对所需翻译细节进行更优的微调。这些模型在处理和应用提示方面也表现出色。然而,在采用提示框架和利用n-shot上下文学习时,语言模型的选择、机器翻译任务以及具体的源语言和目标语言都需要进行一定的考量。此外,我们识别了流行LLM作为机器翻译工具时固有的错误和局限性,并根据多种语言学指标对其进行了分类。这种错误类型学为有效利用LLM提供了有价值的见解,并为设计用于上下文学习的提示提供了方法。本报告旨在通过提高评估指标的准确性和可靠性,推动基于LLM的机器翻译发展。

英文摘要:

Generative large language models (LLMs) have demonstrated exceptional proficiency in various natural language processing (NLP) tasks, including machine translation, question answering, text summarization, and natural language understanding. To further enhance the performance of LLMs in machine translation, we conducted an investigation into two popular prompting methods and their combination, focusing on cross-language combinations of Persian, English, and Russian. We employed n-shot feeding and tailored prompting frameworks. Our findings indicate that multilingual LLMs like PaLM exhibit human-like machine translation outputs, enabling superior fine-tuning of desired translation nuances in accordance with style guidelines and linguistic considerations. These models also excel in processing and applying prompts. However, the choice of language model, machine translation task, and the specific source and target languages necessitate certain considerations when adopting prompting frameworks and utilizing n-shot in-context learning. Furthermore, we identified errors and limitations inherent in popular LLMs as machine translation tools and categorized them based on various linguistic metrics. This typology of errors provides valuable insights for utilizing LLMs effectively and offers methods for designing prompts for in-context learning. Our report aims to contribute to the advancement of machine translation with LLMs by improving both the accuracy and reliability of evaluation metrics.

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

↑