Capping Early-Layer Weight Norms to Make Single-Step Adversarial Training Safe

Adversarial training makes a classifier robust to small, worst-case input perturbations by training on those perturbations. The standard recipe is costly because finding each perturbation takes many gradient steps through the network, which multiplies training cost roughly tenfold. The cheap alternative computes the perturbation in a single gradient step. It is fast, but it suffers from catastrophic overfitting: within one or two epochs, robustness against stronger multi-step attacks drops to nearly zero, while the model keeps looking robust against the single-step attack it trains on.

This proposal tests a simple explanation and a matching fix. Recent analysis traced the collapse to a handful of unusually large weights that appear in the first few layers. We propose to cap the largest stretching factor of those early layers, and only those layers, with a hard projection after every optimizer step. The cap needs no extra forward or backward pass on the data. If it works, single-step training stays stable at large perturbation budgets at essentially the speed and memory of plain single-step training. The question we answer is whether controlling where the weights grow is enough, without the extra-pass regularizers that current fixes rely on.

Core Claim

Layer-Aware Analysis of Catastrophic Overfitting supplies the motivating evidence. It runs layer-by-layer autopsies of the singular values and the loss landscape before, during and after collapse. These show that the distortion originates in shallow layers, where anomalously large weights in specific directions form a "pseudo-robust shortcut." Pruning the top 10% largest early-layer weights of an already-collapsed model partially restores its robustness.

That paper's fix, layer-aware adversarial weight perturbation (LAP), is indirect. It adds worst-case noise to the weights, scaled most strongly in early layers, to discourage the shortcut from forming. It never bounds the weights themselves.

Our claim is that the shortcut is a weight-magnitude phenomenon. It can therefore be prevented by a hard, layer-heterogeneous norm constraint: a strict cap on the early layers and none on the rest. This constraint should match LAP and the input-smoothness regularizers on robust accuracy at a large budget ($\epsilon = 16/255$ on CIFAR-10). It should cost less in time and peak memory than every method that needs extra passes on the data. It should also beat applying the same cap uniformly to all layers, because leaving later layers free preserves the capacity needed for clean accuracy.

The constraint is a projection onto a ball of bounded operator norm. Let $W_\ell$ be the full linear operator of convolutional layer $\ell$, including its stride and padding. Let $\sigma(W_\ell)$ be its largest singular value, which is how much the layer can stretch any input. Let $\beta_\ell$ be the cap for that layer. After each optimizer step we set

$$ W_\ell \leftarrow W_\ell \cdot \min\!\left(1, \frac{\beta_\ell}{\sigma(W_\ell)}\right) \quad \text{for } \ell \le k, \qquad \beta_\ell = \infty \text{ for } \ell > k, $$

where $k$ is the number of early layers that are constrained. We estimate $\sigma(W_\ell)$ by power iteration with transposed convolutions, which is the operator-level method of Generalizable Adversarial Training via Spectral Normalization. That paper reports 2% to 20% runtime overhead when the method is applied to every layer, so applying it to only the first $k$ layers should cost less. We use an inequality cap rather than renormalizing to exactly $\beta_\ell$, following that paper's finding that the loose constraint converges more stably.

Research Program

The work has three parts. First, we build the early-layer projection as a drop-in change to fast single-step training: a single-step attack with random initialization inside the perturbation ball, cyclic learning rate and mixed precision, as in Fast is better than free. The power-iteration vectors persist across steps, so each step needs one iteration per constrained layer.

Second, we set the caps without a large per-layer search. Galloway et al. and Farnia et al. both leave the choice of regularization strength or norm cap to cross-validation, and that tuning burden would undercut a method meant to be cheap. We therefore tie each cap to a single scalar: $\beta_\ell = \gamma \cdot \sigma_\ell^{\text{ref}}$. Here $\sigma_\ell^{\text{ref}}$ is the layer's largest singular value after one epoch of training, before collapse typically begins, and $\gamma$ is shared across layers.

Third, we run a mechanistic study to check that the fix works for the stated reason. Throughout training we log per-layer top singular values, the input-gradient norm and the gap between single-step and multi-step robust accuracy. Understanding Catastrophic Overfitting in Single-step Adversarial Training reports input-gradient norms spiking by up to 35× as collapse approaches. If the shortcut account is right, the cap should suppress that spike.

We do not expect a clean guarantee. The input-gradient norm is bounded by the product of all layers' stretching factors, and we bound only the first $k$. So whether the spike disappears is an empirical question, and it is the one that tests the hypothesis.

The theory work is deliberately modest. A Law of Robustness for Weight-bounded Neural Networks proves that weight-bounded deep networks can be smooth while fitting data, with the required Lipschitz constant decaying exponentially in depth. It says nothing about whether single-step optimization finds such networks. We use it only to frame a prediction: constraining a shallow prefix should leave enough unconstrained depth to fit the data. Accordingly, clean accuracy should degrade much less than under a uniform cap with the same early-layer value.

