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

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

21 Jul 2024arXiv:2407.15235archive 2025-07-28

Jipeng Zhang, Yaxuan Qin, Renjie Pi, Weizhong Zhang, Rui Pan, Tong Zhang

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2407.15235")

Code

Syntology Ran 5 of 16 code samples harvested from 1 repository linked to this paper; 11 have no recorded run. Of those that ran: 5 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

2003pro/tagcos officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 5 ran; 0 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

5ran
11unverified

Licence: 16 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2003pro/tagcos. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

OrthogonalMP_REG_Parallel 2003pro/tagcos/utils/omp.py official repository ran no licence file found · pointer only · 9156cc2e9bf4b792 · report
get_bbh_dataset 2003pro/tagcos/data_selection/get_validation_dataset.py official repository ran no licence file found · pointer only · a0e56e68f27c8749 · report
get_tydiqa_dataset 2003pro/tagcos/data_selection/get_validation_dataset.py official repository ran no licence file found · pointer only · d892e897cba5c5c8 · report
load_embedding_batch 2003pro/tagcos/utils/omp.py official repository ran no licence file found · pointer only · 20318f8ce08c207c · report
make_sample 2003pro/tagcos/script/split_sharegpt_conversations.py official repository ran no licence file found · pointer only · f548a6791aa8e216 · report
encode_data 2003pro/tagcos/data_selection/get_training_dataset.py official repository unverified no licence file found · pointer only · 25035506ff07d0a3 · report
get_data_statistics 2003pro/tagcos/train/data_arguments.py official repository unverified no licence file found · pointer only · fc5b455108e53a6e · report
get_max_saved_index 2003pro/tagcos/data_selection/collect_grad_reps.py official repository unverified no licence file found · pointer only · ed43dd7816626e87 · report
get_output 2003pro/tagcos/data_selection/collect_grad_reps.py official repository unverified no licence file found · pointer only · 808c09bce5840bb9 · report
get_training_dataset 2003pro/tagcos/data_selection/get_training_dataset.py official repository unverified no licence file found · pointer only · 60e79b646b63ed0d · report
load_raw_dataset 2003pro/tagcos/data_selection/get_training_dataset.py official repository unverified no licence file found · pointer only · 312258b87e676409 · report
none_or_str 2003pro/tagcos/train/data_arguments.py official repository unverified no licence file found · pointer only · 12b6473bde25b1dd · report
should_be_filtered 2003pro/tagcos/utils/reformat_datasets.py official repository unverified no licence file found · pointer only · 08f4816632095bc7 · report
split_all 2003pro/tagcos/script/split_sharegpt_conversations.py official repository unverified no licence file found · pointer only · 7a3f5964eb76ddf3 · report
split_one_sample 2003pro/tagcos/script/split_sharegpt_conversations.py official repository unverified no licence file found · pointer only · 6e9bdd644dfa7113 · report
tokenize 2003pro/tagcos/data_selection/get_validation_dataset.py official repository unverified no licence file found · pointer only · 5d4f58c63866080e · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections