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

高效估计语言模型微调的数据效率

Efficiently Estimating Data Efficiency for Language Model Fine-tuning

University of Toronto(多伦多大学)

Gyung Hyun Je, Colin Raffel

AI总结:

本文提出通过梯度余弦相似度预测语言模型微调的数据效率,减少不必要的标注成本。

摘要:

尽管大型语言模型(LLMs)在许多下游任务中表现出合理的零样本能力,但微调是提高其性能的常见实践。然而,一个任务的数据效率——即达到期望性能所需的微调示例数量——通常是未知的,导致成本高昂的增量标注和重新训练循环。事实上,我们在精心挑选的30个专业化任务集上证明,高性能LLMs可能在零样本情况下表现不佳,但在微调后可以取得更强的性能。这促使了需要方法来预测任务的数据效率,而无需增量标注。在引入一个具体的度量标准来量化任务的数据效率后,我们提出使用低置信度示例的梯度余弦相似度,基于少量标记样本预测数据效率。我们在具有不同数据效率的任务集上验证了我们的方法,总体数据效率预测误差率为8.6%,通常每个任务消除数百个不必要的标注。我们的实验结果和实现代码可在GitHub上获得。

英文摘要:

While large language models (LLMs) demonstrate reasonable zero-shot capability across many downstream tasks, fine-tuning is a common practice to improve their performance. However, a task's data efficiency--i.e., the number of fine-tuning examples needed to achieve a desired level of performance--is often unknown, resulting in costly cycles of incremental annotation and retraining. Indeed, we demonstrate across a curated set of 30 specialized tasks that performant LLMs may struggle zero-shot but can attain stronger performance after fine-tuning. This motivates the need for methods to predict a task's data efficiency without requiring incremental annotation. After introducing a concrete metric that quantifies a task's data efficiency, we propose using the gradient cosine similarity of low-confidence examples to predict data efficiency based on a small number of labeled samples. We validate our approach on a diverse set of tasks with varying data efficiencies, attaining 8.6% error in overall data efficiency prediction and typically eliminating hundreds of unnecessary annotations on each task. Our experiment results and implementation code are available on GitHub.

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

↑