[edit]
Automatic Pruning of Fine-tuning Datasets for Transformer-based Language Models
Proceedings of The 3rd Conference on Lifelong Learning Agents, PMLR 274:1-28, 2025.
Abstract
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 3Transformer−basedlanguagemodelshaveshownstate−of−the−artperformanceonavarietyofnaturallanguageunderstandingtasks.Toachievethisperformance,thesemodelsarefirstpre−trainedongeneralcorpusandthenfine−tunedondownstreamtasks.Previousworkstudiedtheeffectofpruningthetrainingsetofthedownstreamtasksontheperformanceofthemodelonitsevaluationset.Inthiswork,weproposeanautomaticdatasetpruningmethodforthetrainingsetoffine−tuningtasks.Ourmethodisbasedonthemodel′ssuccessrateincorrectlyclassifyingeachtrainingdatapoint.Unlikepreviousworkwhichreliesonuserfeedbacktodeterminesubsetsize,ourmethodautomaticallyextractstrainingsubsetsthatareadaptedforeachpairofmodelandfine−tuningtask.Ourmethodprovidesmultiplesubsetsforuseindatasetpruningthatnavigatethetrade−offbetweensubsetsizeandevaluationaccuracy.Ourlargestsubset,whichwealsorefertoasthewinningticketsubset,isonaverage3 \\timessmallerthantheoriginaltrainingsetofthefine−tuningtask.Ourexperimentson5downstreamtasksand2languagemodelsshowthat,onaverage,fine−tuningonthewinningticketsubsetsresultsina0.1 \\%$ increase in the evaluation performance of the model.