Task--Specificity Score: Measuring How Much Instructions Really Matter for Supervision
Pritam Kadasi, Abhishek Upperwal, Mayank Singh
TL;DR
This work tackles the problem of weak instruction definitions in instruction tuning by introducing Task--Specificity Score (TSS), a model-based, instance-level measure of how much an instruction actually constrains the desired output among plausible alternatives. It further extends to TSS++, a quality-aware, contrastive variant that leverages hard negatives to robustly assess specificity. Through extensive experiments on Alpaca, Dolly-15k, and NI-20 corpora with open models like Gemma, LLaMA, and Qwen, the authors show that prioritizing high-specificity examples improves data efficiency under budget constraints and often complements traditional quality-based filters such as perplexity and IFD. The results demonstrate that instruction specificity is a distinct, practically useful signal for data curation in instruction tuning, enabling better generalization under limited budgets and guiding future data-selection strategies.
Abstract
Instruction tuning is now the default way to train and adapt large language models, but many instruction--input--output pairs are only weakly specified: for a given input, the same output can remain plausible under several alternative instructions. This raises a simple question: \emph{does the instruction uniquely determine the target output?} We propose the \textbf{Task--Specificity Score (TSS)} to quantify how much an instruction matters for predicting its output, by contrasting the true instruction against plausible alternatives for the same input. We further introduce \textbf{TSS++}, which uses hard alternatives and a small quality term to mitigate easy-negative effects. Across three instruction datasets (\textsc{Alpaca}, \textsc{Dolly-15k}, \textsc{NI-20}) and three open LLMs (Gemma, Llama, Qwen), we show that selecting task-specific examples improves downstream performance under tight token budgets and complements quality-based filters such as perplexity and IFD.
