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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Tayaranian, Mohammadreza, Mozafari, Seyyed Hasan, Meyer, Brett H., Clark, James J., Gross, Warren J.
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866929418349314048
author Tayaranian, Mohammadreza
Mozafari, Seyyed Hasan
Meyer, Brett H.
Clark, James J.
Gross, Warren J.
author_facet Tayaranian, Mohammadreza
Mozafari, Seyyed Hasan
Meyer, Brett H.
Clark, James J.
Gross, Warren J.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2407_08887
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Automatic Pruning of Fine-tuning Datasets for Transformer-based Language Models
Tayaranian, Mohammadreza
Mozafari, Seyyed Hasan
Meyer, Brett H.
Clark, James J.
Gross, Warren J.
Computation and Language
Machine Learning
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.
title Automatic Pruning of Fine-tuning Datasets for Transformer-based Language Models
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2407.08887