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

利用网络爬取数据实现高质量微调

Leveraging Web-Crawled Data for High-Quality Fine-Tuning

Baidu Inc.(百度公司);Xiaodu Technology(小度科技)

Jing Zhou, Chenglin Jiang, Wei Shen, Xiao Zhou, Xiaonan He

AI总结:

本研究针对大模型微调依赖高成本标注或GPT-4生成数据的问题,提出将网络爬取数据与小规模高质量数据对齐构建配对数据集,训练模型转换低质量网络数据用于微调,7B模型在中文数学题上超仅用高质量数据训练9.4%,性能优于32B级开源模型及GPT-3.5。

摘要:

大多数大语言模型的微调要么使用成本高昂的人工标注数据,要么采用GPT-4生成的数据,而后者无法保证在特定领域的性能。我们认为,尽管网络爬取数据常存在格式错误进而导致语义不准确,但它仍可作为特定领域高质量监督微调的宝贵数据源,无需依赖GPT-4这类先进模型。为此,我们通过将网络爬取数据与小规模高质量数据对齐,自动构建了一个配对训练数据集。基于该数据集训练语言模型后,我们可将格式不规范的网络数据转化为高质量数据。实验结果表明,使用经该模型转换的数据训练可取得更优效果,在中文数学题任务上的平均得分较仅使用高质量数据训练高出9.4%。此外,我们的7B模型性能优于多个参数量大于32B的开源模型,并且超越了GPT-3.5等知名闭源模型,充分彰显了我们方法的有效性。

英文摘要:

Most large language models are fine-tuned using either expensive human-annotated data or GPT-4 generated data which cannot guarantee performance in certain domains. We argue that although the web-crawled data often has formatting errors causing semantic inaccuracies, it can still serve as a valuable source for high-quality supervised fine-tuning in specific domains without relying on advanced models like GPT-4. To this end, we create a paired training dataset automatically by aligning web-crawled data with a smaller set of high-quality data. By training a language model on this dataset, we can convert web data with irregular formats into high-quality ones. Our experiments show that training with the model-transformed data yields better results, surpassing training with only high-quality data by an average score of 9.4% in Chinese math problems. Additionally, our 7B model outperforms several open-source models larger than 32B and surpasses well-known closed-source models such as GPT-3.5, highlighting the efficacy of our approach.

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

↑