Manuscript Offprint
arXiv:2610.30442Towards Faithful Data Selection: Statistical Limits and Scalable Algorithms
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
What does it mean to have an “optimal” data selection algorithm? Optimality is conventionally framed as finding a subset that minimizes the population error of the classifier trained only on that subset. Our starting point in this work is first to show that this goal is information-theoretically impossible unless the data selection algorithm has access to a validation set order-wise larger than the training set. This impossibility result motivates shifting from unverifiable population risk minimization to a one-sided guarantee that we refer to as faithfulness: for any candidate subset, we provide an estimable proxy that upper-bounds the difference between training on the full training data and on only the subset. We model training with the Unadjusted Langevin Algorithm and bound the Kullback–Leibler divergence between subset-trained and full-data-trained parameter distributions by the trajectory-accumulated gradient discrepancy. Minimizing this discrepancy gives a principled way to select a subset. Even though the resulting problem is NP-hard, we propose a swap-based local search that decreases the bound at every accepted step. It can therefore refine the output of any selector without worsening its bound. Finally, we provide experimental results on CIFAR10 and CIFAR100 showing that it matches existing data selection baselines. Implementation of our algorithm and the code for reproducing the results are available at: https://github.com/Mehdi-Inane/data_selection_swap.
1 Introduction
Training on ever-larger datasets is expensive, and not all samples contribute equally: careful pruning can improve how performance scales with dataset size (Sorscher et al., 2023). Data selection formalizes this idea: given a training set of samples and a learning algorithm , find a subset of size such that training on alone performs as well as training on all of . Besides reducing computation and storage, selection is a concrete instance of the data-centric view of machine learning (Zha et al., 2025), in which the dataset, rather than the model, is the object to curate.
There is a vast body of work on data selection algorithms (Moser et al., 2025), which differs in what the data selection algorithm has access to and in how it uses this information. Bi-level optimization approaches (Killamsetty et al., 2021b; Xia et al., 2024; Nikdan et al., 2026) select subsets of the training set based on the error on a held-out validation set, and training-data based methods use only information stemming from the training set and the learning dynamics induced by a learning algorithm (Toneva
Equal contribution First Authors.
Part of the work was done while MH was at the Simons Institute for the Theory of Computing, UC Berkeley.
et al., 2019; Paul et al., 2021; Killamsetty et al., 2021a; Cohen-Addad et al., 2026). Despite this empirical progress, the statistical limits of data selection remain poorly understood.
There has also been a recent line of theoretical work on the statistical aspects of data selection. For instance, data memorization is inherently related to data selection, since memorization identifies training examples that a learner cannot afford to discard. The work of Feldman (2020) shows theoretically that on long-tailed distributions, rare examples may provide the only information about subpopulations that collectively carry substantial test mass, making their memorization necessary for near-optimal accuracy. Empirically, Feldman and Zhang (2020) show that on standard image benchmarks memorized examples often improve accuracy on related test points, so dropping rare samples may degrade the test accuracy. In recent work, Hanneke et al. (2025) study the following fundamental question: for empirical risk minimizers, given a set of training samples, does there exist a (smaller) good subset such that training on it performs nearly as well as training on all the samples? Their main result is to give affirmative answers in various settings. Another line of work (Kolossov et al., 2023) identifies settings in which selection improves over full-sample training, and provides settings where popular selection methods like unbiased reweighting and influence-based rules are suboptimal. Neither work, however, asks what a selector can identify from the samples alone. In this work, we complete this picture by asking: when the training sample contains a subset on which training yields an accurate model, what can a data selection algorithm infer about this subset from finite training (and possibly validation) samples?
To make this question precise, let be i.i.d. samples from an unknown distribution , and let be a learning algorithm. For , write for the population risk under of the model trained on , and for the Bayes error. Given a budget , let with be the subset chosen by our data selection algorithm, and let be the best subset with the same budget. Writing \mathcal{A}(S_\widehat{I}) to denote the hypothesis learned from S_\widehat{I}, we consider two ways of decomposing the excess risk, R_P(\mathcal{A}(S_\widehat{I})) - R_P^\star:
The first decomposition separates two questions: whether the realized training sample contains a good subset of size at most m (a question that Hanneke et al. (2025) studies), and whether the data selection algorithm can identify one. In our statistical setting, however, the comparator is not available to the data selection algorithm, because depends on the unknown distribution P. The second decomposition replaces this inaccessible comparator with the full-data model ; both and can be trained on the observed data. This motivates two questions: (1) When one or more good subsets of size m exist, can a data selection algorithm find a good subset, and do so using only the training sample and a validation set of moderate size? (2) When this is impossible, can the algorithm use the training data alone to ensure faithfulness to full-data training, and can it optimize this faithfulness at scale?
Hence every learner whose compression error vanishes, among them, pays a selection error of order with every selector: a validation set of is required to make it vanish.
• Faithfulness, with a training-data only proxy. The negative result points to the second decomposition: we ask for a faithful subset, one whose training approximates the same distribution over models as training on S. By modeling training dynamics of gradient-based methods with the Unadjusted Langevin Algorithm (ULA), we bound the faithfulness by the trajectory-accumulated gradient discrepancy (Theorem 4.1). This gives a faithfulness proxy for any candidate subset. In Figure 1 we show that the trajectory gradient discrepancy correlates with the faithfulness gap for SGD-trained models.
• A simple algorithm with an improvement guarantee. Minimizing is NP-hard, and we do not claim to solve it optimally. Existing gradient-based selectors only optimize relaxations of it, for instance by matching gradients at a single training iterate or by scoring examples independently (Remark 4.3), so none directly target the quantity our bound controls. Instead, we give a simple swap-based local search algorithm that, starting from any subset, halts or identifies a subset I that decreases . One can start from the full training data, or aim to refine the output of another selector (Theorem 4.6). Its cost is dominated by per-example gradients, which we approximate using a single early checkpoint, yielding an estimate of . On CIFAR-10 and CIFAR-100, this simple method is on par with existing static data selection baselines. This opens up avenues for improving the optimization of as a way to improve data selection.
2 Statistical Limits of Optimal Subset Selection
In this section, we start by defining the task of finding the optimal subset in the training set. A natural comparator (or goal) is as follows: Fix a possibly randomized learning algorithm , where is the learner applied to samples of size and a training sample . Assume that we have a budget of size for data selection. For every index set , let , with the indices in increasing order. Let
with ties broken canonically. Thus is the risk of the best subset that an oracle with access to can find in the realized sample. Importantly, the oracle must use the same learner as the data selector.
Let be an independent validation set, and let be a (possibly randomized) data selection algorithm. Write for the selected subset. Letting denote the learning algorithm fed samples, the excess risk of the hypothesis can be decomposed into the compression error and selection error as in Equation (1). Both terms in this decomposition are nonnegative: the first asks whether the training sample contains a good size- subset for , and the second measures the cost of finding one using . As we will show, there exists a class of problems for which we have a dichotomy: every size- subset has large compression error for , or a good subset exists, but cannot identify it.
Theorem 2.1. Consider multiclass classification with ordinary 0-1 loss. Fix any compression fraction , set , and set . Let the label space be . There exist and , depending only on , with the following property: For every integer and integer validation size , setting , there is a finite family of deterministic-label K-class classification distributions, together with an explicit deterministic learner , such that, (1) every member of the family has zero Bayes risk and the risk of the model learned by converges to zero; (2) for every pair consisting of a learner and a data selector , there exists such that, for independent samples and ,
where satisfies , and minimizes over with . Moreover, these families and the corresponding learners can be chosen so that, for every and for every
In Equation (6), is the optimal subset for .
The full proof is given in Section B. Let us unpack the implications of this result:
Accurate subsets exist: Bayes risk is zero, and there exists an algorithm for the class of problems ( in Theorem 2.1) that achieves vanishing error on both the full sample and a distribution-aware oracle subset of at most examples. Thus the problem is non-degenerate.
Sample-based selection is hard: Finding such a subset can nevertheless be statistically hard: for fixed and , for every selector-algorithm pair such that the algorithm has small compression error, the selection error is bounded below by a constant even with unlimited computation.
Tightness: Our lower bound in Theorem 2.1 is tight in its dependence on the number of training samples. Specifically, conditional on the training sample , running on all subsets of of size induces a finite hypothesis class of size at most . Standard generalization bounds (Shalev-Shwartz and Ben-David, 2014) guarantee that a validation set of size suffices to achieve selection error .
Remark 2.2 (long-tail distributions in practice). The family of distributions in our lower bound shares the long-tail structure of Feldman (2020): there are as many rare subpopulations as training examples, so many of them appear once or never in the training set. There, the subpopulations are unrelated, so one that is absent from the training set cannot be predicted, even by full-data training or by an oracle that knows the distribution. Our main technical contribution is to relate rare subpopulations to one another. This is why an accurate subset of size m exists: an oracle that knows which rare subpopulations will matter at test time keeps only the examples needed to reconstruct them.
Proof overview of Theorem 2.1. The natural starting point is to consider a long-tailed distribution from Feldman (2020) with rare subpopulations, so that accurate prediction requires retaining a large amount of information from the training sample. The immediate difficulty is twofold: in a sample of size n, a constant fraction of the subpopulations never appear at all, so even full-data training fails on them; and if predicting well requires storing more than m pieces of information, then a population-aware oracle with budget m fails as well. Our construction resolves this difficulty by identifying the subpopulations with the edges of a cubic graph G of logarithmic girth (using Erdős–Sachs) and coupling their labels through parity constraints: each edge carries a label in , and the labels of the three edges at every vertex sum to zero.
To create a gap between the oracle and the selector, we partition the edges into small groups and designate one hidden active edge in each group; the test distribution places its hard inputs only on active edges. Most examples are clear: they reveal a uniformly random edge together with its label. A small fraction are masked: their input shows an active edge but hides its label. Since masked examples are rare, most groups receive none of them in , and for these groups the selector cannot tell which edge is active.
This is what makes selection hard. The parity constraints impose only equations on edges, so the labels still carry about bits of information. A selector that does not know the active edges must preserve all of it, yet a subset of examples conveys at most bits. When , this gap forces any selector–learner pair to err on edges, and since the active edge of each group is hidden, these errors translate into test risk.
The same graph structure allows full-data training and the oracle to succeed. Each edge is missing from with probability about , so in the cubic graph the missing edges form small components, which are trees because has large girth. Summing the parity constraints over one side of such a tree expresses the label of a missing edge as a sum of observed labels on its boundary. Every edge therefore has a small certificate in that determines its label, except with probability . Full-data training contains every certificate, while an oracle that knows the active edges keeps only theirs, which fit within the budget .
3 Faithful data selection
The previous section studied the conventional goal of data selection: returning a subset of the training sample whose population error nearly matches that of the best subset in Equation (3). However, our results show that for every pair consisting of a learning algorithm and a data selection algorithm, there exists a scenario in which the data selection algorithm incurs a non-vanishing selection error unless it has validation samples, even though a simple learner trained on all of S succeeds there. We therefore change the goal.
The selection error in Equation (1) compares the chosen subset with , which depends on the data distribution P and is unknown to the selector. Instead, let us consider comparisons to the model trained on all of S, which the selector can access. In particular, consider the decomposition of the excess risk of the selected subset described in Equation (2). The first term (full-data excess risk) does not involve the selector and is typically small in practice, since data selection is usually applied when training on the full sample already performs well. Therefore, excess risk of the selected subset is then essentially the second term: the faithfulness gap. Motivated by this, we seek a subset on which training yields a model that closely tracks the full-data model.
Remark 3.1. We do not claim that we can overcome the fundamental lower bound in Theorem 2.1, since the result provides a lower bound on the excess error directly. Indeed, the hard class of distributions we introduced is such that the faithfulness gap is large. When the gap is small, perhaps we can find and optimize faithful subsets. As we show next, we provide a practical proxy that can be computed from the training set and has the property that, if the proxy is small, we know that the faithfulness gap is small.
3.1 From faithfulness to KL divergence
How can we control the faithfulness gap? The faithfulness gap in Equation (2) is the difference between the averages of one function, , under two distributions over trained parameters: the law of the model trained on and the law of the model trained on the subset. We cannot evaluate this function, since is unknown, but we do not need to: if the two laws are close, every bounded function of has nearly the same average under both, whatever is. We therefore call a subset faithful if training on it produces nearly the same distribution over models as training on . This requirement is stronger than a small faithfulness gap, and usefully so: it controls the gap under every data distribution at once, and it controls every other bounded evaluation of the trained model, which we call a query. Examples include accuracy on a subgroup or on a rare subpopulation, accuracy under distribution shift, and the loss or prediction at a single test point as in data attribution (Ye et al., 2024). The next result, whose proof (Section C) is simply based on the variational representation of total variation distance and Pinsker's inequality, formalizes this intuition:
Proposition 3.2. Let and such that . Let be a measurable bounded function. Fix as a training set of size and let be an arbitrary subset of such that . Then, for every randomized algorithm , we have:
Note that and should both share the same initialization distribution.
4 Practical Data Selection using Langevin Algorithm
Theorem 3.2 reduces faithfulness to a single number, . How can we turn this result into a faithful data selection algorithm? To select subsets with it, we need two things: an upper bound on this divergence that can be evaluated based on the training set, and a form of that bound that can be minimized over subsets.
In this section, we focus on gradient-based learning algorithms that are often used in practice. To operationalize the KL bound, we approximate gradient-based training by the Unadjusted Langevin Algorithm (ULA). This approximation lets us bound the divergence in closed form and then turn the bound into a practical and scalable algorithm.
More precisely, assume we have a fixed loss function and let be the number of parameters. Fix a number of iterations , step sizes , inverse temperatures . On a training set , ULA starts from an initialization distribution and, for , let
where are i.i.d. and independent of . We write for the law of , and we take the learner to be ULA stopped at iteration , that is, for every sample of size . ULA is gradient descent with injected Gaussian noise, and its stochastic-gradient version is the SGLD algorithm of Welling and Teh (2011). ULA is an approximation of how models are trained in practice. Our guarantees are proven for ULA, and Section 5 shows that the resulting selection rule remains effective when models are trained with SGD.
Before stating our results, we define a quantity that we refer to as the trajectory gradient discrepancy,
(8) the squared distance between the subset and full-data gradients, accumulated along the full-data training trajectory. The proof is deferred to Section D.
Proposition 4.1. Fix , step sizes , inverse temperatures , integers , a training set , and with , and assume that is continuously differentiable for every . Assume furthermore that for all . Run ULA on and on with these schedules. Then, .
Corollary 4.2 (Faithfulness proxy under ULA). Under the assumptions of Theorem 4.1, for all and every measurable ,
The path-space identity behind Theorem 4.1 is the same quantity that appears as “gradient incoherence” in information-theoretic generalization bounds for SGLD (Negrea et al., 2019; Haghifam et al., 2020), and KL divergences between Langevin chains on neighbouring datasets drive Langevin unlearning (Chien et al., 2024; Inane et al., 2026) and leave-one-out distinguishability (Ye et al., 2024).
Our contribution is not the bound but its use: we read as an estimable, distribution-free proxy for the selection objective (we show in Section 5 that an estimate of can predict the downstream test accuracy). A notable property is that the expectation in equation 8 is over the full-data chain only, so can be estimated for every candidate subset from the same full-data training runs, using per-example gradients; this requires no training on any subset and no access to P or to held-out data. In Figure 1, we estimate using a single full training run for a stochastic gradient descent (SGD) trajectory and show that it still correlates with the faithfulness error.
Remark 4.3 ( and existing gradient-based selectors). At a single iterate, with and ,
Several selectors optimize pieces of this expansion. CRAIG (Mirzasoleiman et al., 2020) and GRAD-MATCH (Killamsetty et al., 2021a) minimize the same discrepancy at the current iterate but over weighted subsets, via a facility-location surrogate or orthogonal matching pursuit, and GRAD-MATCH re-solves it during training; is the unweighted, trajectory-averaged version, and Theorem 4.1 is what connects it to the trained model. Ranking examples by alignment (TracIn-style scores with the training loss as target; Pruthi et al., 2020) optimizes the linear term alone and ignores the Gram term, i.e. redundancy among the selected examples. GraNd (Paul et al., 2021) ranks by , which enters only through the diagonal of the Gram term; since GraNd and EL2N keep the largest scores, they increase this term, which is consistent with their subsets being the least faithful ones in Figure 1.
Based on the trajectory gradient discrepancy, we define the following quadratic integer programming problem (more details in Section E):
Definition 4.4 (Selection as a quadratic program). In the setting of Theorem 4.1, write for the centered per-example gradients and define by . Then is positive semidefinite, , and for every with . Consequently, minimizing over subsets of size is the integer quadratic program
where .

