[Paper Review] ExpertPrompting: Instructing Large Language Models to be Distinguished Experts
The paper introduces ExpertPrompting, which augments prompts with automatically generated expert identities to elicit higher-quality, expert-style responses from LLMs and trains ExpertLLaMA, an open-source chat assistant that achieves about 96% of ChatGPT's capability.
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}.
Motivation & Objective
- Motivate improving instruction-following quality of LLM outputs through expert-style prompting.
- Develop an automatic method to generate detailed expert identities for each instruction via in-context learning.
- Create and release an open-source expert-enhanced chat model (ExpertLLaMA) trained on the expert-augmented data.
Proposed method
- For each instruction q, generate a specialized expert identity e_q using in-context learning with k exemplars.
- Condition the LLM on the expert identity: a_q = LLM(e_q, q) to produce a higher-quality answer ~ã.
- Train a chat assistant ExpertLLaMA on the expert-augmented data ã using an open LLM (LLaMA 7B).
- Evaluate data quality with GPT-4-based automatic evaluation comparing ã vs a.
- Compare ExpertLLaMA to open-source baselines and ChatGPT using GPT-4 based judgments.
- Release data and model publicly for reproducibility.
Experimental results
Research questions
- RQ1Does ExpertPrompting produce higher-quality expert-augmented answers than vanilla prompts?
- RQ2Can an open-source model trained on expert-augmented data approach the performance of closed-source systems like ChatGPT?
- RQ3How does ExpertLLaMA compare to other open-source chat assistants under GPT-4 based evaluation?
Key findings
- ExpertPrompting yields longer, more comprehensive answers than vanilla prompts (as shown by average answer length).
- GPT-4 based evaluation prefers expert-augmented answers over vanilla answers in 48.5% of samples versus 23% for vanilla, indicating higher quality.
- ExpertLLaMA outperforms Alpaca, Vicuna, and LLaMA-GPT4-based baselines, and achieves about 96% of ChatGPT's capability on evaluation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.