Skip to main content
CenXiv.org
此网站处于试运行阶段,支持我们!
我们衷心感谢所有贡献者的支持。
贡献
赞助
cenxiv logo > cs > arXiv:2501.01679

帮助 | 高级搜索

计算机科学 > 计算与语言

arXiv:2501.01679 (cs)
[提交于 2025年1月3日 ]

标题: 基于预训练语言模型的自适应小样本提示方法在机器翻译中的应用

标题: Adaptive Few-shot Prompting for Machine Translation with Pre-trained Language Models

Authors:Lei Tang, Jinghui Qin, Wenxuan Ye, Hao Tan, Zhijing Yang
摘要: 最近,具有上下文学习能力的大语言模型(LLMs)在处理神经机器翻译方面表现出显著的潜力。 然而,现有证据表明,LLMs对提示敏感,将固定提示应用于任何输入以进行下游机器翻译任务是次优的。 为了解决这个问题,我们提出了一种自适应少量示例提示(AFSP)框架,以自动选择适合各种源输入句子的翻译示例,从而进一步激发LLM的翻译能力,以实现更好的机器翻译。 首先,我们基于LLM的嵌入构建一个翻译示例检索模块,从对齐的平行翻译语料库中检索出前k个语义相似的翻译示例。 而不是使用其他嵌入模型进行语义示例检索,我们基于部署的LLM的嵌入层构建了一个混合示例检索模块,以构建更好的输入表示,从而检索出更多语义相关的翻译示例。 然后,为了确保源输入和目标输出之间的更好语义一致性,我们借助翻译示例让部署的LLM本身生成多个目标语言的输出候选,并对这些候选进行重新排序。 此外,为了更好地评估我们的AFSP框架在最新语言上的有效性并扩展神经机器翻译的研究边界,我们构建了一个高质量的外交中英平行数据集,该数据集包含5,528个中英平行句子。 最后,在提出的外交中英平行数据集和联合国平行语料库(中英部分)上的大量实验展示了我们提出的AFSP的有效性和优越性。
摘要: Recently, Large language models (LLMs) with in-context learning have demonstrated remarkable potential in handling neural machine translation. However, existing evidence shows that LLMs are prompt-sensitive and it is sub-optimal to apply the fixed prompt to any input for downstream machine translation tasks. To address this issue, we propose an adaptive few-shot prompting (AFSP) framework to automatically select suitable translation demonstrations for various source input sentences to further elicit the translation capability of an LLM for better machine translation. First, we build a translation demonstration retrieval module based on LLM's embedding to retrieve top-k semantic-similar translation demonstrations from aligned parallel translation corpus. Rather than using other embedding models for semantic demonstration retrieval, we build a hybrid demonstration retrieval module based on the embedding layer of the deployed LLM to build better input representation for retrieving more semantic-related translation demonstrations. Then, to ensure better semantic consistency between source inputs and target outputs, we force the deployed LLM itself to generate multiple output candidates in the target language with the help of translation demonstrations and rerank these candidates. Besides, to better evaluate the effectiveness of our AFSP framework on the latest language and extend the research boundary of neural machine translation, we construct a high-quality diplomatic Chinese-English parallel dataset that consists of 5,528 parallel Chinese-English sentences. Finally, extensive experiments on the proposed diplomatic Chinese-English parallel dataset and the United Nations Parallel Corpus (Chinese-English part) show the effectiveness and superiority of our proposed AFSP.
评论: 发表于AAAI 2025
主题: 计算与语言 (cs.CL) ; 人工智能 (cs.AI)
引用方式: arXiv:2501.01679 [cs.CL]
  (或者 arXiv:2501.01679v1 [cs.CL] 对于此版本)
  https://doi.org/10.48550/arXiv.2501.01679
通过 DataCite 发表的 arXiv DOI

提交历史

来自: JingHui Qin [查看电子邮件]
[v1] 星期五, 2025 年 1 月 3 日 07:47:59 UTC (2,182 KB)
全文链接:

获取论文:

    查看标题为《》的 PDF
  • 查看中文 PDF
  • 查看 PDF
  • HTML(实验性)
  • TeX 源代码
  • 其他格式
许可图标 查看许可
当前浏览上下文:
cs.AI
< 上一篇   |   下一篇 >
新的 | 最近的 | 2025-01
切换浏览方式为:
cs
cs.CL

参考文献与引用

  • NASA ADS
  • 谷歌学术搜索
  • 语义学者
a 导出 BibTeX 引用 加载中...

BibTeX 格式的引用

×
数据由提供:

收藏

BibSonomy logo Reddit logo

文献和引用工具

文献资源探索 (什么是资源探索?)
连接的论文 (什么是连接的论文?)
Litmaps (什么是 Litmaps?)
scite 智能引用 (什么是智能引用?)

与本文相关的代码,数据和媒体

alphaXiv (什么是 alphaXiv?)
CatalyzeX 代码查找器 (什么是 CatalyzeX?)
DagsHub (什么是 DagsHub?)
Gotit.pub (什么是 GotitPub?)
Hugging Face (什么是 Huggingface?)
带有代码的论文 (什么是带有代码的论文?)
ScienceCast (什么是 ScienceCast?)

演示

复制 (什么是复制?)
Hugging Face Spaces (什么是 Spaces?)
TXYZ.AI (什么是 TXYZ.AI?)

推荐器和搜索工具

影响之花 (什么是影响之花?)
核心推荐器 (什么是核心?)
IArxiv 推荐器 (什么是 IArxiv?)
  • 作者
  • 地点
  • 机构
  • 主题

arXivLabs:与社区合作伙伴的实验项目

arXivLabs 是一个框架,允许合作伙伴直接在我们的网站上开发和分享新的 arXiv 特性。

与 arXivLabs 合作的个人和组织都接受了我们的价值观,即开放、社区、卓越和用户数据隐私。arXiv 承诺这些价值观,并且只与遵守这些价值观的合作伙伴合作。

有一个为 arXiv 社区增加价值的项目想法吗? 了解更多关于 arXivLabs 的信息.

这篇论文的哪些作者是支持者? | 禁用 MathJax (什么是 MathJax?)
  • 关于
  • 帮助
  • contact arXivClick here to contact arXiv 联系
  • 订阅 arXiv 邮件列表点击这里订阅 订阅
  • 版权
  • 隐私政策
  • 网络无障碍帮助
  • arXiv 运营状态
    通过...获取状态通知 email 或者 slack

京ICP备2025123034号