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

计算受限的数据选择

Compute-Constrained Data Selection

Johns Hopkins University(约翰斯·霍普金斯大学);Cornell University(康奈尔大学)

Junjie Oscar Yin, Alexander M. Rush

AI总结:

本文研究计算预算约束下的数据选择问题,通过成本感知效用函数建模选择与训练的权衡,实验发现廉价数据选择方法通常比昂贵方法更具计算最优性,并给出了困惑度和梯度方法的模型规模比阈值。

摘要:

数据选择可以减少微调大语言模型所需的训练数据量;然而,数据选择的效能直接随其计算开销而扩展。受计算受限微调这一实际挑战的驱动,我们考虑数据选择成本与训练成本均受预算约束的设定。我们首先用成本感知的效用函数形式化数据选择问题,并将数据选择问题建模为在初始选择成本与训练收益之间进行权衡。我们在多个任务上进行了全面的实验扫描,通过扩展微调token数量、模型规模和数据选择计算量来改变计算预算。有趣的是,我们发现许多强大的数据选择方法几乎从来都不是计算最优的,而更廉价的数据选择替代方案在理论和实证角度上都占据主导地位。对于计算最优的训练,我们发现基于困惑度和梯度的数据选择分别需要训练模型与选择模型规模之比达到5倍和10倍。

英文摘要:

Data selection can reduce the amount of training data needed to finetune LLMs; however, the efficacy of data selection scales directly with its compute. Motivated by the practical challenge of compute-constrained finetuning, we consider the setting in which both the cost of selecting data and training are budgeted for. We first formalize the problem of data selection with a cost-aware utility function, and model the data selection problem as trading off initial-selection cost for training gain. We run a comprehensive sweep of experiments across multiple tasks, varying compute budget by scaling finetuning tokens, model sizes, and data selection compute. Interestingly we find that many powerful data selection methods are almost never compute-optimal, and that cheaper data selection alternatives dominate both from a theoretical and empirical perspective. For compute-optimal training, we find that perplexity and gradient data selection require training-to-selection model size ratios of 5x and 10x, respectively.

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

↑