TAGCOS: Task-agnostic Gradient Clustered Coreset Selection for Instruction Tuning Data

Jipeng Zhang, Yaxuan Qin, Renjie Pi, Weizhong Zhang, Rui Pan +1 more
7/21/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: 2003pro/TAGCOS (13 stars, last commit 2024-07-21).

Abstract

Instruction tuning has achieved unprecedented success in NLP, turning large language models into versatile chatbots. However, the increasing variety and volume of instruction datasets demand significant computational resources. To address this, it is essential to extract a small and highly informative subset (i.e., Coreset) that achieves comparable performance to the full dataset. Achieving this goal poses non-trivial challenges: 1) data selection requires accurate data representations that reflect the training samples' quality, 2) considering the diverse nature of instruction datasets, and 3) ensuring the efficiency of the coreset selection algorithm for large models. To address these challenges, we propose Task-Agnostic Gradient Clustered COreset Selection (TAGCOS). Specifically, we leverage sample gradients as the data representations, perform clustering to group similar data, and apply an efficient greedy algorithm for coreset selection. Experimental results show that our algorithm, selecting only 5% of the data, surpasses other unsupervised methods and achieves performance close to that of the full dataset.

View on arXivView PDF

Code Implementations(1)

2003pro/TAGCOSCommunity100%

This is the official implementation of TAGCOS: Task-agnostic Gradient Clustered Coreset Selection for Instruction Tuning Data

130Shell, PythonJun 27, 20242 years ago

Cite this paper

@article{zhang2024tagcos,
  title  = {TAGCOS: Task-agnostic Gradient Clustered Coreset Selection for Instruction Tuning Data},
  author = {Jipeng Zhang and Yaxuan Qin and Renjie Pi and Weizhong Zhang and Rui Pan and Tong Zhang},
  year   = {2024},
  eprint = {2407.15235},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.15235v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.15235.svg)](https://codeofpaper.com/paper/2407.15235)

Discussion