arXiv:2410.02755cs.CLcs.LG2024-10被引 2

用低成本方法实现与GPT-4o相当的高质量数据筛选能力

GPT-4o as the Gold Standard: A Scalable and General Purpose Approach to Filter Language Model Pretraining Data

  • 结合GPT-4o与轻量模型,通过主动学习逐步训练高效分类器
  • 仅需1%成本完成500次数据筛选,效果接近GPT-4o
  • 适合需要高质量通用或领域特定数据集的研究者使用

大规模语言模型依赖海量高质量训练数据,但对网络规模数据集的有效过滤仍是重大挑战。本文表明,GPT-4o在识别高质量数据方面表现卓越,但其高昂成本使其难以在网页规模上应用。为此提出SIEVE,一种轻量级替代方案,在不足1%的成本下达到GPT-4o的准确率,可执行高达500次筛选操作,成本仅相当于一次GPT-4o调用。核心在于将GPT-4o与轻量文本分类模型无缝结合,利用主动学习以少量GPT-4o调用在后台微调分类模型。模型训练完成后,性能与GPT-4o相当,成本极低。通过不同筛选提示,SIEVE能从网络规模语料中高效提炼通用或专用领域的高质量数据——当前高质量领域数据稀缺背景下尤为关键。大量实验(自动与人工评估)显示,SIEVE与GPT-4o在五个高度特定的筛选任务中表现相近。此外,在DataComp-LM挑战中,针对网页爬取数据的质量筛选,SIEVE进一步优于现有最先进方法。

原文摘要 · Abstract (English)

Large language models require vast amounts of high-quality training data, but effective filtering of web-scale datasets remains a significant challenge. This paper demonstrates that GPT-4o is remarkably effective at identifying high-quality training data, but its prohibitive cost makes it impractical at web-scale. We propose SIEVE, a lightweight alternative that matches GPT-4o accuracy at less than 1\% of the cost. SIEVE can perform up to 500 filtering operations for the cost of one GPT-4o filtering call. The key to SIEVE is a seamless integration of GPT-4o and lightweight text classification models, using active learning to fine-tune these models in the background with a small number of calls to GPT-4o. Once trained, it performs as well as GPT-4o at a tiny fraction of the cost. Through different filtering prompts, SIEVE can efficiently curate high quality data for general or specialized domains from web-scale corpora -- a valuable capability given the current scarcity of high-quality domain-specific datasets. Extensive experiments using automatic and human evaluation metrics show that SIEVE and GPT-4o achieve similar performance on five highly specific filtering prompts. In addition, when performing quality filtering on web crawl datasets, we demonstrate SIEVE can further improve over state-of-the-art quality filtering methods in the DataComp-LM challenge for selecting LLM pretraining data.

数据筛选GPT-4o低成本主动学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。