TL;DR
The TMAP (Task-Model Adaptation with efficient Proxies) framework dynamically customizes data selection for Large Language Model (LLM) instruction tuning based on the specific model and target task. By replacing expensive fine-tuning evaluation loops with efficient In-Context Learning (ICL) proxies on tiny validation sets, TMAP identifies optimal data subsets at a fraction of the computational cost, matching or exceeding full-dataset performance using just 30% of the data.
What Problem Does This Paper Address?
Instruction tuning is essential for aligning LLMs with human intent, and recent consensus shows that data quality matters far more than data quantity. To find the best data, researchers use various indicators to score text samples based on semantic quality, logical complexity, and linguistic diversity.
However, current data selection pipelines suffer from two major flaws:
- Static Weighting: They combine these indicators using fixed, hand-crafted rules. This ignores the fact that different downstream tasks require different data profiles (e.g., math needs high logical complexity, while general chat needs linguistic diversity), and different base models have different pre-existing strengths and weaknesses.
- Prohibitive Costs: Data-driven methods that try to optimize these combinations dynamically rely on expensive "select-finetune-evaluate" loops or high-dimensional gradient calculations, making them incredibly slow and costly to scale.
Methods
TMAP formulates data selection as a black-box weight optimization problem, using Bayesian Optimization to iteratively discover the best weights for a multi-dimensional set of indicators.
The framework relies on two core components to bypass traditional computational bottlenecks:
- Multi-dimensional Indicator Scoring: Each data sample is scored across an extensible set of metrics, including Semantic Quality (via Alpagasus and DEITA quality scores), Complexity & Difficulty (via Instruction Following Difficulty [IFD] and DEITA complexity), Linguistic Heuristics (output length), and Domain-Specific Metrics (number of reasoning steps).
- Efficient Performance Proxies: Instead of running a full supervised fine-tuning (SFT) epoch and evaluating on a massive validation set for every iteration, TMAP introduces two lightweight proxies:
- ICL as an SFT Proxy: It uses few-shot In-Context Learning performance to rank data quality, which strongly correlates with actual fine-tuning utility without modifying model weights.
- Tiny Validation Sets ($V_{tiny}$): It compresses large benchmarks into a handful of highly representative samples using Item Response Theory (IRT) and K-means clustering, drastically cutting down evaluation inference time.
The overall pipeline is visualized below:
Datasets
The authors evaluated TMAP on several widely recognized knowledge and reasoning benchmarks:
- GSM8K: Grade-school math word problems requiring multi-step reasoning.
- ARC-C: A challenging, multiple-choice science question-answering dataset.
- MUSR: Multistep soft reasoning tasks wrapped in natural language narratives.
- GPQA: An exceptionally difficult multiple-choice dataset of expert-level biology, physics, and chemistry questions.
- DeepSeek-Distilled Variants: The authors also generated synthetic, high-quality reasoning paths using DeepSeek-V3.2-Chat to augment the GSM8K and ARC-C datasets for synthetic data experiments.
Key Insights and Ideas
- Data Quality is Relative to the Model: There is no single definition of "high-quality" data. As shown in Figure 2, different model architectures prefer completely different data characteristics.
- Qwen2.5 (a strong reasoner) prioritizes structural complexity, favoring high IFD and reasoning step counts.
- Llama3 relies heavily on authoritative semantic scores (Alpagasus), prioritizing correctness.
- Mistral thrives on high information density and perplexity, benefiting from data that diverges from its pre-training priors.
- The Diversity Trap in Reasoning: Conventional wisdom dictates that data diversity is always beneficial. However, TMAP reveals that for reasoning-dense tasks, enforcing strict semantic diversity filtering actually harms performance (see Table 4). Explicit diversity constraints prune semantically similar but logically distinct hard examples that are vital for mastering step-by-step mathematical logic.
Key Results
- Data Efficiency: On GSM8K, TMAP achieved performance comparable to or exceeding full-dataset tuning while utilizing only 30% of the training samples.
- Synthetic Data Filtering: When filtering DeepSeek-generated synthetic data on the ARC-C benchmark with Mistral-v0.2-7B, TMAP reached an accuracy of 77.05%, virtually matching the performance of tuning on the entire synthetic dataset (77.22%) while discarding 70% of the redundant or lower-quality generations.
- Computational Scalability: Because TMAP decouples the evaluation proxy from the training set size, its optimization cost remains nearly constant. As shown in Table 6, scaling the candidate pool from 7.5k samples (GSM8K) to 50k samples (DS2-50K) only increased the iteration time from 3.0 to 3.5 minutes, whereas competing methods like Data Whisperer scaled linearly, exploding from 11 hours to over 72 hours.
Limitations and Future Work
While TMAP proves highly effective for reasoning and knowledge-heavy tasks, the authors note that its current implementation focuses primarily on these domains. They identify scaling and adapting TMAP to more subjective, diverse instruction-tuning categories—such as creative writing, role-play, and code generation—as the primary direction for future work.
Summary updated