Abstract
Instruction tuning is vital for aligning Large Language Models (LLMs) with human intent, yet scaling data often leads to redundancy and performance degradation. This paper introduces Model Instruction Weakness Value (MIWV), a novel, automated metric that identifies model-specific "weak spots" using In-Context Learning (ICL) as a diagnostic probe. By selecting only the most informative samples, the authors demonstrate that fine-tuning on as little as 1% of a dataset can outperform training on the full 100%, offering a highly efficient and effective path to model alignment without relying on expensive external APIs.
Introduction
Traditionally, the development of instruction-tuned models followed the principle that more data leads to better performance. However, blindly scaling datasets is computationally expensive and often introduces redundant or noisy data that can degrade model performance. While recent approaches attempt to filter for "high-quality" data, they frequently rely on expensive external models (like GPT-4) or generic quality metrics that do not account for the specific capabilities of the target LLM.
This research addresses the need for a fully automated, model-specific data selection strategy. The core insight is that "quality" is subjective: a sample that is highly informative for a smaller model might be redundant for a larger one. MIWV identifies the exact data a specific LLM needs to improve by probing its internal weaknesses.
Methodology: The MIWV Pipeline
The authors propose a self-guided data selection pipeline that uses the target LLM as its own evaluator:
- One-Shot Example Retrieval: For every instruction in the source dataset, an embedding model (e.g., Bge-en-large) retrieves the most semantically similar instruction-response pair from the same set.
- ICL as a Diagnostic Probe: The target LLM predicts the response under two conditions: a Zero-shot prompt (instruction only) and a One-shot prompt (instruction preceded by the retrieved example).
- MIWV Computation: The Model Instruction Weakness Value is calculated as:
MIWV = Loss(One-Shot) - Loss(Zero-Shot). If providing a relevant example fails to lower the loss (resulting in a high MIWV), it indicates the model lacks the fundamental ability to process that specific task. - Data Selection: The dataset is ranked by MIWV, and the highest-scoring samples—representing the model's greatest weaknesses—are selected for a compact, high-quality training subset.
Experimental Results
The researchers evaluated MIWV across multiple models (LLaMA, Qwen, T5) and datasets (Alpaca, WizardLM). The results consistently demonstrated that "less is more" when data selection is importance-aware.
Massive Data Reduction and Peak Performance
Fine-tuning LLaMA2-7B on just 1% of the Alpaca dataset (520 samples) significantly outperformed the model trained on the full 52,000-sample dataset. Peak performance was generally observed when using the top 10% to 15% of MIWV-ranked data. Beyond this threshold, the inclusion of redundant or "easy" data acted as noise, causing performance to plateau or decline.
Comparison with Baselines
MIWV outperformed eight recent data selection methods, including Alpagasus and IFD Score. As shown in the comparison of selection strategies, MIWV consistently maintains a higher win rate than random selection or metrics focusing on low MIWV or high prompt loss alone.
Discussion and Insights
- Weakness vs. Quality: A model learns most effectively from what it does not already know. High-MIWV samples were found to correlate with higher complexity, depth, and expertise when analyzed by GPT-4.
- Efficiency: The MIWV method is highly efficient, requiring only two inference passes per sample. Filtering a full dataset took approximately 85 minutes on standard hardware, making it significantly faster than methods requiring auxiliary model training.
Conclusion
MIWV introduces a powerful paradigm for LLM alignment by using In-Context Learning as a diagnostic tool. While the method requires upfront inference compute and careful threshold tuning, it proves that targeted, model-specific data selection can achieve superior performance with a fraction of the data. Future work may explore more advanced context-assisted filtering to further refine LLM alignment strategies.
Summary updated