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

使用LLMs优化翻译:一种约束感知的迭代提示方法

Refining Translations with LLMs: A Constraint-Aware Iterative Prompting Approach

Zhengzhou University of Light Industry(郑州轻工业大学);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所)

Shangfeng Chen, Xiayang Shi, Pu Li, Yinlin Li, Jingjing Liu

AI总结:

提出一种约束感知的迭代提示方法,通过多步提示链结合RAG检索关键术语翻译,并利用自检机制优化,显著提升了LLMs在低资源场景下的翻译忠实度。

摘要:

大型语言模型(LLMs)在机器翻译(MT)中展现了卓越能力,即使未针对相关语言进行特定训练。然而,在低资源或特定领域语境下翻译罕见词对LLMs仍具挑战。为解决此问题,我们提出一种多步提示链,通过优先处理对语义准确性至关重要的关键术语来增强翻译忠实度。该方法首先识别这些关键词,并从双语词典中检索其翻译,利用检索增强生成(RAG)将其整合到LLM的上下文中。我们进一步通过迭代自检机制缓解长提示可能导致的输出幻觉,其中LLM基于词汇和语义约束优化其翻译。使用Llama和Qwen作为基础模型在FLORES-200和WMT数据集上的实验表明,相比基线有显著提升,突显了该方法在增强翻译忠实度和鲁棒性方面的有效性,尤其在低资源场景中。

英文摘要:

Large language models (LLMs) have demonstrated remarkable proficiency in machine translation (MT), even without specific training on the languages in question. However, translating rare words in low-resource or domain-specific contexts remains challenging for LLMs. To address this issue, we propose a multi-step prompt chain that enhances translation faithfulness by prioritizing key terms crucial for semantic accuracy. Our method first identifies these keywords and retrieves their translations from a bilingual dictionary, integrating them into the LLM's context using Retrieval-Augmented Generation (RAG). We further mitigate potential output hallucinations caused by long prompts through an iterative self-checking mechanism, where the LLM refines its translations based on lexical and semantic constraints. Experiments using Llama and Qwen as base models on the FLORES-200 and WMT datasets demonstrate significant improvements over baselines, highlighting the effectiveness of our approach in enhancing translation faithfulness and robustness, particularly in low-resource scenarios.

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

↑