Diversity Measurement and Subset Selection for Instruction Tuning Datasets
Peiqi Wang, Yikang Shen, Zhen Guo, Matthew Stallone, Yoon Kim, Polina Golland, Rameswar Panda
TL;DR
This work introduces a deterministic point process framework to select instruction tuning data subsets with a focus on diversity and data quality. It defines a log determinant distance (LDD) to quantify dataset diversity and demonstrates that LDD correlates with downstream instruction-following performance when using weight-gradient representations projected via Johnson-Lindenstrauss transforms. The approach combines a kernelized DPP with a greedy MAP inference to produce scalable subset selection and provides practical guidance on when diversity or quality should dominate the data budget. Empirically, the method shows meaningful gains on several instruction tuning datasets and offers insights into curation strategies, including how more diverse sources and higher-quality prompts affect model behavior. The results support a data-efficient pathway for instruction tuning and supply a framework for comparing and analyzing instruction datasets and preference data in NLP systems.
Abstract
We aim to select data subsets for the fine-tuning of large language models to more effectively follow instructions. Prior work has emphasized the importance of diversity in dataset curation but relied on heuristics such as the number of tasks. In this paper, we use determinantal point processes to capture the diversity and quality of instruction tuning datasets for subset selection. We propose to measure dataset diversity with log determinant distance that is the distance between the dataset of interest and a maximally diverse reference dataset. Our experiments demonstrate that the proposed diversity measure in the normalized weight gradient space is correlated with downstream instruction-following performance. Consequently, it can be used to inform when data selection is the most helpful and to analyze dataset curation strategies. We demonstrate the utility of our approach on various instruction tuning datasets.
