Some attacks on image classifiers change only a handful of pixels, but change them by a lot. Think of a sticker on a stop sign or a few dead sensor pixels. These are called sparse, or $l_0$-bounded, attacks, because the attacker's budget counts how many pixels move, not how far. Defending against them requires adversarial training on sparse attacks: the model is trained on examples perturbed by the strongest attack we can compute. This is expensive, because finding the worst few pixels is a combinatorial search. The cheap version uses a one-step attack, and it breaks down in a specific way. The model learns to beat the weak training attack and then drops to near 0% accuracy against a strong multi-step attack, a failure called catastrophic overfitting. Understanding and Improving Fast Adversarial Training against $l_0$ Bounded Perturbations traces this failure mainly to where the cheap attack chooses to put its pixels, rather than to how strongly it perturbs them.
This note proposes a curriculum learning fix aimed at that location problem, and deliberately not at attack strength. Curriculum learning here means ordering training from easy to hard. Early in training, the one-step attack spreads a fixed amount of "mask mass" softly over many candidate pixels. Over the course of training, that spread is sharpened into a hard choice of exactly $k$ pixels. The model therefore first learns against diffuse, smooth-landscape perturbations and only later against true sparse ones. The bet is that this sharpening schedule is the ingredient that matters. The obvious alternative, ramping the pixel budget $k$ upward, leaves the location problem untouched.
Core Claim
Curricula for adversarial training so far grow a continuous difficulty knob. Curriculum Adversarial Training grows the number of attack iterations against dense $l_\infty$ attacks and mixes earlier levels into each batch. SAT: Improving Adversarial Training via Curriculum-Based Loss Smoothing paces difficulty by loss sharpness or class-probability margin, again for $l_\infty$. A Closer Look at Curriculum Adversarial Training: From an Online Perspective justifies small-radius-first schedules. Its argument is that generalization error grows with the cumulative Wasserstein shift between successive training distributions, and that the damage is worst while parameters are unstable.
That argument has a hole for sparse attacks. Raising $k$ by one adds a new pixel coordinate, so the support of the perturbation jumps and the training distribution does not move smoothly. Our claim is that annealing a continuous relaxation of the location mask does move smoothly, and so it is the curriculum the Shi and Liu analysis actually recommends for $l_0$. We further claim that it reduces catastrophic overfitting by improving location exploration early, not by changing the final threat model.
Concretely, the one-step attack scores pixels, as in Sparse-PGD, and builds a mask
$$m_T = \Pi_k\big(\mathrm{softmax}(s/T)\big),$$
where the terms are defined as follows. The vector $s$ holds the per-pixel gradient scores. The temperature $T$ controls how spread out the mask is. The operator $\Pi_k$ clips entries to $[0,1]$ and rescales them so they sum to $k$. The perturbation is $\delta = p \odot m_T$, where $p$ is the unrestricted per-pixel magnitude, following the factorization in Sparse Adversarial Attack via Perturbation Factorization.
At large $T$, the $k$ units of mask mass are spread across many pixels, which behaves like an $l_1$-style dense perturbation. As $T \to 0$, the mask becomes an exact top-$k$ binary mask. Training anneals $T$ from $T_0$ to 0 over the first part of the schedule and finishes with hard masks only.
Two prior findings shape this design. Towards Stable and Efficient Adversarial Training against $l_1$ Bounded Adversarial Attacks shows that denser training perturbations avoid catastrophic overfitting in $l_1$ training, which motivates starting dense. Towards Efficient Training and Evaluation of Robust Models against $l_0$ Bounded Adversarial Perturbations shows that $l_1$-, $l_2$- and $l_\infty$-trained models stay vulnerable to $l_0$ attacks. That constrains the design: the curriculum must end at the true sparse threat, not stay dense.
The idea also borrows from homotopy attacks. Sparse and Imperceptible Adversarial Attack via a Homotopy Algorithm and $\sigma$-zero relax the $l_0$ constraint and tighten it within a single attack's iterations. We move that relaxation to the scale of training epochs, where it becomes a curriculum for the defender rather than an optimizer for the attacker.
Research Program
We will first build the annealed one-step sparse trainer on top of the one-step sparse training pipeline released with the fast-training work. We will then run a head-to-head study that separates three things a sparse curriculum could control. The first is the budget $k$. The second is the mask temperature $T$, which governs location sharpness. The third is attack magnitude.
The central analysis is a location-agreement diagnostic. Every few epochs, a fixed probe set is attacked with the one-step training attack and with a 20-step sPGD attack. We record the overlap between the two chosen pixel sets alongside robust accuracy. Zhong et al. attribute overfitting to a mismatch in location selection. If they are right, and if our mechanism is right, the annealed schedule should keep this overlap high through the period when fixed-$T$ training collapses. We will also track the largest eigenvalue of the loss Hessian on the probe set, the "cragginess" signal from Fast Adversarial Training against Sparse Attacks Requires Loss Smoothing, to test whether annealing smooths the landscape early.
Pacing is a known weak point of curricula, since abrupt stage changes cause instability. We therefore compare linear and cosine $T$ schedules against an adaptive rule. The adaptive rule lowers $T$ only when the location overlap with the periodic multi-step probe exceeds a threshold. This is the curriculum analogue of SAT's difficulty-gated pacing, using a signal that is specific to sparse attacks.
Baselines
The naive reference points are standard training and dense-norm adversarial training. The file reports near 0% robust accuracy under sPGD for a vanilla CIFAR-10 model, and below 7% at $k=20$ for $l_\infty$- and $l_2$-trained models (Towards Efficient Training and Evaluation...). These establish that any gain is real sparse robustness.
The strongest existing method is Fast-LS-$l_0$ from Fast Adversarial Training against Sparse Attacks Requires Loss Smoothing. It is one-step sparse training with three fixed ingredients: soft labels from averaged past predictions, a TRADES term that penalizes disagreement between clean and adversarial outputs, and random noise before the attack step. It reports 63.0% robust accuracy under Sparse-AutoAttack on CIFAR-10 in 0.8 GPU-hours. The file's benchmark table also lists 72.4% Sparse-AutoAttack accuracy on ImageNet-100, in a row whose citation is truncated in the file and appears to point to the same paper. It is the strongest competitor because it targets exactly our failure mode at exactly our cost. We will rerun it with its published settings on the same architecture, data, epochs and single-step attack budget, and verify that we reproduce its reported number before comparing.
The multi-step reference is 20-step sTRADES. It reports 61.7% at $k=20$ on CIFAR-10 and takes 5.5 hours, per the two Zhong et al. papers. It tells us how close cheap training gets to expensive training.
The obvious curriculum baseline is a linear ramp of $k$ from a small value to 20 with a hard mask throughout, plus a CAT-style variant that mixes earlier budget levels into each batch (Curriculum Adversarial Training).
The key ablations isolate the temperature schedule. The first uses a fixed large $T$ throughout, meaning dense-only training, and tests whether annealing to hard masks is needed. The second uses a fixed $T=0$, which is plain one-step sparse training. The third crosses the annealed schedule with and without Fast-LS-$l_0$'s smoothing terms.
Every method gets the same number of hyperparameter trials and three seeds. For CIFAR-10, beating Fast-LS-$l_0$ means either of two outcomes. One is exceeding 63.0% Sparse-AutoAttack accuracy by more than the seed spread at equal wall-clock time. The other is matching it without soft labels or TRADES, which would show the curriculum can replace static smoothing. For CIFAR-100 we found no reported result on Lacuna for sparse robust accuracy of either Zhong et al. method, so we will establish those numbers ourselves.
Why not just…?
Why not just ramp the pixel budget $k$, the direct analogue of epsilon ramping? This is the idea most reviewers would reach for first, and it is included as a baseline rather than argued away. Our reason to expect it to fall short is mechanistic. The one-step attack can pick the wrong pixels at any budget, and Zhong et al. identify wrong pixel choice as the cause of overfitting. A small-$k$ phase therefore delays the problem without teaching better location selection. The location-overlap diagnostic will show whether that is true. If the $k$-ramp matches the $T$-anneal on both overlap and Sparse-AutoAttack accuracy, our hypothesis is wrong and we will report the simpler method as the answer.
Why not just use Fast-LS-$l_0$, which already prevents overfitting? This is the real threat. It already reaches 63.0% on CIFAR-10, and its authors state only that they cannot guarantee soft labels and TRADES are the optimal smoothing. The crossed ablation settles it. If annealing adds nothing on top of Fast-LS-$l_0$ and cannot replace any of its terms, the curriculum is redundant. We also test the regime where static smoothing is most likely to fail: larger $k$ and larger step sizes, where overfitting risk rises. That is where a schedule could matter even if default settings look solved.
Why not just train dense ($l_1$-style) perturbations, since they avoid overfitting? Zhong et al. show that models trained against $l_1$ attacks remain vulnerable to $l_0$ attacks. The fixed-large-$T$ ablation replicates that result within our pipeline. The annealed schedule is meant to keep dense training's stability while ending on the true threat.
Why not just pay for multi-step sTRADES? It costs about 7x the wall-clock time and reports lower accuracy (61.7%) than Fast-LS-$l_0$ on CIFAR-10. The case for curricula here is about cost. We report robust accuracy per GPU-hour to make that concrete.
Proposed Experiments and Decisive Checks
The main benchmarks are CIFAR-10 at $k=20$ and CIFAR-100. We then move to ImageNet-100 to test whether the schedule survives higher resolution, where the pixel search space is much larger. Robustness is measured with Sparse-AutoAttack, which combines white-box sPGD with the black-box Sparse-RS search. Because Sparse-RS does not rely on gradients, a model that merely hides its gradients will still be caught. We add $\sigma$-zero as an independent attack, and also report its median number of perturbed pixels needed for misclassification. We also report clean accuracy, training time, and the rate of overfitting collapse across seeds.
The first decisive check is the $k$-ramp versus $T$-anneal comparison, together with the location-overlap curves. If the overlap is not higher under annealing during the window where the fixed-$T$ run collapses, the mechanism claim fails regardless of final accuracy.
The second check is whether annealing without the smoothing terms reaches Fast-LS-$l_0$'s 63.0%. Success would make the curriculum a substitute for static smoothing. Falling short while still adding gains when combined with smoothing would make it a complement.
The third check is a stress test at larger $k$ and step size, where we expect static smoothing to break before the schedule does.
References
- Understanding and Improving Fast Adversarial Training against $l_0$ Bounded Perturbations
- Curriculum Adversarial Training
- SAT: Improving Adversarial Training via Curriculum-Based Loss Smoothing
- A Closer Look at Curriculum Adversarial Training: From an Online Perspective
- Sparse-PGD: A Unified Framework for Sparse Adversarial Perturbations Generation
- Sparse Adversarial Attack via Perturbation Factorization
- Towards Stable and Efficient Adversarial Training against $l_1$ Bounded Adversarial Attacks
- Towards Efficient Training and Evaluation of Robust Models against $l_0$ Bounded Adversarial Perturbations
- Sparse and Imperceptible Adversarial Attack via a Homotopy Algorithm
- σ-zero: Gradient-based Optimization of ℓ0-norm Adversarial Examples
- Fast Adversarial Training against Sparse Attacks Requires Loss Smoothing