arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.14688cs.CLcs.AI
收藏

ExpertPrompting:指导大型语言模型成为杰出专家

ExpertPrompting: Instructing Large Language Models to be Distinguished Experts

University of Science and Technology of China(中国科学技术大学);Alibaba DAMO Academy(阿里巴巴达摩院);Beijing University of Posts and Telecommunications(北京邮电大学)

Benfeng Xu, An Yang, Junyang Lin, Quan Wang, Chang Zhou, Yongdong Zhang, Zhendong Mao

AI总结:

本文提出ExpertPrompting方法,通过上下文学习为指令合成专家身份描述并以此作为智能体背景,提升LLM回答质量,基于此构建的ExpertLLaMA达到ChatGPT 96%的能力。

摘要:

如果对齐的大型语言模型(LLM)进行适当的提示设计,其回答质量可以得到显著提高。在本文中,我们提出了ExpertPrompting,以激发LLM作为杰出专家回答问题的潜力。我们首先利用上下文学习(In-Context Learning)为每个特定指令自动合成详细且定制的专家身份描述,然后要求LLM基于这种智能体背景提供答案。基于这种增强的提示策略,我们使用GPT-3.5生成了一组新的指令遵循数据,并训练了一个名为ExpertLLaMA的竞争性开源聊天助手。我们采用基于GPT4的评估来证明:1)专家数据的质量显著高于普通答案;2)ExpertLLaMA优于现有的开源对手,并达到了原始ChatGPT 96%的能力。所有数据和ExpertLLaMA模型将在https://github.com/OFA-Sys/ExpertLLaMA上公开发布。

英文摘要:

The answering quality of an aligned large language model (LLM) can be drastically improved if treated with proper crafting of prompts. In this paper, we propose ExpertPrompting to elicit the potential of LLMs to answer as distinguished experts. We first utilize In-Context Learning to automatically synthesize detailed and customized descriptions of the expert identity for each specific instruction, and then ask LLMs to provide answer conditioned on such agent background. Based on this augmented prompting strategy, we produce a new set of instruction-following data using GPT-3.5, and train a competitive open-source chat assistant called ExpertLLaMA. We employ GPT4-based evaluation to show that 1) the expert data is of significantly higher quality than vanilla answers, and 2) ExpertLLaMA outperforms existing open-source opponents and achieves 96\% of the original ChatGPT's capability. All data and the ExpertLLaMA model will be made publicly available at https://github.com/OFA-Sys/ExpertLLaMA.

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

↑