Manuscript Offprint

arXiv:2611.04059

Query-based Submodular Data Selection for Efficient Instruction Tuning

Zhenghao Zhao, Yasutomo Kawanishi, Huihuo Zheng, Michael E. Papka, Yan Yan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

As large language models are fine-tuned for increasingly specialized tasks, their performance depends more on which training examples are selected than on how many. Given a large heterogeneous training pool and a small target set specifying the desired capability, targeted data selection aims to find a compact subset that maximizes downstream performance. Existing methods score each candidate independently against the target and select the top-ranked examples, yet this point-wise strategy ignores inter-example interactions: at tight budgets the selected subset is dominated by near-redundant points that waste capacity on overlapping information. We propose Query-based Submodular functions with Gradient-guided Synthesis (QSGS), which formulates targeted selection as a submodular graph cut over a gradient similarity graph. A modular relevance term pulls selected examples toward the target task, while a pairwise dispersion penalty suppresses intra-subset redundancy. The resulting objective balances target relevance and intra-subset redundancy using the same formulation across different selection budgets. Empirically, the benefit of diversity-aware selection becomes increasingly pronounced as the data budget decreases. To further close coverage gaps that no selection from existing data can bridge, we introduce a gradient-guided synthesis step that identifies under-covered target directions via residual subspace analysis and generates synthetic examples to fill them. Experiments on MMLU, BBH, and TydiQA across Llama-2, Llama-3, and Mistral, show that QSGS at a 0.5% budget matches or exceeds full-data performance on Mistral-7B, outperforms the strongest baseline across all benchmarks, and yields increasing gains as the budget shrinks.

1 INTRODUCTION

As large language models (Touvron et al., 2023; Grattafori et al., 2024; Jiang et al., 2023) are deployed in increasingly specialized roles, from multilingual question answering (Clark et al., 2020; Lewis et al., 2020) to complex multi-step reasoning (Wei et al., 2022; Wang et al., 2022; Yao et al., 2023), their effectiveness hinges less on the scale of pretraining than on the quality and composition of the data used to fine-tune them (Longpre et al., 2023; Zhou et al., 2023). LIMA (Zhou et al., 2023) demonstrates that a few carefully chosen examples can rival models trained on orders of magnitude more data, underscoring a core insight: which examples a model trains on matters far more than how many. This motivates a principled data selection problem: given a large, heterogeneous training pool and a small set of target demonstrations that specify a desired capability, how should we select a compact subset to maximize downstream performance?

A growing body of work has tackled data selection for instruction tuning from diverse angles. Quality-based methods use heuristic scores such as instruction-following difficulty (Li et al., 2024a) or LLM-judged complexity and quality (Chen et al., 2024; Liu et al., 2024a; Du et al., 2023) to filter or rank examples, while distributional approaches match the selected subset to a reference distribution (Xie et al., 2023). Data pruning techniques identify and remove uninformative samples via gradient-based importance estimates (Tan et al., 2023), and coreset methods enforce diversity through clustering or submodular optimization (Wei et al., 2015; Zhang et al., 2025). Among these, LESS (Xia et al., 2024) achieves strong targeted performance by estimating per-example influence via gradient similarity and selecting the top-KK highest-scoring candidates.

However, all these methods score each candidate independently against the target set and select the top-ranked examples. This point-wise strategy ignores how selected examples interact with one another: as the budget shrinks, top-ranked candidates increasingly share similar gradient directions, so the selected subset wastes its limited capacity on redundant signals instead of covering complementary aspects of the target task. The tighter the budget, the larger the marginal cost of each redundant selection, yet the scoring criterion remains oblivious to intra-subset overlap. This analysis motivates a selection objective that jointly accounts for target relevance and inter-example redundancy, with diversity pressure that adapts to the budget size.

We propose Query-based Submodular functions with Gradient-guided Synthesis (QSGS), a unified coreset construction framework that operates in three tightly coupled stages built on a shared gradient representation. First, low-rank gradient features are computed from early-stage checkpoints of a warm-up model, yielding both per-example influence scores against the target set and compact gradient embeddings for pairwise similarity computation. Second, a target-aware submodular graph cut selects examples by jointly maximizing relevance to the target task and minimizing intra-subset redundancy in gradient space. This subset-level objective is useful under tight budgets, where each redundant selection consumes a larger fraction of the limited capacity and displaces a potentially com-

plementary example. Third, a gradient-guided synthesis step identifies target gradient directions that are uncovered by the selected subset and generates synthetic examples to fill the residual gaps.

We evaluate QSGS at an extreme 0.5% data budget, which contains only 1,350 out of 270,000 examples across diverse benchmarks and model families. QSGS consistently outperforms LESS across the evaluated settings, notably matching full-data MMLU performance, as shown in Figure 1. Importantly, its advantage becomes more pronounced as the available data decreases, demonstrating strong robustness in highly data-scarce regimes. Our ablation studies show that the graph-cut objective accounts for the majority of the performance improvement, with gradient-guided synthesis providing additional gains, while maintaining a selection overhead below 0.1% of the total pipeline cost.

Our contributions are as follows:

  • We propose QSGS, a unified coreset selection framework for LLM instruction tuning that first computes gradient-based influence scores, then selects samples based on influence scores, and fills residual coverage gaps through gradient-guided data synthesis.

  • We design a target-aware submodular graph cut objective that jointly maximizes candidate-target relevance and minimizes intra-subset redundancy in gradient space. We also introduce a gradient-guided synthesis method that identifies uncovered target gradient directions via residual subspace analysis and generates targeted synthetic examples to fill the gaps.

  • Experiments across three benchmarks (MMLU, TydiQA, BBH) and three model families (Llama-2, Llama-3, Mistral) show that QSGS at 0.5% budget matches or exceeds full-data performance on Mistral-7B, while the gap widens as the budget shrinks.

Figure

Figure 1: Losses dataset compression with QSGS framework. On all three benchmarks, our method achieves full set performance with using only 0.5% of the data. The data keep ratio of ours is 90% less than the SOTA method (Xia et al., 2024).

References (57)