TSDS: Data Selection for Task-Specific Model Finetuning

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Liu, Zifan, Karbasi, Amin, Rekatsinas, Theodoros
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915080182956032
author Liu, Zifan
Karbasi, Amin
Rekatsinas, Theodoros
author_facet Liu, Zifan
Karbasi, Amin
Rekatsinas, Theodoros
contents Finetuning foundation models for specific tasks is an emerging paradigm in modern machine learning. The efficacy of task-specific finetuning largely depends on the selection of appropriate training data. We present TSDS (Task-Specific Data Selection), a framework to select data for task-specific model finetuning, guided by a small but representative set of examples from the target task. To do so, we formulate data selection for task-specific finetuning as an optimization problem with a distribution alignment loss based on optimal transport to capture the discrepancy between the selected data and the target distribution. In addition, we add a regularizer to encourage the diversity of the selected data and incorporate kernel density estimation into the regularizer to reduce the negative effects of near-duplicates among the candidate data. We connect our optimization problem to nearest neighbor search and design efficient algorithms to compute the optimal solution based on approximate nearest neighbor search techniques. We evaluate our method on data selection for both continued pretraining and instruction tuning of language models. We show that instruction tuning using data selected by our method with a 1% selection ratio often outperforms using the full dataset and beats the baseline selection methods by 1.5 points in F1 score on average.
format Preprint
id arxiv_https___arxiv_org_abs_2410_11303
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle TSDS: Data Selection for Task-Specific Model Finetuning
Liu, Zifan
Karbasi, Amin
Rekatsinas, Theodoros
Machine Learning
Artificial Intelligence
Computation and Language
68T50, 68T01
I.2.6; I.2.7
Finetuning foundation models for specific tasks is an emerging paradigm in modern machine learning. The efficacy of task-specific finetuning largely depends on the selection of appropriate training data. We present TSDS (Task-Specific Data Selection), a framework to select data for task-specific model finetuning, guided by a small but representative set of examples from the target task. To do so, we formulate data selection for task-specific finetuning as an optimization problem with a distribution alignment loss based on optimal transport to capture the discrepancy between the selected data and the target distribution. In addition, we add a regularizer to encourage the diversity of the selected data and incorporate kernel density estimation into the regularizer to reduce the negative effects of near-duplicates among the candidate data. We connect our optimization problem to nearest neighbor search and design efficient algorithms to compute the optimal solution based on approximate nearest neighbor search techniques. We evaluate our method on data selection for both continued pretraining and instruction tuning of language models. We show that instruction tuning using data selected by our method with a 1% selection ratio often outperforms using the full dataset and beats the baseline selection methods by 1.5 points in F1 score on average.
title TSDS: Data Selection for Task-Specific Model Finetuning
topic Machine Learning
Artificial Intelligence
Computation and Language
68T50, 68T01
I.2.6; I.2.7
url https://arxiv.org/abs/2410.11303