(a) ResNet-18 on CIFAR-10

(b) VGG-16 on CIFAR-100
Figure 1: Empirical Faithfulness gap versus the estimate of for CIFAR-10 / ResNet-18 (left) and CIFAR-100 / VGG-16 (right) at retention fraction 0.1. Each point represents a subset from a data selection method, and represents the SGD training procedure. Subsets with large are the ones with the largest gap. The inset (right) zooms in on the dotted region. Points in the upper-right corner correspond to EL2N (EL2N in Figure 2 achieves lower accuracy), confirming the theoretical prediction of Theorem 4.2.
Algorithm 1 Gradient-ranked swap descent
Require: products ; budget ; initial subset with
Ensure: subset with
1:
2: for do
3:
4:
5:
6:
7: if then
8:
9: else
10: return
4.1 Subset selection via gradient swaps
How can we solve the program in Theorem 4.4 when is large? Three facts rule out the obvious approaches. First, exact minimization of the program in Theorem 4.4 is NP-hard even for and by reduction from fixed-cardinality subset sum (and general MIQP is NP complete; (Pia et al., 2014)). Second, forming requires inner products at every point of the trajectory, and storing it requires memory. Third, relaxing to is uninformative: since , the fractional point has objective value zero and says nothing about which subset to select. These observations prompt us to focus on designing an algorithm that requires only matrix-vector products with , keeps every iterate a subset of size , and never increases . Algorithm 1 is such a method: a local search that exchanges one selected example for one unselected example at a time.
Overview of Algorithm 1. Fix a subset of size and let . Since , the entry equals times the trajectory average, weighted as in Equation (8), of : it measures how strongly example is aligned with the current gradient error of the subset. Exchanging for , so that , changes the objective by exactly
The pair minimizes the first-order term over all exchanges: it drops the selected example most aligned with the error and adds the unselected example most opposed to it. The second term is the weighted squared distance between the gradients of examples and along the trajectory. It is nonnegative, so the first-order prediction is optimistic, and the algorithm therefore evaluates the exact objective before accepting the exchange. Every accepted exchange lowers , and with it the faithfulness proxy of Theorem 4.2. Whether the algorithm starts from a uniformly random subset or from the output of another selection method, it returns a subset whose is at least as small as that of its starting point. Note that although is defined along a full-data training run, Section 5 shows that a single early checkpoint suffices in practice.
Remark 4.5. Evaluating requires the per-example gradients of all pool examples at every checkpoint, or an matrix built at cost per checkpoint. Our implementation removes the memory requirement by storing only aggregate gradients.
Theorem 4.6 (Swap descent decreases the faithfulness bound). In the setting of Theorem 4.4, let . For every initial subset with and every tie-breaking rule in the choice of , Algorithm 1 generates subsets of size and returns such that:
(i) every accepted swap strictly decreases the objective, , and the algorithm terminates after finitely many iterations;
(ii) if is drawn uniformly from the subsets of of size , then , where and the expectation is over the initialization.
The proof alongside the construction of the algorithm is detailed in Section F.
Relation to prior work. is not submodular, so greedy combinatorial algorithms and facility-location surrogates (Wei et al., 2015; Iyer et al., 2021) carry no guarantee for it. Swap descent is thus a way to propose swaps from first-order scores but accepts them using the exact quadratic, so accepted swaps never increase (Theorem 4.6).
5 Experiments
We evaluate an SGD-based estimate of and our swap algorithm (Algorithm 1) around three questions: (i) how much of the full-data trajectory is needed to estimate ? (ii) does track the quality of the subsets it scores? and (iii) does optimizing via local search match established selectors in accuracy?
5.1 Experimental setup
Datasets and models. We use CIFAR-10 and CIFAR-100 (Krizhevsky, 2009) with three architectures: ResNet-18 (He et al., 2016), VGG-16 (Simonyan and Zisserman, 2015), and Inception (Szegedy et al., 2014). The same datasets and architectures are used for every selection method. Models are trained using SGD with Nesterov momentum 0.9, initial learning rate 0.01, and weight decay . The learning rate follows a cosine schedule for 300 epochs, with batch size 128 and cross-entropy loss. The same optimizer and schedule are used both to train the full-data reference trajectory and to retrain on a selected subset.

