Skip to main content
QUICK REVIEW

[Paper Review] LESS: Selecting Influential Data for Targeted Instruction Tuning

Mengzhou Xia, Sadhika Malladi|arXiv (Cornell University)|Feb 6, 2024
Intelligent Tutoring Systems and Adaptive LearningComputer Science14 citations
TL;DR

LESS is an optimizer-aware data selection method for targeted instruction tuning that uses Adam-compatible influence estimation and a low-rank gradient datastore to pick a small, highly effective subset of data. It often outperforms training on the full dataset with only 5% of the data and transfers across model sizes and families.

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.

Motivation & Objective

  • Frame targeted instruction tuning as selecting data that minimizes loss on a specific downstream task.
  • Adapt influence-based data selection to Adam and variable-length instruction data.
  • Develop a scalable gradient datastore using LoRA and random projections for efficient data selection.
  • Demonstrate transferability of selected data across model sizes and families.
  • Provide qualitative evidence that LESS selects data aligning with the needed reasoning skills for target tasks.

Proposed method

  • Adapts a first-order training-influence formulation to Adam, defining Inf_Adam as a gradient-based influence metric.
  • Uses LoRA to enable parameter-efficient warmup training for gradient feature extraction.
  • Constructs a gradient datastore by projecting gradients into a low-dimensional space via random projections (Johnson–Lindenstrauss) to enable efficient similarity computations.
  • Computes per-subtask validation gradient averages and scores candidate data using a max over subtasks of Inf_Adam to select a 5% training subset.
  • Performs data selection offline with a selection model M_S and trains the target model M_T on the chosen subset, enabling transfer (LESS-T).
  • Evaluates using three downstream datasets (MMLU, TydiQA, BBH) across multiple base models (Llama-2-7B, Llama-2-13B, Mistral-7B).

Experimental results

Research questions

  • RQ1Can targeted instruction tuning be improved by selecting data that directly minimizes loss on a target validation task?
  • RQ2How can influence-based data selection be made compatible with Adam and variable-length instruction data?
  • RQ3Is a low-dimensional gradient datastore sufficient and efficient for selecting influential data?
  • RQ4Does data selected by a small model transfer effectively to larger models or different model families?
  • RQ5Does LESS select data based on underlying reasoning skills rather than surface cues?

Key findings

  • Training on a 5% LESS-selected subset often outperforms training on the full dataset across diverse tasks and models.
  • Data selected by LESS transfers well: data chosen by a small model boosts performance for larger models and for models from different families.
  • LESS consistently outperforms baselines like random selection, BM25, DSIR, and RDS across MMLU, TydiQA, and BBH.
  • Using a small warmup subset (5%) with multiple gradient checkpoints improves influence estimation and final accuracy; more warmup data and more checkpoints typically help.
  • Qualitative analysis shows LESS selects data that align with the required reasoning skills for the target task, not just surface text similarity.
  • In the transfer setting (LESS-T), data selected with Llama-2-7B gradients yields strong results when training Llama-2-13B or Mistral-7B.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.