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

使用迁移Shapley值进行大语言模型微调的数据选择

Data Selection for Fine-tuning Large Language Models Using Transferred Shapley Values

University of Virginia(弗吉尼亚大学)

Stephanie Schoch, Ritwick Mishra, Yangfeng Ji

AI总结:

针对Shapley值计算成本高难以用于大模型微调数据选择的问题,提出TS-DShapley算法,通过采样聚合和值迁移降低计算开销,在NLU基准上优于现有方法并提升模型性能。

摘要:

尽管Shapley值已被证明在识别有害训练实例方面非常有效,但数据集规模和模型复杂度的限制使得基于Shapley值的数据估值方法难以应用于大型预训练语言模型的微调。为解决这一问题,我们提出了TS-DShapley算法,该算法通过以下两种方式降低基于Shapley值的数据估值计算成本:1) 一种高效的基于采样的方法,聚合从子集计算得到的Shapley值,用于对整个训练集进行估值;2) 一种值迁移方法,利用从使用目标语言模型表示训练得到的简单分类器中提取的值信息。我们应用TS-DShapley为基于BERT的语言模型在基准自然语言理解(NLU)数据集上的微调选择数据的实验表明,TS-DShapley优于现有的数据选择方法。此外,与使用完整微调数据集进行训练相比,TS-DShapley能够过滤微调数据,从而提升语言模型的性能。

英文摘要:

Although Shapley values have been shown to be highly effective for identifying harmful training instances, dataset size and model complexity constraints limit the ability to apply Shapley-based data valuation to fine-tuning large pre-trained language models. To address this, we propose TS-DShapley, an algorithm that reduces computational cost of Shapley-based data valuation through: 1) an efficient sampling-based method that aggregates Shapley values computed from subsets for valuation of the entire training set, and 2) a value transfer method that leverages value information extracted from a simple classifier trained using representations from the target language model. Our experiments applying TS-DShapley to select data for fine-tuning BERT-based language models on benchmark natural language understanding (NLU) datasets show that TS-DShapley outperforms existing data selection methods. Further, TS-DShapley can filter fine-tuning data to increase language model performance compared to training with the full fine-tuning dataset.

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

↑