arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.04614cs.CLcs.AIcs.LG
收藏

通过指令往返翻译实现更好的对齐

Better Alignment with Instruction Back-and-Forth Translation

University of Washington(华盛顿大学);Meta FAIR

Thao Nguyen, Jeffrey Li, Sewoong Oh, Ludwig Schmidt, Jason Weston, Luke Zettlemoyer, Xian Li

AI总结:

该研究提出指令往返翻译方法,基于网络语料构建高质量合成数据用于大语言模型对齐,在AlpacaEval上胜率优于多个常见指令数据集,兼具网络信息规模与回复质量优势。

摘要:

我们提出了一种名为指令往返翻译的新方法,用于构建基于世界知识的高质量合成数据,以实现大语言模型(LLM)的对齐。针对来自网络语料库的文档,我们使用Li等人(2023a)提出的回译方法生成并筛选合成指令,并基于原始文档重写回复以进一步提升其质量。使用生成的(回译指令、重写回复)对进行微调,在AlpacaEval上的胜率高于使用Humpback、ShareGPT、Open Orca、Alpaca-GPT4和Self-instruct等其他常见指令数据集的效果。我们还证明,用LLM重写回复的效果优于直接蒸馏,且两种生成文本的分布在嵌入空间中存在显著差异。进一步分析表明,我们的回译指令质量高于其他合成指令来源,而我们的回复比蒸馏得到的回复更具多样性和复杂性。总体而言,我们发现指令往返翻译兼具两者优势——既利用了网络上的信息多样性和数量优势,又保证了有效对齐所必需的回复质量。

英文摘要:

We propose a new method, instruction back-and-forth translation, to construct high-quality synthetic data grounded in world knowledge for aligning large language models (LLMs). Given documents from a web corpus, we generate and curate synthetic instructions using the backtranslation approach proposed by Li et al.(2023a), and rewrite the responses to improve their quality further based on the initial documents. Fine-tuning with the resulting (backtranslated instruction, rewritten response) pairs yields higher win rates on AlpacaEval than using other common instruction datasets such as Humpback, ShareGPT, Open Orca, Alpaca-GPT4 and Self-instruct. We also demonstrate that rewriting the responses with an LLM outperforms direct distillation, and the two generated text distributions exhibit significant distinction in embedding space. Further analysis shows that our backtranslated instructions are of higher quality than other sources of synthetic instructions, while our responses are more diverse and complex than those obtained from distillation. Overall we find that instruction back-and-forth translation combines the best of both worlds -- making use of the information diversity and quantity found on the web, while ensuring the quality of the responses which is necessary for effective alignment.

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

↑