LESS: Selecting Influential Data for Targeted Instruction Tuning
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Mathematical Reasoning | GSM8K (test) | Accuracy71.6 | 751 | |
| Mathematical Reasoning | MATH (test) | Overall Accuracy38.9 | 433 | |
| Instruction Following | AlpacaEval 2.0 | LC Win Rate31.51 | 281 | |
| Science Question Answering | ARC Challenge | Accuracy55.12 | 234 | |
| LLM Safety | Safety Evaluation Set | Harmful Response Rate2.51 | 25 | |
| Multi-task Language Understanding | MMLU | MMLU Score64.29 | 14 | |
| Mathematical Reasoning | GSM8K | GSM8K Accuracy55.95 | 14 | |
| Domain Adaptation | MedQA, LegalBench, FinQA | MedQA Score62.3 | 14 | |
| General Capability Retention | GSM8K, MMLU, ARC-C | GSM8K60.1 | 14 | |
| Zero-shot Evaluation | lm-evaluation-harness (SciQ, ARC-E, ARC-C, LogiQA, OBQA, BoolQ, HellaSwag, PIQA, WinoGrande) zero-shot | SciQ Accuracy64.6 | 13 |