arXiv:2610.21201cs.LGOct 2026

Manuscript Offprint

arXiv:2610.21201

Hard Way, The Only Way: Provable Merits of Training on Hardest Examples

Elvis Dohmatob

Abstract

Despite a surge of empirical interest in the “unreasonable effectiveness” of drastic data pruning for AI systems, a unified theoretical understanding of this phenomenon remains elusive. In this work, we provide a precise high-dimensional theory of learning under data pruning via weighted empirical risk minimization (ERM). As in previous work, we analyze a setting where pruning is performed along a one-dimensional subspace of the input space. Our analysis precisely characterizes the limiting test error curves in the regime where the input dimension N and sample size P tend to infinity with a fixed ratio N/P. The resulting theory recovers several recent results in the literature as special cases and provides a general lens to evaluate how pruning strategies interact with the loss function and label noise. Crucially, we characterize the optimal pruning strategy in the high-sample regime where P greatly exceeds N. We demonstrate that strategic pruning can accelerate the decay of classification test error from the classical sqrt(N/P) rate, typical of vanilla ERM with loss functions without exponential tail (e.g., quadratic loss), to the much faster Bayes-optimal scaling of order N/P. In this setup, we prove that, surprisingly, this optimal performance is achieved by a drastic pruning strategy: discarding almost all training data except for a small proportion, consisting strictly of the 2N hardest training examples.

1. Introduction

Data curation—encompassing filtering, reweighting, and strategic pruning—has become a cornerstone of modern AI training pipelines. Despite its empirical success, the statistical principles governing these interventions remain poorly understood. Recent studies demonstrate that aggressive pruning can yield striking efficiency gains: training on carefully curated subsets of “challenging” examples can match, or even exceed, the performance of models trained on significantly larger, unrefined datasets (Sorscher et al., 2022; Ye et al., 2025; Muennighoff et al., 2025; Dohmatob et al., 2026), while using only a fraction of the resources (FLOPs). These findings raise several fundamental questions for data-centric learning, perhaps the most important being: Under what conditions is it statistically optimal to discard the majority of available data?

A preliminary theoretical explanation was offered by Sorscher et al. (2022), who employed replica-symmetric calculations within a modified Gardner problem (Gardner, 1988; Gardner and Derrida, 1988). Their analysis suggested a qualitative phase transition in optimal data selection: ‘easy’ examples should be prioritized in undersampled regimes, while

“hard” examples are preferable in oversampled regimes. Similar conclusions were reached by Dohmatob et al. (2026) using random matrix theory (RMT). However, these works do not provide formal proofs of optimality. Furthermore, the Gardner-style frameworks used in prior work are more closely aligned with hard-margin methods than with the weighted empirical risk minimization (ERM) objectives used in practice. Consequently, it remains unclear whether these principles extend to settings involving smooth loss functions, label noise, and explicit example weighting.

Main Contributions. This paper establishes a high-dimensional theory of weighted ERM under data-dependent selection, treating hard pruning as a limiting case. Our contributions are four-fold.

– A general theory of weighted ERM. We study binary classification and regression in the proportional asymptotic regime, where the input dimension N and sample size P diverge with fixed ratio ϕ=N/P\phi = N/P. Examples are weighted as a function of a one-dimensional projection of the input, providing a tractable abstraction of selecting examples by difficulty. Using the replica method from statistical mechanics (Mézard et al., 1987), in Section 3 we derive analytic formulae for the limiting test error across a broad family of weighting rules, pruning rules, loss functions, and label-noise models. This yields a unified framework for understanding how data selection interacts with the training objective and the noise structure in weighted ERM (Shimodaira, 2000; Vogel et al., 2021).

– Precise characterization of optimal data pruning. We give a sharp characterization of the optimal pruning strategy in the regime where the sample size P is much larger than the input dimension N. For the solvable ERM with ridge regularization, the classification test error decays at the classical slow rate P−1/2P^{-1/2}. We show in Section 5 that suitable pruning accelerates this decay to the Bayes-optimal fast rate P−1P^{-1}. The optimal strategy is extreme: discard almost all training data and retain only a vanishing fraction, consisting precisely of the 2N hardest examples. Thus, in this regime, “keep hard” (Sorscher et al., 2022; Dohmatob et al., 2026) is not merely a useful heuristic, but the optimal way for weighted ERM to overcome the suboptimal asymptotics of full-data training. This also gives theoretical grounding to recent empirical observations about the merits of drastic data pruning in LLM fine-tuning (Ye et al., 2025).

– Recovery of known results. Our framework recovers several existing predictions as special cases, including the qualitative ‘keep easy’ versus ‘keep hard’ transition suggested by prior analyses (Sorscher et al., 2022; Dohmatob et al., 2026). In particular, it places these predictions within a broader ERM-based framework and distinguishes which aspects persist beyond the modified Gardner problem and hard-margin settings considered in earlier work. Our theoretical predictions are exactly confirmed by simulations across the regimes we study, providing a precise account of when aggressive data selection improves learning and how “less is more” can arise within standard ERM.

– Mitigating model collapse. Finally, in Section 6 we show rigorously that aggressive data pruning can mitigate model collapse (Shumailov et al., 2024; Dohmatob et al., 2024a, 2025). In particular, pruning can improve learning by concentrating training on “easy” examples, which carry the strongest signal aligned with the pruning oracle. This provides formal support for recent suggestions that selective data retention can slow or prevent collapse in recursively trained models (Feng et al., 2025; Dohmatob et al., 2026).

A detailed overview of the literature is presented in Section 7.

Figure

Figure 1: Optimal Data Pruning for Classification in P≫NP \gg N Regime. Empirical illustration of Theorem 5 in the case of perfect generator and pruning direction. Left. Achieving the fast Bayes-optimal error rate P−1P^{-1} via pruning, compared to the classical P−1/2P^{-1/2} rate, where P is the sample size. Solid lines represent experiments (5 runs). Notice the perfect match with our theoretical predictions (broken lines). Right. Illustrating the optimality of selecting only the p=popt:=2ϕp = p_{opt} := 2\phi hardest examples (vertical lines) from the training dataset, where ϕ:=N/P\phi := N/P. For p>2ϕp > 2\phi, the test error scales like ϕp\sqrt{\phi p} (broken lines). For these experiments, the input dimension is fixed at N = 40, while the sample size P is varied according to P=N/ϕP = N/\phi. Refer to Appendix A for experimental details.