Adversarial training makes image classifiers resistant to small, deliberately crafted input perturbations. It does this by attacking every training example at every step and then training on the attacked version, which makes it roughly ten times more expensive than ordinary training. Data pruning looks like the obvious fix: find the few examples that matter and train only on them. The catch is that deciding which examples matter costs something too. Existing adversarial pruning methods pay for extra attacks, margin searches, or gradient-matching solves over the whole dataset, sometimes repeatedly, and they report speedups without always charging that cost to the bill.
Our proposal is that, in adversarial training, most of the information needed to rank examples is already computed and then thrown away. A single-step attack computes each example's logits and its input gradient. From those two quantities you can form a first-order estimate of how far the example sits from the decision boundary, which we call its margin, at no extra cost. We propose to collect these "free margins" during a short full-data warm-up that is itself useful training. We then use the same number for three jobs: pruning, setting a per-example attack radius, and deciding where an expensive anti-collapse regularizer is actually needed. Because one score covers both "keep easy" and "keep hard" selection, the same machinery can also test a sharp disagreement in the literature about which examples robustness needs.
Core Claim
For an example $x_i$ with label $y$, logits $z(x_i)$, and strongest wrong class $j^*$, the linearized distance to the boundary under an $\ell_\infty$ attack is
$$ \hat r_i = \frac{z_y(x_i) - z_{j^*}(x_i)}{\left\|\nabla_x\big(z_{j^*}(x_i) - z_y(x_i)\big)\right\|_1}. $$
This is the first step of DeepFool, the boundary-distance search used as the scoring tool in PUMA. During single-step (FGSM-style) adversarial training, the numerator comes from the forward pass. The denominator is well approximated by the loss input gradient $g_i = \nabla_x \mathcal{L}$, which the attack must compute anyway. When the predicted probability mass concentrates on $y$ and $j^*$, the loss gradient is approximately $(1-p_y)$ times the gradient of the logit difference, where $p_y$ is the probability of the true class. We average $\hat r_i$ over the first $E$ epochs, in the spirit of the epoch-averaged scores of EasyCore and DUAL.
The claim has three parts, all falsifiable:
- The averaged $\hat r_i$ rank-correlates strongly with full DeepFool margins computed on a robust checkpoint.
- Pruning on $\hat r_i$, combined with PUMA-style per-example radii set from $\hat r_i$, matches PUMA's robust accuracy while cutting selection cost to essentially zero.
- The result sits on a better robust-accuracy-versus-total-compute curve than random pruning and than simply training on the full data for fewer epochs.
The existing work is close but different in what it pays for:
- Kaufmann et al. also reuse an early-epoch byproduct, the epoch-3 loss under random-start FGSM. Loss conflates distance to the boundary with local steepness, and they neither set per-example radii nor evaluate under AutoAttack.
- PUMA uses exact margins but pays an iterative DeepFool search on every example and needs a pretrained model.
- EasyCore scores with the average input gradient norm. That is exactly the denominator of $\hat r_i$ with the logit gap missing, and it spends dedicated early epochs computing it.
Research Program
The first component is measurement. We will instrument FGSM-with-random-start and GradAlign training to log, per example and per epoch, the logit gap, the input-gradient $\ell_1$ and $\ell_2$ norms, and whether the one-step attack flipped the prediction. When GradAlign is active we also log the cosine alignment between gradients at two nearby points. The logging costs only memory.
On a subset, we compare $\hat r_i$ against three references:
- exact DeepFool margins, as PUMA computes them;
- the bisection margins of Max-Margin Adversarial training, which searches along a multi-step attack for the shortest perturbation that flips the prediction;
- a variant of $\hat r_i$ that uses the true logit-difference gradient, which costs one extra backward pass. This isolates the error introduced by substituting the loss gradient.
The second component is the pruning policy. After $E$ warm-up epochs, which we charge to the training budget rather than to selection, we keep a fraction of the data chosen by $\hat r_i$. The single score lets us sweep the selection direction continuously, from EasyCore-like (keep large margins) to PUMA-like (keep small margins), under one metric. Retained examples whose $\hat r_i$ is below the target radius $\epsilon$ are attacked with a shrunken radius $\epsilon_i = \max(\alpha\hat r_i, \epsilon_{\min})$. This guards against the "bullying" effect PUMA identified: when a small-margin example is attacked with the full radius, the perturbation carries it across the boundary, and training on it acts like training on a mislabeled example.
Retained examples continue to be rescored for free because they keep being attacked. To avoid the periodic full-dataset attack pass that Adversarial Coreset Selection requires every $T$ epochs, we refresh a small random slice of the pruned pool each epoch. Refreshed examples whose margin has shrunk rejoin the training set. This spreads the rescoring cost evenly over training instead of concentrating it in spikes.
The third component tests a mechanism. Andriushchenko and Flammarion showed that single-step training collapses ("catastrophic overfitting") when the loss surface stops being locally linear. They fixed it with GradAlign, which costs extra gradient computations on every example. We hypothesize that the collapse is driven disproportionately by small-margin examples attacked at the full radius. If so, radius adaptation plus pruning should either prevent the collapse on its own or allow GradAlign to be applied only to the low-alignment minority.
The fourth component is an analysis that could resolve the disagreement between EasyCore and PUMA. EasyCore discards hard, boundary-adjacent examples and trains with a fixed radius. PUMA keeps them but shrinks their radius. Our hypothesis is that both papers observe the same harm, fixed-radius bullying of small-margin examples, and simply cure it in opposite ways. The second difference between the papers is data scale: EasyCore uses the original 50k images, while PUMA uses millions of synthetic ones, where redundancy among large-margin examples is plausibly much higher.
Baselines
The naive reference points are uniform random pruning and a compute-matched short schedule on the full data. Random pruning is run at the same retention fractions with the same fast-training recipe. The short schedule trains on all data with an identical recipe for as many epochs as the pruned run's total GPU-hours allow. The short schedule is the most dangerous naive baseline, because pruning papers usually compare against full training at full epochs rather than at equal compute. No reported result for either baseline at matched total compute was found on Lacuna. We will beat them only if our curve dominates both across at least two retention levels, with gaps larger than seed variance over three seeds.
The strongest existing method on this exact question is PUMA (PUMA: Margin-Based Data Pruning), which prunes with exact DeepFool margins and adapts per-example radii. Its authors report improving a ResNet-18 on CIFAR-10 with EDM synthetic data from 87.87% to 91.37% clean accuracy "while maintaining robustness (~58.5%)" when pruning 20–30% of the data.
- How it will be run: we reimplement PUMA with the same synthetic pool, architecture, training objective (TRADES, as PUMA uses), epoch budget, and hyperparameter search budget as our method. Its DeepFool pass is charged to total compute.
- What counts as beating it: matching its AutoAttack robust accuracy within one point at lower total GPU-hours, or exceeding it at equal GPU-hours.
The other selection competitors are run in the same way:
- EasyCore reports a "5% boost in adversarial accuracy on CIFAR-100 compared to uniform" sampling under TRADES.
- Adversarial Coreset Selection reports cutting TRADES training on CIFAR-10 "from ~344 minutes to ~179 minutes while only losing about 2.7% in robust accuracy."
- Importance Extrapolation reports "81.38% robust accuracy" against a "79.98%" baseline on CIFAR-10 with synthetic data. We will evaluate it under our AutoAttack protocol rather than rely on that figure.
On the training side, full-data GradAlign is the reference for how much a better attack buys without pruning.
Three ablations isolate our key ingredients:
- $\hat r_i$ versus exact DeepFool margins with everything else fixed, which isolates the cost of approximation;
- pruning with and without per-example radii, which isolates the bullying mechanism;
- $\hat r_i$ versus its denominator alone (EasyCore's score) and its numerator alone (the logit gap), which checks whether the ratio carries information that neither part does.
Why not just…?
Why not just prune at random, since it costs nothing? It is a real threat. Chasing Random found that elaborate selection often fails to beat random sampling for instruction tuning. Our method also costs almost nothing, so the comparison is purely about ranking quality at equal compute. On the other side, Robustness-Aware Coreset Selection reports beating random at every speedup ratio, but in contrastive learning and with a paid selection step. The matched-compute Pareto experiment settles this directly. If random matches us at 50% retention and loses only at 20%, we will report that honestly.
Why not just use fast adversarial training on all the data and skip pruning? Single-step training with GradAlign already removes most of the attack cost, and it avoids the collapse in which standard FGSM falls to "~0% robustness" at $\epsilon=16/255$ (Andriushchenko and Flammarion). We do not compete with it; we build on it, since our signal comes from its attack step. The real question is whether pruning adds anything on top of it. Li et al. found that pruning and adaptive attack budgets compound, going from 3.44x to 5.66x on CIFAR-10 (Less is More). The full-data GradAlign short-schedule baseline is exactly the test of whether that compounding survives compute matching.
Why not just score with a cheap clean-trained model, as DUAL and EasyCore do? A small proxy tax may be acceptable. However, Nieth et al. found "only a 37% overlap" between examples important for standard and for adversarial training, so clean trajectories may point at the wrong examples. We will include DUAL scores from Cho et al. and clean-proxy EasyCore scores as selection baselines. If they match free margins, the adversarial signal is unnecessary and the contribution shrinks to radius adaptation.
Why not just run PUMA, since exact margins are strictly better information? On a 50k-image dataset the DeepFool pass may be cheap enough not to matter, and that is precisely where our method could lose. The advantage should grow with pool size, so we measure the selection-cost share of total compute at 50k and at 1M images. We state in advance that, if exact margins win at equal compute on the large pool, the claim fails.
Proposed Experiments
Datasets and models. The experiments use CIFAR-10 and CIFAR-100 with ResNet-18, and CIFAR-10 with 1M EDM diffusion images, the regime used by PUMA and Nieth et al., with ResNet-18 and WideResNet-28-10. ImageNet-100, where Adversarial Coreset Selection reports a "nearly 1000-minute reduction", serves as the scale check.
Evaluation. Robust accuracy is measured with the full AutoAttack ensemble through RobustBench at $\ell_\infty$ radius 8/255, alongside clean accuracy. RobustBench documents robustness overestimates "sometimes by more than 10%" under weaker attacks, which matters here because per-example radius shrinkage could mask gradients. Every run reports total GPU-hours including selection, and results are plotted as robust accuracy against total compute.
Four decisive checks.
- Fidelity. We compute Spearman correlation between averaged $\hat r_i$ and DeepFool margins on a robust checkpoint. If it is weak, the method reduces to Kaufmann-style loss filtering, and we would pivot to spending a small fraction of the budget on exact margins for ambiguous examples only.
- The compute-matched curve. This compares free margins against random pruning, the full-data short schedule, PUMA, and EasyCore at 30%, 50%, and 70% retention.
- The disagreement test. This is a crossing of selection direction (keep large versus keep small margins) with radius policy (fixed versus adaptive), repeated at 50k and 1M images. It predicts that small-margin retention wins only with adaptive radii, and that the win is larger on the synthetic pool.
- The collapse test. At $\epsilon=16/255$, we run FGSM without GradAlign on margin-pruned, radius-adapted data, then GradAlign restricted to low-alignment examples. We report whether the collapse is avoided and how much of GradAlign's extra cost is removed.
References
- PUMA: margin-based data pruning
- Efficient Adversarial Training With Data Pruning
- The Easy Path to Robustness: Coreset Selection using Sample Hardness
- Max-Margin Adversarial (MMA) Training: Direct Input Space Margin Maximization through Adversarial Training
- Adversarial Coreset Selection for Efficient Robust Training
- Understanding and Improving Fast Adversarial Training
- Large-Scale Dataset Pruning in Adversarial Training through Data Importance Extrapolation
- Chasing Random: Instruction Selection Strategies Fail to Generalize
- Efficient Adversarial Contrastive Learning via Robustness-Aware Coreset Selection
- Less is More: Data Pruning for Faster Adversarial Training
- Lightweight Dataset Pruning without Full Training via Example Difficulty and Prediction Uncertainty
- RobustBench: a standardized adversarial robustness benchmark