Baselines

The naive reference is plain single-step training with random initialization at the same budget. Understanding and Improving Fast Adversarial Training reports that it collapses to about 0% robustness at $\epsilon = 16/255$ on CIFAR-10. Multi-step projected gradient descent (PGD) training is the accuracy ceiling and the cost reference.

The strongest direct competitor is LAP, because it attacks the same early-layer shortcut at the same budget with only 7% overhead over single-step training. It reports 19.55% AutoAttack accuracy on CIFAR-10 at $\epsilon = 16/255$. RAT, the operator-splitting method of Rethinking Fast Adversarial Training, is effectively tied with it at 19.58% under the same budget, and the same paper reports 15.36% for Fast-GA and 16.31% for LLR. The input-smoothness regularizers are the other strong family. GradAlign requires double backpropagation. ELLE, from Efficient local linearity regularization to overcome catastrophic overfitting, requires three forward passes per sample. ELLE-A reports 44.32% AutoAttack accuracy on CIFAR-10, but the file does not state the budget for that number, so we will rerun it at each budget rather than quote it across settings.

Two ablations isolate our key ingredient. The first applies the same projection uniformly to all layers, which is Farnia-style spectral normalization moved into single-step training; this tests whether layer selectivity matters. The second applies a soft penalty or heavier uniform weight decay with matched effective shrinkage; this tests whether a hard cap matters.

For fairness, every method runs on the same architecture, data augmentation, epoch count and learning-rate schedule. Every method gets the same tuning budget for its one or two key hyperparameters. All methods are evaluated with the same harness, the PGD-50-10 and AutoAttack scripts in the LIONS-EPFL/ELLE codebase. We will rerun LAP and RAT ourselves rather than rely only on reported figures.

Beating the field means two things on CIFAR-10 at $\epsilon = 16/255$, averaged over seeds. First, AutoAttack accuracy at or above about 19.6%, the LAP and RAT level. Second, wall-clock time and peak memory no higher than LAP's, with no seed collapsing. Matching ELLE-A's robustness with lower memory would also count as a win.

Why not just…?

Why not just use heavier uniform weight decay? Adversarial Training Versus Weight Decay shows that heavy decay gives broad robustness and smooth first-layer filters. The same paper concedes that PGD-trained models keep a clear advantage against the small $L_\infty$ perturbations at issue here. It also never tested decay combined with single-step training. Uniform decay is therefore an untested threat, not a refuted one. We include it as an ablation, tuned with the same budget as our cap.

Why not just apply spectral normalization to every layer? This is the most serious alternative. Farnia et al. never evaluated it against catastrophic overfitting, so it may simply work. If uniform capping matches the early-layer cap on both robust and clean accuracy, our layer-specific claim fails. The finding would still be useful but narrower: spectral capping prevents collapse in single-step training. The layer-sweep experiment below settles this directly.

Why not just use GradAlign or ELLE, which already work? They do prevent collapse, but GradAlign costs two to three times a single-step update, and ELLE needs three forward passes per sample, which raises peak memory. Our proposal is only interesting if it reaches comparable robustness without those extra passes. We report time and memory alongside accuracy so that the trade-off is explicit.

Why not just stop training early, before collapse, or prune early layers afterwards? Understanding and Improving Fast Adversarial Training reports that early stopping leaves the model under-converged, with poor clean accuracy. Lin et al.'s post-hoc pruning only partially restores robustness. Both treat the symptom after the fact, whereas a projection prevents the shortcut from forming. We run post-hoc top-10% early-layer pruning as a reference.

Proposed Experiments

The main study uses CIFAR-10 and CIFAR-100 with a ResNet-family backbone. We sweep $\epsilon$ from $8/255$ to $16/255$, use at least three seeds per configuration, and train for a long schedule. A long schedule matters because Local Linearity and Double Descent in Catastrophic Overfitting found that collapsed models can partially recover by epoch 60. A short schedule could therefore misjudge which methods are stable. Tiny-ImageNet tests transfer to larger inputs. For each run we report clean accuracy, PGD-50-10 and AutoAttack accuracy, the per-epoch gap between single-step and multi-step robust accuracy, wall-clock time and peak GPU memory.

The decisive check is a sweep over which layers are capped, at a fixed scalar $\gamma$. We cap no layers, the first one, two or four blocks, only the last blocks, or all layers. The shortcut hypothesis predicts a specific pattern: capping only the first blocks prevents collapse, capping only the last blocks does not, and capping everything costs clean accuracy without adding robustness. If late-only caps work as well as early-only caps, the early-layer account is wrong. The second check is mechanistic: the input-gradient spike and the growth of early-layer singular values should both vanish under the cap. The third check is sensitivity: robust accuracy should be flat over a reasonable range of $\gamma$. If it is not, the method has only moved the tuning burden somewhere else.