Diagnosing Capability Gaps in Fine-Tuning Data

Saeid Asgari Taghanaki, Rakshanda Agarwal, Bruce Sun, Rohan Jha, Elias Stengel-Eskin, Sara Malvar, Rui Ying, Yifei Xu, Guilherme Potje, Tusher Chakraborty, Leonardo de Oliveira Nunes, Ranveer Chandra, Emre KicimanarXiv 2026

TL;DR

Before spending time and compute on an expensive LLM fine-tuning run, how do you know your training dataset actually covers all the capabilities your model needs? This paper introduces GOALCOVER, a framework that interactively breaks down high-level fine-tuning goals into atomic subgoals, audits a dataset for hidden capability gaps, and automatically generates targeted synthetic data to fill those gaps.

What Problem Does This Paper Address?

When fine-tuning Large Language Models (LLMs) for specialized domains (like medicine or law), practitioners usually start with a high-level goal (e.g., "Build a medical QA system"). However, standard dataset-quality metrics like perplexity or aggregate alignment scores only provide a bird's-eye view. They fail to surface granular deficiencies. For instance, a medical dataset might look excellent on average but completely lack examples for cardiology or drug interactions.

Currently, practitioners only discover these "capability gaps" after an expensive fine-tuning run fails in production.

Figure 1: Capability gaps in fine-tuning datasets. The average coverage score across subgoals can look adequate while individual subgoals remain severely undersupported, surfacing only as failures in production. GOALCOVER provides the missing subgoal- level visibility before fine-tuning begins.

Methods

GOALCOVER addresses this pre-fine-tuning blind spot using a four-phase pipeline:

  1. Goal Clarification: An interactive LLM-driven loop asks the practitioner clarifying questions to decompose a high-level goal into atomic, independent subgoals (e.g., breaking "medical QA" into clinical reasoning, cardiology expertise, safety warnings, etc.).
  2. Coverage Assessment: An LLM-as-a-judge evaluates every single training sample against every subgoal using a structured, six-anchor rubric (scoring from 0.0 to 1.0) and generates a natural language explanation for its score.
  3. Gap Analysis: For subgoals with low average scores, an analyzer LLM aggregates the judge's explanations to pinpoint exactly what specific knowledge or formatting is missing.
  4. Recommendation & Synthesis: The system provides actionable curation feedback and uses a structured generator-discriminator pipeline to synthesize high-quality, goal-conditioned training samples that explicitly target the detected gaps.
Figure 2: Overview of GOALCOVER. The four-phase pipeline takes a practitioner’s high-level goal G, decomposes it into atomic subgoals via an interactive clarification loop, scores every (sample, subgoal) pair, aggregates evaluator explanations from low- scoring samples into capability gaps, and produces remediation recommendations including goal-conditioned synthetic data. We validate the pipeline along two complementary axes: a controlled corruption study (Section 4) establishes detection validity, and a downstream RFT study (Section 6) establishes utility.

Datasets

The authors validated GOALCOVER using two distinct approaches:

  • Controlled Corruption Experiments: To test gap detection, they used PubMedQA (medical), BillSum (legal summarization), and CodeAlpaca (code generation). They systematically stripped out specific subsets of data (e.g., removing all bills containing financial terms) to see if GOALCOVER could successfully isolate the missing capability.
  • Downstream Utility (RFT): To test actual training performance, they used a financial-report summarization dataset derived from the GovReport corpus.

Key Insights and Ideas

  • Aggregate Metrics Lie: A dataset can achieve a seemingly safe average alignment score while harboring catastrophic blind spots in critical subgoals.
  • Less is More (When Aligned): Filtering out unaligned data drastically reduces dataset size but significantly boosts downstream model performance. Quality and relevance trump raw token count.
  • Unfiltered Data Introduces Noise: Interestingly, mixing targeted synthetic data with the unfiltered original dataset actually degraded performance compared to using synthetic data alone. This indicates that background data noise actively dilutes the benefits of targeted data augmentation.

Key Results

The authors proved GOALCOVER's effectiveness across two validation axes:

1. Detection Validity (Adversarial Corruption)

When specific content was removed, GOALCOVER precisely flagged the targeted subgoals. On average, targeted subgoals saw a 25.6% drop in alignment scores, while non-targeted subgoals remained virtually untouched (only a 2.1% drop), demonstrating a very high separation effect (Cohen's $d = 1.24$).

2. Downstream Utility (Reinforcement Fine-Tuning)

The authors applied Reinforcement Fine-Tuning (RFT) via the GRPO algorithm to train a Qwen-3-14B model on the financial summarization task. Performance was evaluated on a 1–5 scale by an LLM judge:

RFT performance under different training-data settings.
  • Goal-aligned filtering alone pushed the baseline score from 3.77 to 4.12, despite using less than half of the original dataset size (4,375 samples vs. 9,216).
  • Combining the filtered real data with goal-conditioned synthetic data yielded the strongest overall reward of 4.20.

Limitations and Future Work

While powerful, GOALCOVER has a few limitations that the authors acknowledge:

  • Evaluator Dependence: The framework relies heavily on a single strong LLM judge (like GPT-4). If the judge lacks expertise in a highly specialized domain, the alignment scores may become unreliable.
  • Computational Cost: Because the framework requires an LLM call for every sample-subgoal pair, auditing massive datasets can become computationally expensive—though the authors argue this cost is easily justified by avoiding failed fine-tuning runs.
  • Future Directions: The team plans to conduct human user studies to evaluate how practitioners interact with the goal-clarification phase and intends to replicate these experiments across a broader variety of open-source model families (e.g., Llama-3.1, Gemma-2).

Summary updated

BibTeX
@misc{taghanaki2026diagnosing,
  author = {Saeid Asgari Taghanaki and Rakshanda Agarwal and Bruce Sun and Rohan Jha and Elias Stengel-Eskin and Sara Malvar and Rui Ying and Yifei Xu and Guilherme Potje and Tusher Chakraborty and Leonardo de Oliveira Nunes and Ranveer Chandra and Emre Kiciman},
  title = {{Diagnosing Capability Gaps in Fine-Tuning Data}},
  year = {2026},
  eprint = {2604.27547},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.27547},
}
Figure