JI2S: Joint Influence‐Aware Instruction Data Selection for Efficient Fine‐Tuning

Wei Jia, Bang‐Gui Liu, Tianjiao Wan, Boyu Peng, Xingkong Ma, Mian Guo2025 · DOI

TL;DR

JI²S (Joint Influence-Aware Instruction Data Selection) is a novel framework that identifies the most impactful training samples for LLM instruction tuning by accounting for how data points interact. By selecting just the top 1,000 samples from the 52,000-sample Alpaca dataset, JI²S consistently outperforms full-dataset training and existing selection methods across major benchmarks.

What Problem Does This Paper Address?

Instruction tuning (IT) is the process that transforms a raw base model into a helpful assistant like ChatGPT. While we once thought "more data is better," recent research (like the LIMA paper) proved that 1,000 high-quality, human-curated examples can beat 50,000 noisy, machine-generated ones.

However, manually curating high-quality data is expensive. To automate this, researchers usually use "teacher" models (like GPT-4) to score samples or use "influence functions" to see how much a single sample reduces model loss.

The authors identify two major gaps in these approaches:

  1. Teacher Bias: GPT-based scoring often suffers from "self-enhancement bias" or "verbosity bias," where the model prefers long or familiar-sounding answers rather than truly helpful ones.
  2. The Redundancy Trap: Traditional influence methods look at samples in isolation (marginal influence). If you pick the 1,000 "best" individual samples, you might end up with 1,000 very similar examples. This redundancy wastes training capacity and fails to capture the complex interactions between different types of data.

Methods

The authors introduce JI²S, which moves beyond individual scoring to model joint influence.

The Math: Discrete Derivatives

To understand how samples interact, they use the concept of a discrete derivative. Essentially, they measure the difference between the benefit of training on a group of samples versus the sum of the benefits of training on each sample individually.

Because calculating every possible combination of samples is mathematically impossible (an exponential $2^k$ problem), they use a second-order Taylor expansion to approximate these interactions. This allows them to focus on pairwise interactions—how sample A and sample B influence the model when seen together.

The Pipeline:

  1. LoRA Warm-Up: They fine-tune the base model on a tiny (5%) random slice of the data using Low-Rank Adaptation (LoRA) to get a sense of the "gradient landscape."
  2. Gradient Extraction: They extract the gradients for all training samples and a "proxy" high-quality set (LIMA). To keep things fast, they project these high-dimensional vectors into a smaller 8,192-dimensional space.
  3. Influence Computation: They calculate a score for each sample that combines its individual benefit (marginal influence) and its interaction with other samples (joint influence).
  4. Selection: They rank the samples and pick the top $K$ (usually 1,000).

Datasets

  • Source Pool: Alpaca-52k, a widely used but noisy dataset generated by GPT-3.5.
  • Proxy/Reference Set: LIMA, a set of 1,000 extremely high-quality, human-curated instruction pairs used to define what "good" looks like.
  • Evaluation Benchmarks:
    • Open LLM Benchmarks: ARC (science), HellaSwag (commonsense), MMLU (academic knowledge), and Winogrande (logic).
  • MT-Bench: A benchmark for multi-turn dialogue quality.
  • Pairwise Comparisons: GPT-4-judged "head-to-head" battles against outputs from models trained on Vicuna, Koala, and WizardLM datasets.

Key Insights and Ideas

  • Redundancy is a Penalty: The joint influence term effectively acts as a "diversity filter." If two samples are nearly identical, their joint influence score will be lower, preventing the algorithm from picking both and wasting a slot in the 1,000-sample budget.
  • Model-Centric Selection: Unlike GPT-scoring, which is model-agnostic, JI²S looks at the actual gradients of the specific model being tuned (e.g., LLaMA-2). This ensures the data selected is what that specific model needs to learn most.
  • The "Core and Periphery" Strategy: UMAP visualizations (a way to see high-dimensional data in 2D) show that JI²S doesn't just pick "average" good samples. It picks a mix of "core" samples (prototypical examples) and "peripheral" samples (rare or difficult cases), ensuring broad coverage of the task space.

Key Results

The researchers tested JI²S on LLaMA2-7B, 13B, and Mistral-7B.

  • Efficiency: Training on just 1,000 samples selected by JI²S outperformed training on the full 52,000 Alpaca samples.
  • Superiority over Baselines: On LLaMA2-7B, JI²S achieved an average score of 64.62 on Open LLM Benchmarks, beating other popular selection methods like Alpagasus (63.21) and DEITA (62.33).
  • Dialogue Quality: On MT-Bench, Mistral-7B trained with JI²S-1k scored 5.40, significantly higher than the full-dataset baseline of 4.63.
  • Win Rates: In GPT-4-judged pairwise tests, the JI²S-trained model won or tied against the full Alpaca-52k model over 80% of the time.

Limitations and Future Work

  • Second-Order Limit: The current math only looks at interactions between pairs of samples. In reality, three or more samples might interact in complex ways, but calculating this is currently too computationally expensive.
  • Proxy Dependence: The method relies on having a high-quality "proxy" set like LIMA. If the proxy set is biased or doesn't cover certain domains, the selection process will reflect those gaps.
  • Computational Overhead: While more efficient than full-dataset training, the "warm-up" and gradient extraction phases still require significant GPU time compared to simple heuristic filtering (like picking the longest responses).

Summary updated

Abstract

Instruction tuning (IT) improves large language models (LLMs) by aligning their outputs with human instructions, but its success depends critically on training data quality, and datasets such as Alpaca often contain noisy or suboptimal examples that undermine fine-tuning.Prior selection strategies score samples using general-purpose LLMs (e.g., GPT), leveraging their strong language understanding yet introducing inherent biases that misalign with the target model's behavior and yield unstable downstream performance.Influence-based methods address this by estimating each example's marginal contribution to overall performance, but they typically assume additive contributions and therefore overlook higher-order interactions among samples.To overcome these limitations, we propose JI 2 S, a novel framework that jointly models both marginal and combinatorial influences within sample groups.Applying JI 2 S to select the top 1,000 most influential examples from Alpaca, we fine-tune LLaMA2-7B, Mistral-7B, and LLaMA2-13B and evaluate them on Open LLM Benchmarks, MT-Bench, and GPT-4-judged pairwise comparisons.Our experiments show that JI 2 S consistently outperforms full-dataset training and strong baselines, highlighting the value of capturing joint influence for high-quality instruction fine-tuning.We provide our code in this GitHub repository.
BibTeX
@misc{jia2025ji,
  author = {Wei Jia and Bang‐Gui Liu and Tianjiao Wan and Boyu Peng and Xingkong Ma and Mian Guo},
  title = {{JI2S: Joint Influence‐Aware Instruction Data Selection for Efficient Fine‐Tuning}},
  year = {2025},
  doi = {10.18653/v1/2025.emnlp-main.26},
}
Figure