(a) ResNet-18
(b) VGG-16
(c) Inception

(d) ResNet-18
(e) VGG-16
(f) Inception
Figure 2: Test accuracy of the retrained model versus retention fraction on CIFAR-10 (top row) and CIFAR-100 (bottom row), averaged over five seeds (std in shaded area). Gradient Swap uses (epoch 1). It is competitive with static baselines while being the only method that optimizes the estimated .
Estimating . We do not compute exactly; we estimate it and denote the estimate by . We train the full-data reference model once on a fixed random 90%/10% train/validation split and store checkpoints (caveat in Section G.1). The expectation over in the definition of is replaced by this single realized trajectory, and the sum over steps by a weighted sum over the stored checkpoints. Neither nor per-example gradients are ever formed. Writing and , we have , so only one aggregate gradient per checkpoint is stored. The cost is still linear in the number of checkpoints, which makes swaps expensive for long horizons , since aggregate gradients need to be recomputed after each swap. For selection we therefore use checkpoints: is a single-checkpoint estimate (epoch 1), and larger approaches the full trajectory average of the theory. In Figure 1, is evaluated once per subset with no swap sweeps, so we use all 300 stored checkpoints. We refer to Algorithm 1 as Gradient Swap and add a second stopping criterion, a maximum of 200 allowed swaps.
Baselines. We compare against six static data-selection methods: Herding (Welling, 2009), Moderate Coreset (Xia et al., 2022), Facility Location and GraphCut (Iyer et al., 2021), EL2N (Paul et al., 2021), and MoSo (Tan et al., 2023). We also include random selection, which draws a uniform subset. We omit Grad-Match (Killamsetty et al., 2021a) and CRAIG (Mirzasoleiman et al., 2020), since they are adaptive methods that reselect the subset periodically during training, whereas we focus on static selection, where a single subset is chosen before training.
Evaluation protocol. Each method selects a subset at four retention fractions of the training pool (10%, 20%, 40%, 50%), and the model is then retrained on the selected subset from scratch. Our main metric is the test accuracy of the retrained model, averaged over five seeds. To assess whether is a meaningful target, we compare the estimated bound to the faithfulness gap for
Table 1: Test accuracy (%) on CIFAR-10 with ResNet-18 as a function of the number of retained checkpoints , at three retention fractions
| τ | 10% | 20% | 40% |
|---|---|---|---|
| 1 | 69.57 ± 1.00 | 80.12 ± 0.80 | 87.02 ± 0.25 |
| 4 | 69.77 ± 0.85 | 80.37 ± 0.51 | 87.05 ± 0.39 |
| 10 | 69.81 ± 1.48 | 80.13 ± 0.77 | 87.11 ± 0.34 |
| 15 | 69.06 ± 1.35 | 80.30 ± 0.80 | 87.05 ± 0.23 |
| 20 | 69.86 ± 0.72 | 80.34 ± 0.65 | 86.97 ± 0.21 |
subsets produced by different selection methods at retention 0.1, where is SGD, and report Pearson correlation.
5.2 Results
A single early checkpoint is enough to estimate . Table 1 reports the test accuracy of the selected subsets for . No two settings in a column differ by more than roughly one standard error of their difference, and there is no monotone trend in . Additional checkpoints thus buy no detectable improvement while costing proportionally more, so we use in all remaining experiments. This echoes the finding of Paul et al. (2021) that relevant examples can be identified in the early stages of training. Results for other settings are reported in Section J.
separates faithful subsets from unfaithful ones. Figure 1 plots the faithfulness gap against the estimated bound . Subsets with large are the ones with the largest gap, with a Pearson correlation of for ResNet-18 on CIFAR-10 and for VGG-16 on CIFAR-100. This holds even though is derived for ULA while the estimate is computed from SGD and the subset models are also retrained with SGD.
Gradient Swap matches established selectors. Figure 2 shows test accuracy against retention fraction. Across datasets and architectures, Gradient Swap performs on par with the static baselines: its accuracy falls within the spread of the baselines at every retention fraction, and it is neither consistently ahead of nor behind them. This is notable because Gradient Swap is a plain local search. We do not read these results as an argument for this particular algorithm. They show that a simple attempt at optimizing the estimate already matches established selectors, which, together with the correlation above, suggests that is a good target for developing stronger selection algorithms. Furthermore, the spread of the selectors in Figure 2 is in line with the DeepCore benchmark (Guo et al., 2022), which concludes that random selection remains a strong baseline. Swap descent can also refine bad selectors: warm-starting it from GraphCut, Herding, Random or EL2N lowers in every case and raises EL2N's accuracy by 2.6 points, while leaving the other three unchanged (Appendix I).
6 Discussion and Limitations
In this paper, we revisited the theoretical and practical foundations of data selection from first principles. We established a fundamental statistical limitation: even when the training sample contains an accurate subset, no selector can reliably identify one from the training sample and a validation set of comparable size (Theorem 2.1). This impossibility result motivated a shift from population risk minimization to faithfulness—ensuring subset training closely tracks the full-data parameter distribution. By modeling gradient-based learning via ULA, we bounded the faithfulness gap by the trajectory gradient discrepancy , a training-only quantity whose off-diagonal structure captures redundancy. Although minimizing is NP-hard, our swap descent algorithm guarantees a decrease of the bound at every step. Empirically, an efficient single-checkpoint implementation matches established static heuristics on CIFAR-10/100 test accuracy.
While our algorithm performs on par with existing methods on average accuracy, this is highly encouraging: (1) it validates that directly optimizing our mathematically principled proxy is sufficient to match top-tier heuristics, and (2) minimizing guarantees faithfulness across all bounded downstream queries (Theorem 4.2), providing robustness guarantees where average-case heuristics fail.
Our work opens up many directions for investigation. Our lower bound suggests a deeper connection between data selection and various forms of data memorization (Brown et al., 2021; Attias et al., 2024). Our guarantee is proven for ULA and is one-sided; a faithfulness bound for SGD or Adam would close the gap between analysis and practice. is a difference of submodular functions (Narasimhan and Bilmes, 2012; El Halabi et al., 2023), so stronger solvers apply to the same objective directly, and random projections (Section K) and proxy models (Coleman et al., 2019) point to selection at scale.
References
Attias, I., Dziugaite, G. K., Haghifam, M., Livni, R., and Roy, D. M. (2024). Information complexity of stochastic convex optimization: Applications to generalization and memorization. ICML 2024.
Brown, G., Bun, M., Feldman, V., Smith, A., and Talwar, K. (2021). When is memorization of irrelevant training data necessary for high-accuracy learning? In Proceedings of the 53rd annual ACM SIGACT symposium on theory of computing, pages 123–132.
Chien, E., Wang, H., Chen, Z., and Li, P. (2024). Langevin Unlearning: A New Perspective of Noisy Gradient Descent for Machine Unlearning. _eprint: 2401.10371.
Cohen-Addad, V., Kunapuli, S., Mirrokni, V., Nikdan, M., Woodruff, D. P., and Zhou, S. (2026). Active learning with low-rank structure for data selection. arXiv preprint arXiv:2606.16045.
Coleman, C., Yeh, C., Mussmann, S., Mirzasoleiman, B., Bailis, P., Liang, P., Leskovec, J., and Zaharia, M. (2019). Selection via proxy: Efficient data selection for deep learning. arXiv preprint arXiv:1906.11829.
El Halabi, M., Orfanides, G., and Hoheisel, T. (2023). Difference of submodular minimization via dc programming. In International Conference on Machine Learning, pages 9172–9201. PMLR.
Feldman, V. (2020). Does learning require memorization? a short tale about a long tail. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, pages 954–959, Chicago IL USA. ACM.
Feldman, V. and Zhang, C. (2020). What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimation. In Advances in Neural Information Processing Systems, volume 33, pages 2881–2891. Curran Associates, Inc.
Guo, C., Zhao, B., and Bai, Y. (2022). Deepcore: A comprehensive library for coreset selection in deep learning.
Haghifam, M., Negrea, J., Khisti, A., Roy, D. M., and Dziugaite, G. K. (2020). Sharpened Generalization Bounds based on Conditional Mutual Information and an Application to Noisy, Iterative Algorithms. In Advances in Neural Information Processing Systems, volume 33, pages 9925–9935. Curran Associates, Inc.
Hanneke, S., Moran, S., Shlimovich, A., and Yehudayoff, A. (2025). Data selection for erms. In Haghtalab, N. and Moitra, A., editors, Proceedings of Thirty Eighth Conference on Learning Theory, volume 291 of Proceedings of Machine Learning Research, pages 2634–2665. PMLR.
He, K., Zhang, X., Ren, S., and Sun, J. (2016). Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778.
Inane, A. M., Quirion, V., Dziugaite, G. K., and Mitliagkas, I. (2026). Unlearning with asymmetric sources: Improved unlearning-utility trade-off with public data.
Iyer, R., Khargoankar, N., Bilmes, J., and Asanani, H. (2021). Submodular combinatorial information measures with applications in machine learning. In Feldman, V., Ligett, K., and Sabato, S., editors, Proceedings of the 32nd International Conference on Algorithmic Learning Theory, volume 132 of Proceedings of Machine Learning Research, pages 722–754. PMLR.
Johnson, W. B., Lindenstrauss, J., et al. (1984). Extensions of lipschitz mappings into a hilbert space. Contemporary mathematics, 26(189-206):1.
Killamsetty, K., Sivasubramanian, D., Ramakrishnan, G., De, A., and Iyer, R. (2021a). GRAD-MATCH: Gradient Matching based Data Subset Selection for Efficient Deep Model Training. arXiv:2103.00123 [cs].
Killamsetty, K., Sivasubramanian, D., Ramakrishnan, G., and Iyer, R. (2021b). Glister: Generalization based data subset selection for efficient and robust learning.
Kolossov, G., Montanari, A., and Tandon, P. (2023). Towards a statistical theory of data selection under weak supervision. arXiv:2309.14563 [stat.ML].
Krizhevsky, A. (2009). Learning multiple layers of features from tiny images. https://www.cs.toronto.edu/kriz/learning-features-2009-TR.pdf.
Mirzasoleiman, B., Bilmes, J., and Leskovec, J. (2020). Coresets for Data-efficient Training of Machine Learning Models. arXiv:1906.01827 [cs].
Moser, B. B., Shanbhag, A. S., Frolov, S., Raue, F., Folz, J., and Dengel, A. (2025). A Coreset Selection of Coreset Selection Literature: Introduction and Recent Advances. Version Number: 2.
Narasimhan, M. and Bilmes, J. A. (2012). A submodular-supermodular procedure with applications to discriminative structure learning.
Negrea, J., Haghifam, M., Dziugaite, G. K., Khisti, A., and Roy, D. M. (2019). Information-theoretic generalization bounds for SGLD via data-dependent estimates. Advances in Neural Information Processing Systems, 32.
Nikdan, M., Cohen-Addad, V., Alistarh, D., and Mirrokni, V. (2026). Efficient data selection at scale via influence distillation. Advances in Neural Information Processing Systems, 38:143229–143265.
Paul, M., Ganguli, S., and Dziugaite, G. K. (2021). Deep Learning on a Data Diet: Finding Important Examples Early in Training. In Advances in Neural Information Processing Systems, volume 34, pages 20596–20607. Curran Associates, Inc.
Pia, A. D., Dey, S. S., and Molinaro, M. (2014). Mixed-integer quadratic programming is in np.
Pruthi, G., Liu, F., Sundararajan, M., and Kale, S. (2020). Estimating Training Data Influence by Tracing Gradient Descent. arXiv:2002.08484 [cs.LG].
Shalev-Shwartz, S. and Ben-David, S. (2014). Understanding machine learning: From theory to algorithms. Cambridge university press.
Simonyan, K. and Zisserman, A. (2015). Very deep convolutional networks for large-scale image recognition.
Sorscher, B., Geirhos, R., Shekhar, S., Ganguli, S., and Morcos, A. S. (2023). Beyond neural scaling laws: beating power law scaling via data pruning.
Szegedy, C., Liu, W., Jia, Y., Sermanet, P., Reed, S., Anguelov, D., Erhan, D., Vanhoucke, V., and Rabinovich, A. (2014). Going deeper with convolutions.
Tan, H., Wu, S., Du, F., Chen, Y., Wang, Z., Wang, F., and Qi, X. (2023). Data pruning via moving-one-sample-out. Advances in neural information processing systems, 36:18251–18262.
Toneva, M., Sordoni, A., des Combes, R. T., Trischler, A., Bengio, Y., and Gordon, G. J. (2019). An empirical study of example forgetting during deep neural network learning.
Wei, K., Iyer, R., and Bilmes, J. (2015). Submodularity in data subset selection and active learning. In Bach, F. and Blei, D., editors, Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pages 1954–1963, Lille, France. PMLR.
Welling, M. (2009). Herding dynamical weights to learn. In Proceedings of the 26th annual international conference on machine learning, pages 1121–1128.
Welling, M. and Teh, Y. W. (2011). Bayesian learning via stochastic gradient langevin dynamics. In Proceedings of the 28th International Conference on International Conference on Machine Learning, ICML'11, page 681–688, Madison, WI, USA. Omnipress.
Xia, M., Malladi, S., Gururangan, S., Arora, S., and Chen, D. (2024). Less: Selecting influential data for targeted instruction tuning. arXiv preprint arXiv:2402.04333.
Xia, X., Liu, J., Yu, J., Shen, X., Han, B., and Liu, T. (2022). Moderate coreset: A universal method of data selection for real-world data-efficient deep learning. In The Eleventh International Conference on Learning Representations.
Ye, J., Borovykh, A., Hayou, S., and Shokri, R. (2024). Leave-one-out Distinguishability in Machine Learning. arXiv:2309.17310 [cs].
Zha, D., Bhat, Z. P., Lai, K.-H., Yang, F., Jiang, Z., Zhong, S., and Hu, X. (2025). Data-centric artificial intelligence: A survey. ACM Computing Surveys, 57(5):1–42.
A Notation
Let denote the space of data points and denote the underlying data distribution. We consider the standard learning problem where we have training samples from an unknown data distribution . For , write . A data selection procedure with budget identifies an index set with cardinality . Models are parameterized by a vector , and the loss incurred on an individual sample is given by . The full-dataset empirical risk is defined as , while the corresponding subset empirical risk is denoted by . For a given (randomized) learning algorithm mapping a dataset to a distribution over , the population risk of a hypothesis trained on is defined as , while the Bayes-optimal population risk is given by , the infimum being over all measurable predictors. For iterative learners, denotes the law of the iterate when training on , and at the final iteration .
B Proof of Selection Lower Bound
B.1 Lower bound
B.1.1 Data distribution and meta-distribution
Recall and . Throughout, “for large ” means for a threshold depending only on .
The subpopulations of the construction are the edges of a cubic graph whose cycles are long, so that the neighborhood of every edge is a tree. The girth cannot be made arbitrarily large, since a cubic graph of girth has at least vertices, but logarithmic girth suffices for our purposes. We use the classical fact that for every integer there is a simple cubic graph with girth at least and fewer than vertices, where the girth is the length of the shortest cycle. Rather than using a single graph of this kind, we take to be a disjoint union of copies of a small one, which allows us to control the number of edges precisely; in particular, we make it a multiple of the group size
whose value is justified below, when the groups are introduced. Let
which is at least 3 for large , and let be a cubic graph with girth at least and fewer than vertices, hence fewer than edges. We take to be the disjoint union of copies of (Figure 3), and write for its number of edges. Since and depend only on , so does ; in particular, does not depend on .

Go: cubic, girth L
→

G: a multiple of disjoint copies
Figure 3: The graph is a disjoint union of copies of a small cubic graph of large girth. The Petersen graph, which has girth 5, is shown for illustration; the actual has girth . Taking a multiple of copies ensures and .
Lemma B.1 (Properties of G). For large n:
(a) G is cubic: every vertex has exactly three incident edges. Hence .
(b) The girth of G is at least L, and .
(c) and . In particular, .
(d) Every connected set of fewer than L edges of G forms a tree.
Proof. (a) Disjoint copies of a cubic graph form a cubic graph, and counting edge endpoints gives . (b) A cycle of lies in a single copy of , so it has length at least . The bound on follows from . (c) Write . Then , which lies in , and . The number of copies is a multiple of , so . (d) A connected set of edges that contains a cycle has at least as many edges as that cycle, so at least edges by (b).
The lower bound uses only parts (a) and (c) of Theorem B.1; part (d), which is a consequence of the girth, is used in the upper bound in Section B.2.
We now define the labels and the active edges. We fix a partition of into groups of edges each, writing ; like , the partition depends only on and is known to the learner. Each distribution in the family is indexed by a pair . The first component, , assigns to each edge a label , subject to the parity constraints
(Figure 4, left). We identify the label set with , so that there are classes and an incorrect -bit string counts as a single mistake. The label length governs the comparison, made in the lower bound, between the number of bits carried by the selected sample and the number of bits needed to describe the labels. Besides bits of labels, the selected sample conveys up to bits through the choice of the index set, and the argument spends up to further bits on locating the mistakes of the learner. These overheads do not grow with , whereas the entropy of the labels grows linearly in , so they become negligible when is large compared with . At the same time, must not depend on , so that the number of classes depends only on . We take
The second component, , selects one active edge in each group; the risk will be incurred only on active edges, so that an oracle that knows needs information about a single edge per group. Choosing ensures that the active edges require at most certificate examples in expectation (Theorem B.8), while losing only a factor of when converting prediction errors across a group into test risk. Throughout, the edge plays the role of a subpopulation identity, which is part of every input, whereas its label is unknown.
We next describe the distribution of a single example. An input is a pair with and . Given the masking probability , specified below, an example is drawn as
Since the input of a clear example contains its label, a learner can predict correctly on clear inputs by copying z, and the risk is therefore determined by the masked inputs, which present an active edge with in place of its label. The two kinds of examples play different roles in . Clear examples fall on uniformly random edges, independently of h, and thus reveal labels but carry no information about the active edges. A masked example, in contrast, reveals the active edge of its group, since only active edges are masked. As explained above, should be large, because it multiplies the risk, but small enough that most groups receive no masked example in . We take

Figure 4: Left: the parity constraint equation 10 at one vertex; over , any two labels at a vertex determine the third. Right: in a graph of girth at least L, the ball of radius less than L/2 around any vertex is a tree. Edges missing from S (red, dashed) form components surrounded by observed edges (green), and by Theorem B.1(d), components with fewer than L edges are trees.
so that the expected number of masked examples in is , which is at most a fraction of the groups, irrespective of the validation size . Since and , we also have
Training, validation and test examples are i.i.d. from , and the family consists of all such . It is finite, its number of classes depends only on , and because the label is a function of the input.
For the lower bound, we place a prior on the family, the meta-distribution, under which is uniform over all valid pairs. To describe it, note that for a fixed bit position , the bit-plane satisfies equation 10 exactly when it lies in the cycle space
This is the solution set of homogeneous linear equations in unknowns, so by Theorem B.1(a). Under the meta-distribution, and are independent, is uniform on , and the bit-planes of are i.i.d. uniform on . Although the parity constraints make the labels dependent, is uniform over values, and hence
Since the family is finite, it suffices to show that the risk averaged over this prior is large.
B.1.2 Main argument
Fix a learner and a selector . Draw from the meta-distribution, then and , with independent internal randomness for and , and let . In this subsection, , , and refer to all of this randomness, and our goal is
The argument conditions on everything except the labels. Let consist of the edges of all examples in , the indicators of which of these examples are masked, and the internal randomness of and . We emphasize that excludes the inputs themselves, since the input of a clear example contains its label.
Lemma B.2 (Properties of W).
(i) W is independent of (but not of h).
(ii) , and are functions of .
(iii) Let . Given , the selected sample is a function of ; hence is a function of .
Proof. (i) The edges and the mask indicators are drawn independently of ; the masked edges depend on . (ii) Given , example equals if it is clear and if it is masked, and the selector and the learner are deterministic given their internal randomness, which is part of . (iii) For , provides and the mask indicator, so is recovered from : if example is clear and if it is masked.
A masked example in reveals the active edge of its group, so the selector can be uncertain about only if no masked example from occurs. We call a group resolved if some example in is a masked example from , and unresolved otherwise. Let be the set of unresolved groups and ; both are functions of . We count the mistakes of on all edges of unresolved groups,
The edges of resolved groups are excluded from this count, and the choice of ensures that they form a small fraction of all edges, namely at most
in expectation, a quarter of the gap .
Lemma B.3 (Few groups are resolved). For large and every , . Hence .
Proof. A single example is a masked example from with probability . A union bound over the examples, together with , and , gives
Finally, .
Although the risk involves only the active edge of each group, every mistake counted by Q contributes to it, because the active edge of an unresolved group is uniformly distributed given everything on which depends.
Lemma B.4 (Risk lemma).
Proof. We first show that is uniform on given for every . Given , the law of does not depend on , and it depends on only through the masked examples from , of which there are none if . Since is uniform and independent of , the claim follows from Bayes' rule, while is determined by by Theorem B.2(ii).
Restricting the risk to the masked inputs of unresolved groups, each of which has probability , gives
Averaging over the uniform , conditionally on , turns the j-th term into
Summing over and using ,
and taking expectations proves the lemma.
It remains to show that is of order , and it is at this step that the restriction to selected examples enters. By Theorem B.2, conditionally on we have the Markov chain
in which is a function of , is computed from by the selector, and for a fixed function . Although the selector may use every label in , the learner has access to these labels only through , and the next lemma quantifies the resulting loss.
Lemma B.5 (Bits lemma). For , it holds that .
Proof. Recall that . The proof is based on comparing the conditional entropy from above and below. Since takes at most values and, given , the labels take at most values, we have
The contribution of cannot be omitted, since a selector that observes all labels can encode information about the unselected labels in its choice of indices; the choice of B makes it negligible compared with NB.
Next, we upper bound . Let be the error indicator vector defined by , so that . Notice that, conditioned on , the label is determined by for every with ; hence is uniquely determined by specifying the labels together with the labels on the resolved groups, , where is a function of . Since takes at most values and each label is a -bit string, the chain rule of entropy gives
(16) where the last step uses Theorem B.3 and . Inequality equation 16 is a coordinatewise analogue of Fano's inequality : the term , which accounts for the error pattern, corresponds to , the term corresponds to , and the term accounts for the resolved groups, on which mistakes are not counted.
Finally, we compare the two bounds. Since is independent of by Theorem B.2(i), equation 12 gives . Conversely, since is a deterministic function of by Theorem B.2(iii), the chain rule and the fact that conditioning reduces entropy give
Combining these two bounds with equation 15 and equation 16, we obtain
and dividing by B proves the lemma.
We can now complete the proof of the lower bound.
Proof of Theorem 2.1 Lower Bound. By Theorem B.1(c), . Moreover, , , and since . Hence Theorem B.5 gives, for large ,
By Theorem B.4 and ,
which is equation 13. The left-hand side is the average over the meta-distribution of with , so some satisfies the bound. This may depend on , whereas the family does not.
B.2 Upper bound
We now fix an arbitrary member of . Probabilities in this subsection are over only, and all bounds are uniform over the family.
The learner knows the graph G and the label length B, which depend only on , but not . Given a training sample, it discards the masked examples and forms a linear system over in the unknowns , consisting of
It computes one solution by Gaussian elimination with a fixed pivoting rule, setting free variables to zero (if there is no solution, it takes ). On a clear input it outputs , and on a masked input it outputs the value of in the computed solution. The analysis of rests on the following two observations.
Lemma B.6 (Two basic facts).
(i) For every , .
(ii) Say that determines if all solutions of its linear system agree on . If determines , then is correct on , and so is for every .
Proof. (i) copies the displayed label, so it is correct on every clear input, and masked inputs have total probability . (ii) The true satisfies every equation obtained from , so it is one of the solutions, and all solutions agree on . A larger subsample only adds equations that the true satisfies, which cannot enlarge the solution set.
By Theorem B.6, both upper bounds reduce to exhibiting, for each active edge, a small set of examples that determines its label. For an edge that appears in , a single example suffices, and the other edges require the parity constraints. We call an edge observed if contains a clear example of it, and missing otherwise. For a missing edge , let be the connected component containing in the subgraph of missing edges, with edges (and for an observed edge), and let be the set of edges outside that share a vertex with . The boundary edges are all observed, since a missing edge sharing a vertex with would belong to .
We truncate at component size
by Theorem B.1(b). Since , Theorem B.1(d) shows that every component with at most edges is a tree; meanwhile, is large enough that larger components occur with probability (Theorem B.7(iii)), yet small enough () to control the variance of the oracle's budget (Theorem B.8).
The certificate of an edge is the set consisting of the smallest index of a clear example of if is observed; of the smallest index of a clear example of each edge of if is missing and ; and if is missing and , in which case we say that the certificate fails. The use of smallest indices makes a canonical subset of determined by , which the oracle retains in the proof of Theorem 2.1; Theorem B.8 does not depend on this choice, since it involves only the set of observed edges.

observed edge missing edge
Figure 5: A missing edge (red) in a component of missing edges (dashed), surrounded by the observed boundary edges (green). Removing splits the tree into two parts; summing the parity equations over the vertex set of one part cancels every edge inside and expresses as the sum of the labels of the boundary edges leaving .
Lemma B.7 (Certificates). For every edge e and every :
(i) If the certificate of e does not fail, then every subsample of S containing determines .
(ii) , , and .
(iii) The certificate of e fails with probability at most 3/s.
Proof. (i) If is observed, the subsample contains the equation . Otherwise is a tree, and removing splits it into two trees (Figure 5). Let be the vertex set of one of them (possibly a single vertex), and add up the parity equations at the vertices of . Every edge with both endpoints in appears twice and cancels, so the labels of the edges with exactly one endpoint in sum to zero. One of these edges is ; every other edge of has either both or no endpoints in , so the remaining edges in the sum lie in , and the subsample contains a clear example of each of them. Hence
is determined.
For (ii) and (iii), we first bound the probability that given edges are missing. A training example is a clear example of a fixed edge with probability . Since (Theorem B.1(c)) and by equation 11, for any distinct edges,
because . Next, every edge of is the last edge of a simple path in that starts with and consists of missing edges: take a shortest chain of edges of from to it in which consecutive edges share a vertex; by minimality, non-consecutive edges of the chain share no vertex, so the chain is a simple path. Since is cubic, for every at most simple paths with edges start with (Figure 6). Applying equation 17 to the edges of each path gives
(ii) If is missing and , then is a tree with vertices, each of degree three in , and its edges use of the edge-vertex incidences at these vertices. Hence . If is observed, then and ; if the certificate fails, then . Thus and in every case, and by equation 18, .
(iii) The certificate fails only if , which by Markov's inequality and equation 18 has probability at most .
Since the full sample contains every certificate follows directly.
Proof of Theorem 2.1. The full sample contains for every edge . By Theorems B.6 and B.7, is correct on unless the certificate of fails, which has probability at most , and the masked inputs have total probability . Therefore
using , , and .

