Skip to main content
QUICK REVIEW

[论文解读] ExpertPrompting: Instructing Large Language Models to be Distinguished Experts

Benfeng Xu, Yang An|arXiv (Cornell University)|May 24, 2023
Topic ModelingComputer Science被引用 51
一句话总结

论文介绍 ExpertPrompting,通过自动生成的专家身份来增强提示,从而引导大型语言模型给出更高质量、专家风格的回答,并训练 ExpertLLaMA,这是一个开源的对话助手,在能力上达到约 ChatGPT 的 96%。

ABSTRACT

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 \url{https://github.com/OFA-Sys/ExpertLLaMA}.

研究动机与目标

  • 通过专家风格的提示来提升 LLM 输出的指令遵循质量。
  • 开发一种通过上下文学习为每条指令生成详细的专家身份的自动方法。
  • 创建并发布一个开源的专家增强对话模型(ExpertLLaMA),在专家增强数据上训练。

提出的方法

  • 对每条指令 q,使用带有 k 个范例的上下文学习生成专门的专家身份 e_q。
  • 将专家身份作为条件输入给 LLM:a_q = LLM(e_q, q),以产生更高质量的回答 ~ã。
  • 使用开源 LLM(LLaMA 7B)在专家增强数据 ã 上训练对话助手 ExpertLLaMA。
  • 使用基于 GPT-4 的自动评估比较 ã 与 a 来评估数据质量。
  • 使用基于 GPT-4 的评判将 ExpertLLaMA 与开源基线和 ChatGPT 进行比较。
  • 公开发布数据和模型以实现可重复性。

实验结果

研究问题

  • RQ1ExpertPrompting 是否比普通提示产生更高质量的专家增强回答?
  • RQ2在专家增强数据上训练的开源模型是否能接近像 ChatGPT 这样的闭源系统的性能?
  • RQ3在基于 GPT-4 的评估下,ExpertLLaMA 与其他开源对话助手相比如何?

主要发现

  • ExpertPrompting 产生的回答比普通提示更长、更全面(from average answer length)。
  • 基于 GPT-4 的评估在样本中偏好专家增强答案占比 48.5% 而普通答案占比 23%,显示更高质量。
  • ExpertLLaMA 超越 Alpaca、Vicuna 和 LLaMA-GPT4 基线,在评估中达到约 ChatGPT 能力的 96%。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。