Abstract
Supervised Fine-Tuning (SFT) is a critical step in training Large Language Models (LLMs) to follow instructions, yet it is often bottlenecked by the high cost of human annotation. This paper introduces Weighted Task Diversity (WTD), a novel data selection strategy that prioritizes annotation for tasks where the model exhibits the highest uncertainty while ensuring comprehensive coverage across all task categories. Our results demonstrate that models fine-tuned on just 20% of a dataset using WTD can outperform models trained on the full 100%, effectively reducing annotation costs by up to 80%.
Introduction
The efficacy of SFT relies on high-quality prompt-response pairs, which typically require expensive human expertise. To mitigate these costs, researchers have explored "label-efficient" learning—selecting the most informative prompts for annotation before the responses are generated. Traditional methods focus on prompt diversity through geometric approaches like Determinantal Point Processes (DPP) or K-Center clustering. However, these methods often rely on embeddings that may not capture task-level semantics, are computationally intensive, and ignore valuable task metadata already present in many datasets.
Methodology
The proposed approach shifts the focus from individual prompt geometry to Task Diversity. The primary contribution, Weighted Task Diversity (WTD), utilizes an inverse confidence weighting strategy:
- Inference: Run the base, un-tuned model on unlabeled prompts to measure its confidence (the probability assigned to its own generated tokens).
- Task-Level Scoring: Calculate the average confidence for each task category (e.g., summarization, math).
- Allocation: Allocate a larger portion of the annotation budget to tasks where the model shows low confidence and fewer to tasks it already performs well on.
- Sampling: Use a Round-Robin sampling method to ensure every task receives a minimum level of representation, preventing the model from neglecting "easy" tasks.
Experimental Setup
The researchers evaluated WTD on two major instruction-tuning collections:
- FLAN V2 (90K subset): Covering 1,691 diverse tasks.
- Databricks Dolly 15K: A human-generated dataset with 8 broad categories.
Performance was measured using standard benchmarks including MMLU (general knowledge), BBH (reasoning), and AlpacaEval (simulated human preference using GPT-4 Turbo).
Key Results and Insights
The "Less is More" Paradox
A significant finding of this study is that training on a carefully curated subset can yield better results than using the entire dataset. For instance, on the FLAN dataset, a 45K sample subset selected via WTD resulted in a 4% higher MMLU score than the full 90K dataset. This suggests that larger datasets may contain noise or imbalances that hinder model performance.
Performance and Cost Efficiency
WTD consistently outperformed complex diversity-based baselines such as DPP and Facility Location (FL) across various budgets. As shown in the performance comparison, WTD with only 20K samples achieved a higher win rate on AlpacaEval than the full 90K random baseline.
Qualitative Task Allocation
WTD automatically identifies which tasks require more human effort. In the Dolly dataset, the algorithm allocated the most samples to "Open QA" and "Brainstorming"—tasks that are inherently more complex and diverse—while reducing the budget for simpler tasks like "Classification."
Conclusion and Future Work
Weighted Task Diversity provides a computationally efficient and highly effective method for label-efficient SFT by leveraging task-level uncertainty. While the method currently depends on existing task labels, future work could involve automated task discovery for unlabeled "wild" data. Additionally, further research is needed to determine how these principles scale to larger model architectures (70B+) and Mixture-of-Experts (MoE) models.
Summary updated