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

以更少获更多:大语言模型微调预热中有原则的数据选择

Get more for less: Principled Data Selection for Warming Up Fine-Tuning in LLMs

Virginia Tech(弗吉尼亚理工大学);Columbia University(哥伦比亚大学);Amazon(亚马逊公司)

Feiyang Kang, Hoang Anh Just, Yifan Sun, Himanshu Jahagirdar, Yuanzhi Zhang, Rongxing Du, Anit Kumar Sahu, Ruoxi Jia

AI总结:

本文提出一种有原则的数据选择方法,通过选择能将预训练分布拉近目标分布的无标签开放数据来预热微调大语言模型,在多种任务上以更低成本和更快速度超越现有选择方法。

摘要:

本工作聚焦于利用并从海量、无标签的开放数据中选择数据,以对预训练语言模型进行预微调。其目标是在达到期望性能水平的同时,尽量减少后续微调对昂贵的领域特定数据的需求。虽然许多数据选择算法是为小规模应用设计的,因此不适合我们的场景,但一些新兴方法确实适用于语言数据规模。然而,它们通常优先选择与目标分布一致的数据。虽然这种策略在从头训练模型时可能有效,但当模型已经在不同分布上进行了预训练时,其效果可能有限。与先前工作不同,我们的核心思想是选择那些能将预训练分布向目标分布拉近的数据。我们证明了该方法在某些条件下对微调任务的最优性。我们在多种任务(自然语言理解、自然语言生成、零样本)上验证了所提方法的有效性,模型规模最高达2.7B,结果表明它持续优于其他选择方法。此外,我们提出的方法比现有技术显著更快,可在单个GPU小时内扩展到数百万样本。我们的代码已开源(代码仓库:https://anonymous.4open.science/r/DV4LLM-D761/ )。虽然微调在提升多种任务性能方面具有巨大潜力,但其相关成本往往限制了其广泛采用;通过本工作,我们希望为具有成本效益的微调奠定基础,使其益处更易获得。

英文摘要:

This work focuses on leveraging and selecting from vast, unlabeled, open data to pre-fine-tune a pre-trained language model. The goal is to minimize the need for costly domain-specific data for subsequent fine-tuning while achieving desired performance levels. While many data selection algorithms have been designed for small-scale applications, rendering them unsuitable for our context, some emerging methods do cater to language data scales. However, they often prioritize data that aligns with the target distribution. While this strategy may be effective when training a model from scratch, it can yield limited results when the model has already been pre-trained on a different distribution. Differing from prior work, our key idea is to select data that nudges the pre-training distribution closer to the target distribution. We show the optimality of this approach for fine-tuning tasks under certain conditions. We demonstrate the efficacy of our methodology across a diverse array of tasks (NLU, NLG, zero-shot) with models up to 2.7B, showing that it consistently surpasses other selection methods. Moreover, our proposed method is significantly faster than existing techniques, scaling to millions of samples within a single GPU hour. Our code is open-sourced (Code repository: https://anonymous.4open.science/r/DV4LLM-D761/ ). While fine-tuning offers significant potential for enhancing performance across diverse tasks, its associated costs often limit its widespread adoption; with this work, we hope to lay the groundwork for cost-effective fine-tuning, making its benefits more accessible.

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

↑