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

AgentInstruct:面向智能体流程的生成式教学

AgentInstruct: Toward Generative Teaching with Agentic Flows

Microsoft Research(微软研究院)
Arindam Mitra, Luciano Del Corro, Guoqing Zheng, Shweti Mahajan, Dany Rouhana, Andres Codas, Yadong Lu, Wei-ge Chen, Olga Vrousgos, Corby Rosset, Fillipe Silva,… 展开作者

Arindam Mitra, Luciano Del Corro, Guoqing Zheng, Shweti Mahajan, Dany Rouhana, Andres Codas, Yadong Lu, Wei-ge Chen, Olga Vrousgos, Corby Rosset, Fillipe Silva, Hamed Khanpour, Yash Lara, Ahmed Awadallah

AI总结:

本文提出 AgentInstruct 智能体框架,利用原始文本和代码自动生成多样且高质量的合成数据,并以 2500 万对数据后训练 Mistral-7b 得到 Orca-3,在多项基准上显著超越同基座模型及其他主流模型。

摘要:

合成数据对于加速语言模型(无论大小)的发展正变得越来越重要。尽管已有若干成功用例,研究人员也对模型崩溃和模仿其他模型的弊端提出了担忧。这种差异可归因于合成数据在质量和多样性上参差不齐。有效使用合成数据通常需要大量人工来整理数据。我们聚焦于将合成数据用于后训练,具体而言,是由强大模型创建数据来向另一个模型传授新技能或新行为,我们将这一设定称为生成式教学(Generative Teaching)。我们引入了 AgentInstruct,一个可扩展的智能体框架,用于自动创建大量多样且高质量的合成数据。AgentInstruct 能够仅以文本文档和代码文件等原始数据源为种子,同时创建提示和响应。我们通过创建一个包含 2500 万对数据的后训练数据集来展示 AgentInstruct 的实用性,该数据集用于向语言模型传授不同技能,例如文本编辑、创意写作、工具使用、编码、阅读理解等。该数据集可用于任何基础模型的指令微调。我们使用该数据对 Mistral-7b 进行后训练。将所得模型 Orca-3 与 Mistral-7b-Instruct(使用相同基础模型)进行比较时,我们观察到在许多基准上都有显著提升。例如,在 AGIEval 上提升 40%,在 MMLU 上提升 19%,在 GSM8K 上提升 54%,在 BBH 上提升 38%,在 AlpacaEval 上提升 45%。此外,它持续优于其他模型,如 LLAMA-8B-instruct 和 GPT-3.5-turbo。

英文摘要:

Synthetic data is becoming increasingly important for accelerating the development of language models, both large and small. Despite several successful use cases, researchers also raised concerns around model collapse and drawbacks of imitating other models. This discrepancy can be attributed to the fact that synthetic data varies in quality and diversity. Effective use of synthetic data usually requires significant human effort in curating the data. We focus on using synthetic data for post-training, specifically creating data by powerful models to teach a new skill or behavior to another model, we refer to this setting as Generative Teaching. We introduce AgentInstruct, an extensible agentic framework for automatically creating large amounts of diverse and high-quality synthetic data. AgentInstruct can create both the prompts and responses, using only raw data sources like text documents and code files as seeds. We demonstrate the utility of AgentInstruct by creating a post training dataset of 25M pairs to teach language models different skills, such as text editing, creative writing, tool usage, coding, reading comprehension, etc. The dataset can be used for instruction tuning of any base model. We post-train Mistral-7b with the data. When comparing the resulting model Orca-3 to Mistral-7b-Instruct (which uses the same base model), we observe significant improvements across many benchmarks. For example, 40% improvement on AGIEval, 19% improvement on MMLU, 54% improvement on GSM8K, 38% improvement on BBH and 45% improvement on AlpacaEval. Additionally, it consistently outperforms other models such as LLAMA-8B-instruct and GPT-3.5-turbo.

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

↑