arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.12261cs.CL
收藏

Prompt2Model: 从自然语言指令生成可部署模型

Prompt2Model: Generating Deployable Models from Natural Language Instructions

Carnegie Mellon University(卡内基梅隆大学);Tsinghua University(清华大学)

Vijay Viswanathan, Chenyang Zhao, Amanda Bertsch, Tongshuang Wu, Graham Neubig

AI总结:

针对大语言模型部署成本高、受API限制的问题,提出Prompt2Model方法,基于自然语言提示词通过检索生成数据、微调训练出更小性能更优的专用可部署NLP模型并开源。

摘要:

大语言模型(LLM)让如今的系统构建者能够通过提示词构建合格的自然语言处理(NLP)系统,构建者仅需用自然语言描述任务并提供少量示例即可。但在其他方面,LLM相比传统专用NLP模型是一种倒退:它们部署需要大量计算资源,且可能受限于API访问门槛。本文提出Prompt2Model,这是一种通用方法,它接收类似提供给LLM的提示词这类自然语言任务描述,并用其训练易于部署的专用模型。该方法通过多步骤流程实现:检索现有数据集与预训练模型、利用LLM生成数据集、在这些检索到的和生成的数据集上进行有监督微调。在三项任务上我们证明,给定相同的少样本提示词作为输入,Prompt2Model训练出的模型平均性能优于强大的LLM模型gpt-3.5-turbo达20%,同时体积最多小700倍。我们还表明,这些数据可用于获得可靠的模型性能评估结果,让模型开发者能在部署前评估模型可靠性。Prompt2Model已在https://github.com/neulab/prompt2model开源发布。

英文摘要:

Large language models (LLMs) enable system builders today to create competent NLP systems through prompting, where they only need to describe the task in natural language and provide a few examples. However, in other ways, LLMs are a step backward from traditional special-purpose NLP models; they require extensive computational resources for deployment and can be gated behind APIs. In this paper, we propose Prompt2Model, a general-purpose method that takes a natural language task description like the prompts provided to LLMs, and uses it to train a special-purpose model that is conducive to deployment. This is done through a multi-step process of retrieval of existing datasets and pretrained models, dataset generation using LLMs, and supervised fine-tuning on these retrieved and generated datasets. Over three tasks, we demonstrate that given the same few-shot prompt as input, Prompt2Model trains models that outperform the results of a strong LLM, gpt-3.5-turbo, by an average of 20% while being up to 700 times smaller. We also show that this data can be used to obtain reliable performance estimates of model performance, enabling model developers to assess model reliability before deployment. Prompt2Model is available open-source at https://github.com/neulab/prompt2model.

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

↑