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

面向基于Transformer的语言模型的微调数据集自动剪枝

Automatic Pruning of Fine-tuning Datasets for Transformer-based Language Models

McGill University(麦吉尔大学)

Mohammadreza Tayaranian, Seyyed Hasan Mozafari, Brett H. Meyer, James J. Clark, Warren J. Gross

AI总结:

本研究提出一种基于训练样本分类成功率的微调数据集自动剪枝方法,可自动生成适配不同模型与任务的多个剪枝子集,在5项下游任务上验证了剪枝后训练集更小且性能略有提升的效果。

摘要:

基于Transformer的语言模型已在多种自然语言理解任务上展现出当前最优性能。为实现该性能,这类模型首先在通用语料上预训练,随后在下游任务上微调。已有研究探讨了剪枝下游任务训练集对模型在其评估集上性能的影响。本研究提出一种面向微调任务训练集的自动数据集剪枝方法。该方法基于模型正确分类每个训练数据点的成功率设计。与依赖用户反馈确定子集规模的已有工作不同,本方法可自动提取适配每一组模型与微调任务的训练子集。该方法提供多个可用于数据集剪枝的子集,可在子集规模与评估准确率之间实现权衡。我们提出的最大子集(也称为“中奖彩票子集”)平均比微调任务的原始训练集小3倍。我们在5项下游任务、2个语言模型上开展的实验表明,在中奖彩票子集上进行微调平均可使模型的评估性能提升0.1%。

英文摘要:

Transformer-based language models have shown state-of-the-art performance on a variety of natural language understanding tasks. To achieve this performance, these models are first pre-trained on general corpus and then fine-tuned on downstream tasks. Previous work studied the effect of pruning the training set of the downstream tasks on the performance of the model on its evaluation set. In this work, we propose an automatic dataset pruning method for the training set of fine-tuning tasks. Our method is based on the model's success rate in correctly classifying each training data point. Unlike previous work which relies on user feedback to determine subset size, our method automatically extracts training subsets that are adapted for each pair of model and fine-tuning task. Our method provides multiple subsets for use in dataset pruning that navigate the trade-off between subset size and evaluation accuracy. Our largest subset, which we also refer to as the winning ticket subset, is on average $3 \times$ smaller than the original training set of the fine-tuning task. Our experiments on 5 downstream tasks and 2 language models show that, on average, fine-tuning on the winning ticket subsets results in a $0.1 \%$ increase in the evaluation performance of the model.

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

↑