path
an l-edge path is all missing w.p.
Figure 6: Simple paths starting with in a cubic graph: there are at most of length , and each consists of missing edges with probability at most . Since , the expected size of the component is bounded, as for a subcritical branching process.
For part (ii), the oracle is restricted to examples, but since it may depend on , it needs only the certificates of the active edges. Distinct active edges may share their certificate: all edges of a missing component with have the same certificate, consisting of one index for each edge of , so the union of the certificates contains these indices only once per component. We therefore consider
where the sum runs over components of missing edges. It satisfies
where the first inequality holds because the union consists of one index for each observed active edge and the boundary indices of the components that contain an active edge, and the second because a component containing active edges contributes to and to the sum. The next lemma shows that with high probability.
Lemma B.8 (Budget). For large n, and .
Proof. By equation 19, Theorem B.7(ii), and ,
and since , we obtain for large .
To show that concentrates, we bound the effect of replacing a single example and apply the Efron–Stein inequality. The quantity depends on only through the set of observed edges. Suppose that the status of a single edge changes, and call a component of missing edges, before or after the change, affected if it shares a vertex with . Unaffected components retain their edges, their boundary and their active edges, so their terms do not change. There are at most two affected components before the change and at most two after it: if is missing, only its own component is affected, and if is observed, at most one component meets each of its two endpoints. Each component term lies in , since , so the sum changes by at most , the first term by at most one, and by at most . Replacing one example of by an independent copy changes the status of at most two edges, namely those of the old and the new example, and therefore changes by at most .
Writing for the value of after the i-th example is replaced, the Efron–Stein inequality gives
and Chebyshev's inequality gives
☐
We now combine Theorems B.7 and B.8 to prove part (ii).
Proof of Theorem 2.1. Since minimizes over subsets of size , it suffices to exhibit a subset of size , which may depend on as does, and to bound \mathbb{E}_S[R_P(\mathcal{A}^*(S_\widetilde{I}))]. Call good if . If is good, let contain the union of the certificates of the active edges, which by equation 19 has at most indices, together with arbitrary further indices to reach exactly . If is not good, let .
If is good, contains the certificate of every active edge, so by Theorems B.6 and B.7 it determines the label of every active edge whose certificate does not fail. Hence errs only on inputs whose certificate fails, each of probability . If is not good, the risk is still at most by Theorem B.6(i). By Theorem B.7(iii) and Theorem B.8,
Since and for large , the bracket is at most . Since ,
using in the last step. The constants and the threshold depend only on , which completes the proof of Theorem 2.1.
C KL divergence in parameter space upper bounds the faithfulness error
Proof. Let and , and write . If , the claim is immediate. Otherwise, set . Since and are both probability measures, , so
Because takes values in , we have pointwise, and therefore
where is the total variation distance. Pinsker's inequality gives
Combining the two bounds yields
The argument applies directly to , so no separate treatment of the positive and negative parts is needed. This proof applies to every measurable bounded in .
D Proof of the gradient trajectory upper bounding the faithfulness
Proof. For a sample , let be its empirical loss, and let be the ULA chain
started from the same initial law for both samples. Write for the law of , so that and , and let be the law of the path . Recall that
Since is continuously differentiable, the map is continuous, so the transition kernels
are measurable. For fixed and , the kernels and are Gaussians with the same covariance and means that differ by . The KL divergence between two Gaussians with a common covariance is , so
Both chains are Markov with the same initial law and use the same Gaussian noise structure, so the chain rule for KL divergence on Markov paths gives
The outer expectation is under the marginal of the first path law, which is why involves only the full-data chain. Thus:
By Jensen's inequality, for every , , so
The integrability assumption on under , for , therefore ensures that every term of is finite.
The map pushes and forward to and . Data processing for KL divergence then yields
E Proof of the quadratic program formulation of subset selection by optimizing the gradient trajectory
Proof. Write , , so that , and . Since for every ,
For , linearity gives
so . Finally, for ,
and therefore
Since is a bijection from subsets of size onto , minimizing over such subsets is the stated integer program.
F Construction and analysis of the Swap algorithm
Setup. Write . For , let be the objective of Theorem 4.4, so that , and let
Since and , is convex and already centered. Fix
and write . Given an iterate with stored , let
The pair minimizes the linearized change over all exchanges.
Algorithm 2 Gradient-ranked single-swap descent (indicator form)
1: Initialize with , and query to store . 2: Compute from and set . 3: for do 4: Choose , and as above. 5: Set and . 6: if then 7: return . 8: Set , query , and store . 9: Compute . 10: if then 11: Set and store . 12: else 13: return .
This is Algorithm 1 written on indicator vectors, with an early exit and the bookkeeping of and . Neither changes the iterates, as shown below.
F.1 Proof of the swap gap
Proof. Let , so that . Since is quadratic,
and with , so . Hence a candidate is accepted if and only if . Moreover, if then , so the candidate would be rejected anyway. The early exit therefore does not change the iterates, and the algorithm coincides with Algorithm 1.
(i) Since , both and its complement are nonempty, so and exist for every tie-breaking rule. Hence , and by induction every has size . Every accepted swap satisfies , so the values are strictly decreasing and the accepted subsets are pairwise distinct. There are only subsets of size , so at most swaps are accepted. The first rejected candidate (or the early exit) then makes the algorithm return .
(ii) By (i), for every and every tie-breaking rule, so . For uniform on the subsets of size , we have and for . Therefore
Since , we have , and hence
Finally, with ,
so that .
G Experimental details
G.1 Caveat on the train / validation split
The reference trajectory is trained on a single random 90%/10% split (seed 42), whereas the selection experiments use five seeds, each with its own split. Only one seed therefore shares its pool with the reference run. For the other four, the selection pool and the reference pool are different 45,000-example draws from the same 50,000 images, overlapping on about 90% of their elements. For these seeds, both the checkpoints used to compute and the full-data model in the faithfulness gap of Figure 1 come from rather than . We did not retrain a reference trajectory per seed because of the cost ( the most expensive step).
G.2 More empirical details
For each (dataset, architecture) pair we train one full-data model on the pool of seed 42 with the protocol of Section 5, and store the parameters at the end of selected epochs, together with the step index and learning rate of that epoch. The same reference trajectory is used for all five seeds (see caveat in Section G.1).
We use the SGD objective: , where is the cosine-schedule learning rate of the epoch in which checkpoint was saved, with . The weights are normalized to sum to one, so is a weighted mean over checkpoints. This rescales but changes no swap decision.
Checkpoints used for selection. For checkpoints we take the stored epochs closest to points equally spaced in optimizer-step time between epoch 1 and epoch 300. Hence gives the epoch-1 checkpoint, and gives approximately epochs 1, 100, 200, 300. Baseline comparison experiments (Figure 2) use ; Section J varies .
H Empirical correlation between faithfulness error and trajectory gradient discrepancy
Below, we provide results for other settings showing the correlation between the faithfulness error and the estimate of the proxy, . We use similar settings as those explained in Section 5 and Section G. The estimate of is computed using a single training run on 45,000 sampled points from the training dataset.
Reference trajectory. For each of the six (dataset, architecture) pairs, we train one model on the 45,000 sampled training points using SGD, batch size 128, initial learning rate 0.01 annealed by a cosine schedule over 300 epochs, and we store the parameters . This run plays the role of and is the only training on that the proxy needs.
Estimating the discrepancy. For a candidate subset I we evaluate
the sum running over the stored checkpoints, with weights normalised to sum to one. The two mean gradients are computed exactly, over all trainable parameters and over the whole pool. Examples are viewed through the deterministic test transform and the network is in evaluation mode, so each per-example gradient is a well-defined function of alone. This replaces the expectation over by its value at a single realised trajectory.
Candidate subsets and faithfulness error. The points of each panel are the subsets returned by the selection methods of Section 5, including swap-descent variant, at retention fraction 0.1 and over the 5 seeds; one point is one (method, seed) pair, with no averaging. Every subset is retrained from a shared initialization with the same optimizer, schedule and number of epochs as the reference run, and the official test set is evaluated once, after the final epoch. Each panel fixes the dataset, the architecture and the selection ratio is set to 10%.
Results. Figure 7 reports the Pearson correlation between the estimated faithfulness and the estimated , pooled over methods and seeds within each panel. It exceeds 0.70 in all six settings, so across architectures and datasets the subsets with the largest trajectory gradient discrepancy are also the ones whose retrained model departs most from full-data training.

(a) VGG16
(b) ResNet18

(c) Inception

(d) VGG16

(e) ResNet18

