MIG: Automatic Data Selection for Instruction Tuning by Maximizing Information Gain in Semantic Space

Yicheng Chen, Yining Li, Kai Hu, Zerun Ma, Haochen Ye +1 more
4/18/2025
cs.CLcs.AI

No official code found. Best implementation: yichengchen24/MIG (29 stars, last commit 2025-08-30).

Abstract

Data quality and diversity are key to the construction of effective instruction-tuning datasets. % With the increasing availability of open-source instruction-tuning datasets, it is advantageous to automatically select high-quality and diverse subsets from a vast amount of data. % Existing methods typically prioritize instance quality and use heuristic rules to maintain diversity. % However, this absence of a comprehensive view of the entire collection often leads to suboptimal results. % Moreover, heuristic rules generally focus on distance or clustering within the embedding space, which fails to accurately capture the intent of complex instructions in the semantic space. % To bridge this gap, we propose a unified method for quantifying the information content of datasets. This method models the semantic space by constructing a label graph and quantifies diversity based on the distribution of information within the graph. % Based on such a measurement, we further introduce an efficient sampling method that selects data samples iteratively to \textbf{M}aximize the \textbf{I}nformation \textbf{G}ain (MIG) in semantic space. % Experiments on various datasets and base models demonstrate that MIG consistently outperforms state-of-the-art methods. % Notably, the model fine-tuned with 5\% Tulu3 data sampled by MIG achieves comparable performance to the official SFT model trained on the full dataset, with improvements of +5.73\% on AlpacaEval and +6.89\% on Wildbench.

View on arXivView PDF

Code Implementations(1)

yichengchen24/MIGCommunity62%

[ACL2025 Findings] Official code for MIG: Automatic Data Selection for Instruction Tuning by Maximizing Information Gain in Semantic Space

292PythonApr 14, 20251 years ago
data-selectioninstruction-tuningllms

Similar Papers

Cite this paper

@article{chen2025mig,
  title  = {MIG: Automatic Data Selection for Instruction Tuning by Maximizing Information Gain in Semantic Space},
  author = {Yicheng Chen and Yining Li and Kai Hu and Zerun Ma and Haochen Ye and Kai Chen},
  year   = {2025},
  eprint = {2504.13835},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.13835v1}
}

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

Discussion