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

利用缩放定律标注监督微调数据

Labeling supervised fine-tuning data with the scaling law

Shanghai AI Laboratory(上海人工智能实验室)

Huanjun Kong

AI总结:

针对资源受限场景,本文提出经缩放定律校准的多阶段人工标注方法以获取高质量SFT数据,在多规格Qwen模型上微调后F1最高提升29.07,还开源了相关数据、权重与实验资源。

摘要:

本文提出一种经缩放定律校准的多阶段人工标注方法,为GPU资源匮乏、GPT访问受限、资金不足等资源受限场景提供了高质量监督微调(Supervised Fine-Tuning, SFT)数据获取方案。我们预处理了5.8万条真实聊天数据,并人工标注了2300个问题,随后在参数量从0.5B到32B的Qwen模型上开展微调,最优版本的F1分数提升了29.07,验证了大语言模型(Large Language Model, LLM)微调用于下游自然语言处理(Natural Language Processing, NLP)任务的可行性。本文贡献包括:1)构建了alpaca格式的SFT训练数据,以及一组低秩适配(Low-Rank Adaptation, LoRA)权重;2)提出了一种利用缩放定律原理获取高质量数据的方法。相关脚本、alpaca格式原始数据及实验记录已在Github、HuggingFace和WandB开源,所涉数据隐私已获用户授权,SFT数据及许可来自ncnn贡献者群组。

英文摘要:

This paper introduces a multi-stage manual annotation calibrated by the scaling law, offering a high-quality Supervised Fine-Tuning data acquisition method for environments with constrained resources like GPU poor, limited GPT access, and funding restrictions. We have preprocessed 58k authentic chat data and manually annotated 2.3k questions. After this, we conducted fine-tuning on Qwen models, ranging from 0.5B to 32B parameters. The optimal version improved 29.07 in F1 score. This confirms the viability of fine-tuning Large Language Model (LLM) for downstream Natural Language Processing (NLP) tasks. Our contributions are: 1) Created Supervised Fine-Tuning (SFT) training data in alpaca format, along with a set of Low-Rank Adaptation (LoRA) weights, and 2) Developed a method for acquiring high-quality data leveraging scaling law principle. The script, raw data with alpaca format and experiments track are open-sourced on Github (https://github.com/InternLM/HuixiangDou/tree/main/web/tools), HuggingFace (https://huggingface.co/tpoisonooo) and WandB (https://wandb.ai/tpoisonooo/huixiangdou-cr/table?nw=nwusertpoisonooo). The privacy of the data involved has been authorized by users. SFT data and license comes from ncnn contributors group.

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

↑