(f) Inception
Figure 7: Correlation between the empirical faithfulness gap and the estimate of the proxy . Consistent correlation is shown across datasets (CIFAR10, first row, CIFAR100 second row) and architecture. The zoomed insets show the boxed region.
I Gradient-Swap with warm starts
In order to show the benefit of minimizing the proxy as a way to improve the faithfulness of a subset, we ask whether, starting from a subset obtained by a given data selection method—we pick GraphCut (one of the best-performing baselines), Random, Herding, and EL2N (one of the least-performing ones)—applying swaps of Gradient Swap improves both the objective and downstream accuracy. As expected from Theorem 4.6, the swaps lower for every starting selector, even though checkpoints are used for the swaps and all 300 are used for evaluation. The downstream accuracy results reflect the one-sided nature of Corollary 4.2: once a selector already lies inside the low- faithfulness envelope
Table 2: Warm start of full-network Gradient Swap on cifar10 / resnet18 at 10% of the pool. Accuracy is the last logged test epoch. is the full-network objective on every reference checkpoint. The after columns are exact full-network Gradient Swap at started from the baseline subset. Mean and standard deviation are over 5 seeds.
| Method | Acc. before | Acc. after | before | after |
|---|---|---|---|---|
| GraphCut | ||||
| Herding | ||||
| Random | ||||
| EL2N |
Table 3: Test accuracy (%) of full-network Gradient Swap on CIFAR10. Values are mean standard deviation over seeds.
| Architecture | Test accuracy | ||||
|---|---|---|---|---|---|
| 10% | 20% | 40% | 50% | ||
| ResNet-18 | 1 | ||||
| ResNet-18 | 4 | ||||
| ResNet-18 | 10 | ||||
| ResNet-18 | 15 | ||||
| ResNet-18 | 20 | ||||
| VGG-16 | 1 | ||||
| VGG-16 | 4 | ||||
| VGG-16 | 10 | ||||
| VGG-16 | 15 | ||||
| VGG-16 | 20 | ||||
| Inception | 1 | ||||
| Inception | 4 | ||||
| Inception | 10 | ||||
| Inception | 15 | ||||
| Inception | 20 | ||||
(GraphCut, Herding, and Random), the upper bound is already small and further reducing leaves test accuracy unchanged within one standard deviation. Conversely, for EL2N, whose subsets severely violate trajectory fidelity (), just swaps reduce by 16% and improve test accuracy by 2.6 percentage points, although it remains far from the other selectors. This confirms that acts as a one-sided safety certificate: it is most informative for diagnosing and repairing unfaithful subsets, whereas further decreases in the low-discrepancy regime do not translate into additional accuracy gains.
J Ablation study on the number of used checkpoints
Tables 3 and 4 show the results of the checkpoint ablation on CIFAR10 and CIFAR100. Using the same setting as the aforementioned experiments, we can see that the number of used checkpoints does not consistently affect test accuracy for three architectures, motivating the use of as a computational simplification for the estimation of .
Table 4: Test accuracy (%) of full-network Gradient Swap on CIFAR100. Values are mean standard deviation over seeds.
| Architecture | Test accuracy | ||||
|---|---|---|---|---|---|
| 10% | 20% | 40% | 50% | ||
| ResNet-18 | 1 | ||||
| ResNet-18 | 4 | ||||
| ResNet-18 | 10 | ||||
| ResNet-18 | 15 | ||||
| ResNet-18 | 20 | ||||
| VGG-16 | 1 | ||||
| VGG-16 | 4 | ||||
| VGG-16 | 10 | ||||
| VGG-16 | 15 | ||||
| VGG-16 | 20 | ||||
| Inception | 1 | ||||
| Inception | 4 | ||||
| Inception | 10 | ||||
| Inception | 15 | ||||
| Inception | 20 | — | |||
K Johnson-Lindenstrauss Embeddings Ablation
Following Xia et al. (2024), we attempt dimensionality reduction techniques (Johnson Lindenstrauss Embeddings (Johnson et al., 1984)) on the gradient to reduce the computational and storage cost of algorithm 1. Full-network Gradient Swap stores one aggregate gradient per checkpoint. A count sketch of width replaces each aggregate by its image in , and the swap test is exact for that sketched objective. In Tables 5 and 6, we compare with the exact aggregates on CIFAR-10 with ResNet-18 (), at checkpoint counts and subset fractions , and . Each entry is the mean test accuracy and the standard deviation over five seeds. The sketch does not change the selected subset's accuracy. At every fraction and both values of , the three sketched runs sit on the exact run: the largest gap is points (, , ), and that gap is smaller than the seed standard deviation of either run. From upward the gaps are about points. Width is already enough. Increasing to or does not produce a further gain, and the same match holds when the trajectory grows from one checkpoint to four. The embedding can therefore be used in place of the exact aggregates.
Table 5: Test accuracy (%) on CIFAR-10 with ResNet-18 at . is the exact aggregate. Mean and standard deviation over five seeds.
| Fraction | ||||
|---|---|---|---|---|
| 10% | ||||
| 20% | ||||
| 40% | ||||
| 50% |
Table 6: Test accuracy (%) on CIFAR-10 with ResNet-18 at . is the exact aggregate. Mean and standard deviation over five seeds.
| Fraction | ||||
|---|---|---|---|---|
| 10% | ||||
| 20% | ||||
| 40% | ||||
| 50% |
L Selected examples for each selection method
For each dataset and architecture we show the training images selected at 10% of the pool (seed 42). Each row is one method: Gradient Swap using full-network gradients and a single checkpoint (), then Random, Herding, Moderate, EL2N, MoSo, GraphCut, and Facility Location. From that method's saved subset we draw six examples without replacement. The stored indices are positions in the 90% training pool; we map them back to the original training set by replaying the same seed-42 split, and we display the raw images with no crop, flip, or normalization. The label under each image is its class.
CIFAR-10 / VGG-16, 10% subset, seed 42
Gradient Swap

deer
frog
deer
cat
deer
truck
Random

cat
frog
frog
horse
dog
deer
Herding

automobile
truck
horse
horse
dog
truck
Moderate

airplane
truck
truck
deer
cat
airplane
EL2N

cat
frog
cat
bird
dog
bird
MoSo

horse
dog
frog
ship
ship
cat
GraphCut

deer
dog
truck
cat
airplane
cat
Facility Location

cat
deer
frog
horse
horse
truck
CIFAR-10 / Inception, 10% subset, seed 42
Gradient Swap

deer
frog
automobile
ship
deer
bird
Random

cat
frog
frog
horse
dog
deer
Herding

frog
deer
bird
ship
truck
deer
Moderate

truck
deer
bird
frog
airplane
cat
EL2N

cat
horse
deer
cat
cat
cat
MoSo

frog
ship
dog
airplane
dog
frog
GraphCut

truck
cat
frog
automobile
deer
horse
Facility Location

bird
frog
frog
cat
cat
automobile
CIFAR-10 / ResNet-18, 10% subset, seed 42
Gradient Swap

dog
cat
ship
automobile
frog
frog
Random

cat
frog
frog
horse
dog
deer
Herding

ship
ship
ship
bird
deer
dog
Moderate

horse
airplane
ship
cat
dog
automobile
EL2N

cat
cat
cat
bird
bird
airplane
MoSo

frog
automobile
automobile
ship
frog
cat
GraphCut

frog
truck
bird
truck
deer
cat
Facility Location

truck
truck
frog
cat
bird
automobile
CIFAR-100 / VGG-16, 10% subset, seed 42
Gradient Swap

bear
house
hamster
dolphin
bicycle
clock
Random

snail
can
bus

lamp

rabbit
clock
Herding

sunflower
bee
porcupine
lion
wardrobe
bridge
Moderate

willow tree
bowl
skyscraper
bear
crocodile
beetle
EL2N

cattle
forest
raccoon
baby
possum
forest
MoSo

house
crocodile
skyscraper
cattle
spider
couch
GraphCut

mouse
wolf
man
lawn mower
forest
girl
Facility Location

apple
camel
cup
bear
pickup truck
lion
CIFAR-100 / Inception, 10% subset, seed 42
Gradient Swap

train
flatfish
mountain
chimpanzee
clock
poppy
Random

snail
can
bus

lamp

rabbit
clock
Herding

mouse
cup

can
woman
table
crocodile
Moderate

dinosaur

aquarium fish
mountain
crab
shark
possum
EL2N

girl
shrew
beetle
otter
bear
porcupine
MoSo

bottle
lamp
bus
mouse
palm tree
mountain
GraphCut

woman
lion
ray
rose
telephone
boy
Facility Location

mushroom
telephone
tiger
cloud
pine tree
beaver
CIFAR-100 / ResNet-18, 10% subset, seed 42
Gradient Swap

willow tree
table
spider
cup
leopard
orange
Random

snail
can
bus

lamp

rabbit
clock
Herding

raccoon
plain
mountain
spider
tractor
seal
Moderate

can
maple tree
orange
pickup truck
aquarium fish
wardrobe
EL2N

leopard
otter
television
squirrel
possum
seal
MoSo

table
pickup truck
mushroom
flatfish
caterpillar
oak tree
GraphCut

shrew
pear
kangaroo
chair
cup
orange
Facility Location

willow tree

lizard
sunflower
38
lawn mower
man
lamp