NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LimaCost: Data Valuation for Instruction Tuning of Large Language Models

Hyeonseok Moon, Jaehyung Seo, Seonmin Koo, Jinsung Kim, Young-kyoung Ham, Jiwon Moon, Heuiseok Lim2025

Abstract

Instruction tuning (IT) is an effective approach for aligning large language models (LLMs) with human intentions. There is ongoing discourse regarding the data quality for IT. As an effort to find the robust criteria of data quality for IT, we introduce LIMACOST, a data quality measure that exhibits a strong correlation with model performance. LIMACOST utilizes the LIMA dataset, whose effectiveness in IT has already been validated by several previous works. LIMACOST then estimates the value of a given data point by estimating how many LIMA data points might be needed to approximate its gradient. Our experiments reveal that LIMACOST enables effective data selection that derives high alignment performance. We demonstrate that selecting data based on high LIMACOST proves to be more effective than existing data selection strategies.

Introduction

Instruction Tuning (IT) is the critical process that transforms raw base models into helpful assistants. While early research focused on massive datasets like the 52k-sample Alpaca set, the landmark LIMA paper demonstrated that "less is more"—1,000 extremely high-quality samples can outperform tens of thousands of mediocre ones.

However, identifying these high-quality samples in the wild remains a challenge. Current methods typically rely on heuristics (easily gamed), LLM-as-a-judge (prohibitively expensive), or model-based signals (often lacking a clear reference). LIMACOST bridges this gap by using the LIMA dataset as a mathematical benchmark for "complexity" and "value," identifying data that provides unique updates not easily covered by existing high-quality samples.

Methodology

The core intuition behind LIMACOST is that a data point is valuable if it forces the model to learn something "complex" that isn't already captured by a known high-quality dataset.

  1. Gradient Vectorization: For a given data point $z$, the authors perform a single training step using LoRA (Low-Rank Adaptation). They track the changes in the LoRA "B" matrix to create a vector $v_z$ representing the "impact" of that data point.
  2. The Comparison Matrix: This process is repeated for the 1,000 samples in the LIMA dataset, creating a reference matrix $L$ of "gold-standard" gradients.
  3. Valuation via Approximation: The method attempts to represent the target data point's gradient ($v_z$) as a linear combination of LIMA gradients.
  4. SparseMax Scoring: Using SparseMax, the system finds the minimum number of LIMA points needed to approximate $v_z$. A high LIMACOST indicates the data point is "complex" and contains unique, high-quality information.
The LIMACOST pipeline: Gradient Vectorization (left) and Valuation of target data points using the LIMA Comparison Matrix (right).

Experimental Results

The authors applied LIMACOST to filter Alpaca-gpt4 (52k samples) and WizardLM/EvolInstruct (70k samples), training Llama-2-7B and Mistral-7B models on the top-selected 1,000 samples.

Performance comparison across Koala, SelfInst, and MT-Bench benchmarks. LIMACOST-selected data consistently outperforms random selection and the LIMA baseline.

Key Insights

  • Superior Performance: LIMACOST-selected data consistently outperformed models trained on the original LIMA dataset and those selected by other popular methods like SelectIT and NUGGETS.
  • Breaking Verbosity Bias: Qualitative analysis shows that LIMACOST rewards structured complexity (like lists and multi-step plans) rather than just "fluff," avoiding the common trap where models prefer longer, lower-quality responses.
  • Cost Efficiency: Calculating LIMACOST is remarkably cheap. For the Alpaca-gpt4 set, LIMACOST cost roughly $7.74 in GPU time, compared to an estimated $445.73 for LLM-based estimation methods.
  • Layer Sensitivity: The authors found that tracking parameter changes in the first layer of the model provided a much stronger signal for data quality than tracking the middle or last layers.

Conclusion and Limitations

LIMACOST demonstrates that a "gold" dataset can be used as a mathematical basis for valuing other data, rather than just for training. While highly effective, the method relies on the quality of the reference Comparison Matrix; if the reference dataset (LIMA) has its own biases, LIMACOST might propagate them. Future work will explore LIMACOST's performance in specialized domains like coding or mathematics.

Paper Citation: Moon, H., et al. (2025). LIMACOST: Data Valuation for Instruction Tuning of Large Language Models. Findings of the Association for Computational Linguistics: EMNLP 2025, 12841–12854.

Summary updated

BibTeX
@misc{moon2025limacost,
  author = {Hyeonseok Moon and Jaehyung Seo and Seonmin Koo and Jinsung Kim and Young-kyoung Ham and Jiwon Moon and Heuiseok Lim},
  title = {{LimaCost: Data Valuation for Instruction Tuning of Large Language Models}},
  year = {2025},
  doi = {10.18653/v1/2025.findings-emnlp.688},
}
Figure