LESS: Selecting Influential Data for Targeted Instruction Tuning

Mengzhou Xia, Sadhika Malladi, Suchin Gururangan, Sanjeev Arora, Danqi Chen
2/6/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: princeton-nlp/LESS (532 stars, MIT, last commit 2024-10-20).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

princeton-nlp/LESSCommunity100%
MIT

[ICML 2024] LESS: Selecting Influential Data for Targeted Instruction Tuning

53247Shell, PythonJan 24, 20242 years agoMIT
datadata-selectioninfluenceinstruction-tuningllama+2 more

Similar Papers

Cite this paper

@article{xia2024less,
  title  = {LESS: Selecting Influential Data for Targeted Instruction Tuning},
  author = {Mengzhou Xia and Sadhika Malladi and Suchin Gururangan and Sanjeev Arora and Danqi Chen},
  year   = {2024},
  eprint = {2402.04333},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.04333v3},
  journal = {ICML 2024 2024}
}

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/2402.04333.svg)](https://codeofpaper.com/paper/2402.04333)

Discussion