AlpaGasus:用更少数据训练更好的Alpaca
AlpaGasus: Training A Better Alpaca with Fewer Data
AI总结:
提出利用强LLM过滤低质量指令数据,仅用9k数据微调出的AlpaGasus模型不仅训练更快,且性能超越原始52k数据训练的Alpaca。
摘要:
大型语言模型(LLMs)通过在监督指令/响应数据上进行指令微调(IFT)来增强指令遵循能力。然而,广泛使用的IFT数据集(例如Alpaca的52k数据)令人惊讶地包含许多带有错误或不相关响应的低质量实例,这些实例具有误导性且对IFT有害。在本文中,我们提出了一种简单有效的数据选择策略,该策略使用强大的LLM(例如ChatGPT)自动识别并过滤低质量数据。为此,我们引入了AlpaGasus,它仅在从52k Alpaca数据中过滤出的9k高质量数据上进行微调。在多个测试集和受控人工评估中,由GPT-4评估,AlpaGasus显著优于原始Alpaca。其13B变体在测试任务上匹配了其教师LLM(即生成52k数据的Text-Davinci-003)超过90%的性能。它还提供了5.7倍的训练速度提升,将7B变体的训练时间从80分钟(Alpaca)减少到14分钟。此外,实验证明了我们的方法在不同数据集、基础模型和LLM过滤器中的有效性。总体而言,AlpaGasus展示了一种新颖的以数据为中心的IFT范式,可普遍应用于指令微调数据,从而实现更快的训练和更好的指令遵循模型。我们的项目页面位于:https://lichang-chen.github.io/AlpaGasus/
英文摘要:
Large language models (LLMs) strengthen instruction-following capability through instruction-finetuning (IFT) on supervised instruction/response data. However, widely used IFT datasets (e.g., Alpaca's 52k data) surprisingly contain many low-quality instances with incorrect or irrelevant responses, which are misleading and detrimental to IFT. In this paper, we propose a simple and effective data selection strategy that automatically identifies and filters out low-quality data using a strong LLM (e.g., ChatGPT). To this end, we introduce AlpaGasus, which is finetuned on only 9k high-quality data filtered from the 52k Alpaca data. AlpaGasus significantly outperforms the original Alpaca as evaluated by GPT-4 on multiple test sets and the controlled human evaluation. Its 13B variant matches $>90\%$ performance of its teacher LLM (i.e., Text-Davinci-003 generating the 52k data) on test tasks. It also provides 5.7x faster training, reducing the training time for a 7B variant from 80 minutes (for Alpaca) to 14 minutes. Moreover, the experiments prove the efficacy of our method across diverse datasets, base models, and LLM filters. Overall, AlpaGasus demonstrates a novel data-centric IFT paradigm that can be generally applied to instruction-tuning data, leading to faster training and better instruction-following models. Our project page is available at: https://lichang-chen.github.io/AlpaGasus/
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。