arXiv:2411.01141cs.CL2024-11被引 1

通过插入英文词典提升多语言大模型推理能力

Dictionary Insertion Prompting for Multilingual Reasoning on Multilingual Large Language Models

  • 在提示中插入英文词汇,优化多语言到英文的翻译与推理
  • 在200种语言上测试,性能显著优于传统拼接方式
  • 适合需要跨语言推理的开发者与研究者

当前大型语言模型存在两大不足:一是多数模型以英语为中心,多语言推理表现有限;二是外部知识通常直接拼接到用户查询前,效果可能不佳。本文提出一种简单而有效的新方法——字典插入提示(Dictionary Insertion Prompting, DIP)。当输入非英语提示时,DIP会查词典并将对应英文词汇插入提示中间,从而改善模型的英文翻译质量与思维链推理过程,带来明显性能提升。我们在FLORES-200数据集上实验了10至200种语言,由于缺乏充足数据,利用NLLB翻译器将GSM8K、AQuA等4个英文推理基准转化为合成多语言数据集,并通过人工标注回译验证质量。结果显示,词典插入位置至关重要,交错插入原句词汇的效果优于仅前置或后置词典。

原文摘要 · Abstract (English)

There are two shortages in the current Large Language Models (LLMs) era. The first is short of multilingual models, where most LLMs are English-centric and performance is limited on multilingual reasoning. The second is the place of external knowledge to be used, where most retrieved knowledge is prepended to the user queries (maybe sub-optimal). This paper presents a novel and simple yet effective method called \textbf{D}ictionary \textbf{I}nsertion \textbf{P}rompting (\textbf{DIP}). When providing a non-English prompt, DIP looks up a word dictionary and inserts words' English counterparts into the middle of the prompt for LLMs. It then enables better translation into English and better English model thinking steps which leads to obviously better results. We experiment with 10 to 200 languages from FLORES-200.\footnote{The number of languages varies on the datasets, and we experiment with 200 languages on GSM8K as in Appendix} Since there are no adequate datasets, we use the NLLB translator to create synthetic multilingual benchmarks from the existing 4 English reasoning benchmarks such as GSM8K and AQuA. The synthetic benchmarks are translated back into English for quality assurance with manual annotation. Interestingly, the place for injecting the dictionary plays an important factor in the performance gains, and we found that interleaving the dictionary with the original words gives a better performance compared to prepending/appending the dictionary, under the same dictionary constructed.

多语言提示工程推理增强

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。