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

OpenBezoar:基于指令数据混合训练的小型、经济高效且开放的模型

OpenBezoar: Small, Cost-Effective and Open Models Trained on Mixes of Instruction Data

Surge Global

Chandeepa Dissanayake, Lahiru Lowe, Sachith Gunasekara, Yasiru Ratnayake

AI总结:

本研究以OpenLLaMA 3Bv2为基础,通过生成合成数据并采用QLoRA和DPO等方法,训练出OpenBezoar系列模型,在3B参数规模上性能优越,并开源了模型和数据。

摘要:

对预训练大语言模型(LLM)进行指令微调以适应多样化的下游任务已展现出显著的成功,并引起了学术界和从业者的兴趣。为确保此类微调后的LLM与人类偏好对齐,RLHF和DPO等技术应运而生。与此同时,模型参数数量越小越受关注。在本工作中,我们以OpenLLaMA 3Bv2为基础模型,描述了用于微调OpenBezoar模型系列的配方。该配方包括:首先,我们使用一个开放且商业上无限制的指令微调变体Falcon-40B模型,基于三种方案生成合成指令微调数据,这些方案分别基于:LaMini-LM、WizardLM/Evol-Instruct(以databricks-dolly-15k作为种子数据集)和Orca(以Flan Collection作为种子数据集),然后使用GPT-4作为人类代理过滤这些生成的数据。接着,我们依次对每种方案进行基于QLoRA的监督微调,以经济高效的方式实现。得到的检查点进一步使用HH-RLHF数据集的一个子集进行微调,以最小化分布偏移,然后使用DPO损失获得最终检查点。评估使用LM Eval Harness任务/指标以及MT-Bench上的“LLM-as-a-judge”框架(使用Claude 2.1)进行,结果显示最终检查点“OpenBezoar-HH-RLHF-DPO”在3B参数规模上表现出优于许多模型的性能,甚至在Huggingface Open LLM Leaderboard的一个类别中超越了顶级模型。我们发布了“OpenBezoar-SFT”、“OpenBezoar-HH-RLHF-SFT”和“OpenBezoar-HH-RLHF-DPO”检查点,以及我们生成的数据集,可在HuggingFace上获取(https://huggingface.co/collections/SurgeGlobal/open-bezoar-6620a24923e12127e9e2b9cc),我们的代码库位于https://bitbucket.org/paladinanalytics/workspace/projects/OP。

英文摘要:

Instruction fine-tuning pretrained LLMs for diverse downstream tasks has demonstrated remarkable success and has captured the interest of both academics and practitioners. To ensure such fine-tuned LLMs align with human preferences, techniques such as RLHF and DPO have emerged. At the same time, there is increasing interest in smaller parameter counts for models. In this work, using OpenLLaMA 3Bv2 as a base model, we describe the recipe used to fine-tune the OpenBezoar family of models. In this recipe: We first generate synthetic instruction fine-tuning data using an open and commercially non-restrictive instruction fine-tuned variant of the Falcon-40B model under three schemes based on: LaMini-LM, WizardLM/Evol-Instruct (with databricks-dolly-15k as a seed dataset) and Orca (with the Flan Collection as a seed dataset), then filter these generations using GPT-4 as a human proxy. We then perform cost-effective QLoRA-based supervised fine-tuning sequentially with each scheme. The resulting checkpoint is further fine-tuned with a subset of the HH-RLHF dataset to minimize distribution shift prior to using the DPO loss to obtain the final checkpoint. Evaluation is done with the LM Eval Harness tasks/metrics as well as on MT-Bench using the "LLM-as-a-judge" framework with Claude 2.1, with the finding that the final checkpoint, "OpenBezoar-HH-RLHF-DPO", demonstrates superior performance over many models at the 3B parameter scale, even outperforming the top model in one of the categories on the Huggingface Open LLM Leaderboard. We release "OpenBezoar-SFT", "OpenBezoar-HH-RLHF-SFT", "OpenBezoar-HH-RLHF-DPO" checkpoints, alongside our generated datasets on HuggingFace at https://huggingface.co/collections/SurgeGlobal/open-bezoar-6620a24923e12127e9e2b9cc and our codebase at https://bitbucket.org/paladinanalytics/workspace/projects/OP.

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

↑