Papers › LESS: Selecting Influential Data for Targeted Instruction Tuning

LESS: Selecting Influential Data for Targeted Instruction Tuning

6 Feb 2024arXiv:2402.04333archive 2025-07-28

Mengzhou Xia, Sadhika Malladi, Suchin Gururangan, Sanjeev Arora, Danqi Chen

Instruction tuning has unlocked powerful capabilities in large language models (LLMs), effectively using combined datasets to develop generalpurpose chatbots. However, real-world applications often require a specialized suite of skills (e.g., reasoning). The challenge lies in identifying the most relevant data from these extensive datasets to effectively develop specific capabilities, a setting we frame as targeted instruction tuning. We propose LESS, an optimizer-aware and practically efficient algorithm to effectively estimate data influences and perform Low-rank gradiEnt Similarity Search for instruction data selection. Crucially, LESS adapts existing influence formulations to work with the Adam optimizer and variable-length instruction data. LESS first constructs a highly reusable and transferable gradient datastore with low-dimensional gradient features and then selects examples based on their similarity to few-shot examples embodying a specific capability. Experiments show that training on a LESS-selected 5% of the data can often outperform training on the full dataset across diverse downstream tasks. Furthermore, the selected data is highly transferable: smaller models can be leveraged to select useful data for larger models and models from different families. Our qualitative analysis shows that our method goes beyond surface form cues to identify data that exemplifies the necessary reasoning skills for the intended downstream application.

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="2402.04333")

Code

Syntology Ran 2 of 15 code samples harvested from 2 repositories linked to this paper; 13 have no recorded run. Of those that ran: 1 ran · fixture could not drive it; 1 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 1 ran; community (archive-listed): 1 sample from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

princeton-nlp/less officialmentioned in papermentioned on GitHubpytorchMIT report
oseyosey/ccds mentioned on GitHubpytorchApache-2.0 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

15 samples harvested; 2 ran; 0 honoured the contract we drafted; 13 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.

1ran · fixture could not drive it
1ran
13unverified

Licence: 1 of the 15 samples is 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

get_bbh_dataset princeton-nlp/less/less/data_selection/get_validation_dataset.py official repository ran MIT (permissive) · a0e56e68f27c8749 · report
calculate_influence_score princeton-nlp/less/less/data_selection/matching.py official repository unverified MIT (permissive) · 8553c4772e3764ad · report
count_lines princeton-nlp/less/less/data_selection/write_selected_data.py official repository unverified MIT (permissive) · 44e3cec9ab30944c · report
dispatch_openai_chat_requesets princeton-nlp/less/evaluation/eval/dispatch_openai_requests.py official repository unverified MIT (permissive) · dfe736d72f7fb77f · report
dispatch_openai_prompt_requesets princeton-nlp/less/evaluation/eval/dispatch_openai_requests.py official repository unverified MIT (permissive) · 394a6cf6a2b821be · report
encode_data princeton-nlp/less/less/data_selection/get_training_dataset.py official repository unverified MIT (permissive) · 25035506ff07d0a3 · report
get_data_statistics princeton-nlp/less/less/train/data_arguments.py official repository unverified MIT (permissive) · fc5b455108e53a6e · report
get_max_saved_index princeton-nlp/less/less/data_selection/collect_grad_reps.py official repository unverified MIT (permissive) · ed43dd7816626e87 · report
get_output princeton-nlp/less/less/data_selection/collect_grad_reps.py official repository unverified MIT (permissive) · 808c09bce5840bb9 · report
get_training_dataset princeton-nlp/less/less/data_selection/get_training_dataset.py official repository unverified MIT (permissive) · 60e79b646b63ed0d · report
get_tydiqa_dataset princeton-nlp/less/less/data_selection/get_validation_dataset.py official repository unverified MIT (permissive) · 876de2383ce7af06 · report
load_raw_dataset princeton-nlp/less/less/data_selection/get_training_dataset.py official repository unverified MIT (permissive) · 312258b87e676409 · report
none_or_str princeton-nlp/less/less/train/data_arguments.py official repository unverified MIT (permissive) · 12b6473bde25b1dd · report
tokenize princeton-nlp/less/less/data_selection/get_validation_dataset.py official repository unverified MIT (permissive) · 5d4f58c63866080e · report
mean_pool hamishivi/automated-instruction-selection/minimal_multitask/compute_influence_ccds_embedding.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · 2f322da1192bcee1 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Adam

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