Uncertainty-Aware Gradient Signal-to-Noise Data Selection for Instruction Tuning
Zhihang Yuan, Chengyu Yue, Long Huang, Litu Ou, Lei Shi
TL;DR
Instruction tuning datasets are large, noisy, and redundant, making full-data fine-tuning costly. GradFiltering introduces an uncertainty-aware, gradient-based data selection framework that uses a LoRA ensemble on a frozen backbone and a small GPT-2 proxy to compute per-example gradients, summarized as the Gradient Signal-to-Noise Ratio (G-SNR). By combining early-to-late gradient drops with ensemble disagreement, G-SNR ranks data points in an objective-agnostic way and yields high-quality subsets that often match or exceed full-data performance while converging faster. Empirical results on Alpaca and Alpaca-GPT4 with LLaMA-2 backbones show robust gains over random and strong baselines, with human judgments corroborating the improvements, highlighting the practical impact for scalable instruction tuning.
Abstract
Instruction tuning is a standard paradigm for adapting large language models (LLMs), but modern instruction datasets are large, noisy, and redundant, making full-data fine-tuning costly and often unnecessary. Existing data selection methods either build expensive gradient datastores or assign static scores from a weak proxy, largely ignoring evolving uncertainty, and thus missing a key source of LLM interpretability. We propose GRADFILTERING, an objective-agnostic, uncertainty-aware data selection framework that utilizes a small GPT-2 proxy with a LoRA ensemble and aggregates per-example gradients into a Gradient Signal-to-Noise Ratio (G-SNR) utility. Our method matches or surpasses random subsets and strong baselines in most LLM-as-a-judge evaluations as well as in human assessment. Moreover, GRADFILTERING-selected subsets converge faster than competitive filters under the same compute budget, reflecting the benefit of uncertainty-aware scoring.
