对预训练大语言模型(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.
Quantifying LLM Biases Across Instruction Boundary in Mixed Question Forms
Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));University of Pennsylvania(宾夕法尼亚大学);Huazhong University of Science and Technology(华中科技大学);Hong Kong Polytechnic University(香港理工大学);Nanjing University of Posts and Telecommunications(南京邮电大学)
BrailleLLM: Braille Instruction Tuning with Large Language Models for Braille Domain Tasks
Zhejiang Key Laboratory of Accessible Perception and Intelligent Systems, Zhejiang University(浙江无障碍感知与智能系统重点实验室,浙江大学);Alibaba Group(阿里巴巴集团);Worcester Polytechnic Institute(沃斯特理工学院);Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and DataSecurity(杭州高新技术区(滨江)区块链与数据安全研究院)
Beyond Similarity: A Gradient-based Graph Method for Instruction Tuning Data Selection
Research Center for Social Computing and Information Retrieval, Harbin Institute of Technology(哈尔滨工业大学社会计算与信息检索研究中心);Beijing Academy of Artificial Intelligence(北京人工智能研究院);Du Xiaoman Technology (Beijing) Co., Ltd.(度小满科技(北京)有限公司)
Multilingual Pretraining and Instruction Tuning Improve Cross-Lingual Knowledge Alignment, But Only Shallowly
National Key Laboratory for Novel Software Technology, Nanjing University(南京大学计算机软件新技术国家重点实验室);Department of Linguistics and Translation, City University of Hong Kong(香港城市大学语言学及翻译学系)
Language-Aware Distillation for Multilingual Instruction-Following Speech LLMs with ASR-Only Supervision
College of Computing and Data Science(计算与数据科学学院);Nanyang Technological University(南洋理工大学);AI Singapore(AI新加坡);National University of Singapore(新加坡国立大学);Institute for Infocomm Research (I$^2$R)(信息通信研究所);A$^{*}$STAR(A*星)
Robin3D: Improving 3D Large Language Model via Robust Instruction Tuning
University of Illinois Chicago(伊利诺伊大学芝加哥分校);Zhejiang University(浙江大学);University of Central Florida(中佛罗里达大学);Illinois Institute of Technology(伊利诺伊理工大学)
Enhancing Document-level Translation of Large Language Model via Translation Mixed-instructions
The Key Laboratory of Linguistic and Cultural Computing of Ministry of Education(教育部语言与文化计算重点实验室);Institute of Artificial Intelligence(人工智能研究所);Northwest Minzu University(西北民族大学);Soochow University(苏州大学)
Extrapolating Large Language Models to Non-English by Aligning Languages
Nanjing University(南京大学);Peking University(北京大学);Shanghai AI Lab(上海人工智能实验室);The University of Hong Kong(香港大学);University of California, Santa Barbara(加州大学圣巴巴拉分校)
Prompting Multilingual Large Language Models to Generate Code-Mixed Texts: The Case of South East Asian Languages
Brown University(布朗大学);UC Berkeley(加州大学伯克利分校);University of California, Los Angeles(加州大学洛杉矶分校);HKUST(香港科技大学);Bloomberg(彭博);EleutherAI;Samsung R&D Institute Philippines(三星菲律宾研发中心);Stanford University(斯坦福大学);National University of Singapore(新加坡国立大学);VietAI Research(VietAI研究院);University of Potsdam(波茨坦大学);MBZUAI(穆罕默德·本·扎耶德人工智能大学)
Solla: Towards a Speech-Oriented LLM That Hears Acoustic Context
School of Data Science, Shenzhen Research Institute of Big Data, The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳)数据科学学院、深圳大数据研究院);Bytedance(字节跳动)
A Hybrid Supervised-LLM Pipeline for Actionable Suggestion Mining in Unstructured Customer Reviews
Department of Computer Science & Information Systems, Birla Institute of Technology and Science, Pilani, India(印度比拉理工学院计算机科学与信息系统系);Birdeye Inc.(Birdeye公司)
Autonomous Workflow for Multimodal Fine-Grained Training Assistants Towards Mixed Reality
Centrum Wiskunde & Informatica(数学与计算机科学中心);King Abdullah University of Science and Technology(阿卜杜拉国王科技大学);University College London(伦敦大学学院);Shandong University(山东大学);TU Delft(代尔夫特理工大学)