Borrowed Attacks: Adversarial Training with a Small Co-Trained Surrogate

Adversarial training teaches a network to resist small malicious input changes by training it on such changes. It is expensive: for every batch, the attacker has to run several rounds of gradient ascent through the full network before a single weight update. It also costs accuracy on ordinary, unperturbed images. We propose moving almost all of that attack computation onto a small helper network that is trained alongside the main model to mimic it. The helper crafts the attack, and the main model spends only one gradient step refining it. The agreement between the two networks' input gradients (which pixels each one "blames" for its decision) decides, per example, whether that one step is enough or the example needs more of the main model's attention.

This rests on a result from the transferability literature. Attacks built on a lightly robust model carry over to other models better than attacks built on either an undefended or a heavily defended model, because light robustness smooths gradients without pushing them off the natural-image distribution (Why Does Little Robustness Help?). If that holds inside a training loop, a lightly robust helper should do more than cut cost. It should supply perturbations that target features the two models share, rather than directions specific to the main model's own boundary. Those shared-feature perturbations are the kind of on-manifold perturbation that other work links to smaller clean-accuracy losses (TART).

Core Claim

A surrogate about one-tenth the cost of the main model, distilled online from it and kept only lightly robust, can generate the bulk of each training attack. We claim that one refinement step on the main model, plus extra steps only for examples where helper and main-model gradients disagree, gives three things at once. First, robustness under AutoAttack (a standard ensemble of strong attacks) matching 10-step PGD adversarial training. Second, higher clean accuracy than that baseline. Third, a wall-clock cost comparable to 2-step training. PGD here means projected gradient descent, the usual iterative attack.

Transferability serves as the mechanism, training cost is the constraint, and clean accuracy is the outcome being tested. Adversarial attribution enters as the control signal: gradient agreement is a cheap, per-example measure of whether a borrowed attack is trustworthy.

Relation to Prior Work

The closest work reuses attacks rather than recomputing them. ATTA carries each example's perturbation forward from the previous epoch and adds one step. It reports a 14.1× speedup over PGD-40 on CIFAR-10 and up to 7.2% better robust accuracy than Madry-style adversarial training. That is transfer across time within a single model. It requires a per-sample perturbation cache and inverse-augmentation bookkeeping, and it says nothing about which features the perturbations exploit. We transfer across models instead, which needs no cache. We also measure feature agreement explicitly.

Efficient LLM Adversarial Training via Low-Rank Defense and Circuit-Guided Surrogates is the nearest cross-model precedent. It prunes a language model by activation-times-gradient scores to build a cheaper inner-loop attacker, with about a 20% inner-loop saving. Its surrogate is a fixed 75%-pruned copy, it works on text, and it does not examine clean accuracy. Our surrogate is far smaller, is continuously distilled, is kept deliberately lightly robust, and is gated per example.

Several papers motivate the clean-accuracy hypothesis. AGAIN finds that robust models narrow their attribution span, the share of the image that drives the decision, from about 54.8% to 51.8%. It fixes this with extra training branches whose cost it names as open work. HAT traces clean loss to decision margins far wider than the perturbation budget requires. TART traces it to off-manifold perturbations and filters them using a precomputed tangent space, at 1.24× cost. Our hypothesis is that perturbations from a lightly robust surrogate are already closer to the data manifold, so no tangent estimate and no extra branch are needed.

Two lines of work constrain the design. Single-step fast training suffers catastrophic overfitting: robustness to multi-step attacks collapses mid-training while single-step robustness looks fine (Understanding Catastrophic Overfitting in Single-step Adversarial Training; ZeroGrad). The risk on the other side is that a main model trained only on another model's attacks learns to resist those directions and nothing else. That is why the main-model refinement step is mandatory rather than optional.

NAA supplies the view of attribution we borrow. It shows that attacking the neurons a model attributes its decision to makes attacks transfer better. We use the reverse reading: where helper and main-model attributions agree, the helper's attack is attacking shared features.

Research Program

The main model $f$ is a PreAct ResNet-18 or WideResNet-34-10. The helper $g$ is a width-reduced ResNet at roughly 10% of $f$'s FLOPs.

Each step, $g$ is trained on a distillation loss toward $f$'s predictions on both clean and adversarial inputs. It also receives single-step adversarial training at a small budget, about $\epsilon/4$. This targets the "little robustness" regime cheaply, avoiding the second-order cost of the sharpness-aware and Jacobian regularizers used in Why Does Little Robustness Help?.

The inner loop has two parts. It first runs $K$ PGD steps on $g$ from a random start, with $K=5$ by default. It then takes one signed-gradient step on $f$ and projects back into the $\epsilon$-ball. The target's gradient $\nabla_x \ell_f$ from that step is available at no extra cost. We compare it with the helper's last-step gradient $\nabla_x \ell_g$ at the same point through the per-example cosine agreement

$$a_i = \cos\big(\nabla_x \ell_g(x_i'),\ \nabla_x \ell_f(x_i')\big),$$

where $x_i'$ is the current perturbed input. Examples with $a_i$ below a threshold $\tau$ get one or two further steps on $f$. The threshold is set so that on average about 20% of examples receive them. Batch-average agreement is also logged as a health signal: if it falls, the helper's distillation weight is raised.

Three analyses go beyond headline accuracy. We measure attribution span coverage as defined in AGAIN for each training method, to test whether borrowed attacks avoid the attribution narrowing. We estimate how far off-manifold each method's training perturbations lie, using the tangent/normal decomposition of TART as an offline probe only. We track PGD-50 robust accuracy every epoch to detect catastrophic overfitting.

Baselines

The naive reference point is standard training with no adversarial examples. It anchors clean accuracy and wall-clock time.

The reference robust method is 10-step PGD adversarial training on the same architectures and schedule, run with the RobustBench-compatible evaluation of the HAT codebase. AGAIN reports about 84.25% clean accuracy for this baseline on CIFAR-10 with WideResNet-34-10. Matching its AutoAttack accuracy with higher clean accuracy at no more than one quarter of its cost counts as a win.

On efficiency, the strongest competitor is ATTA-1, rerun by us at matched GPU-hours with its reported settings. The file gives relative figures (14.1× speedup, up to 7.2% robust gain over Madry) but no absolute AutoAttack number, so our own rerun is the comparison. Beating it means higher AutoAttack accuracy at equal wall-clock, or equal accuracy with no perturbation cache. Single-step training with random start and 2-step PGD on the main model are run at the same wall-clock budget as our method, with learning rate and step size tuned over the same grid. No reported result was found on Lacuna for random-start single-step training's AutoAttack accuracy on CIFAR-10.

On the trade-off, the strongest competitor is HAT. The paper reports about 49% AutoAttack accuracy on PreAct ResNet-18, with clean accuracy about 2.17% above TRADES (HAT). We rerun it from the released code. We also test whether our inner loop can be dropped into HAT, since the two target different causes of clean-accuracy loss.

Three ablations isolate the key ingredients. The first removes the main-model refinement step, testing whether helper-only attacks suffice. The second replaces the co-trained helper with a frozen, independently trained one. The third removes the agreement gate and gives extra steps to randomly chosen examples at the same rate. A fourth ablation trains the helper with no robustness term, testing whether the "little robustness" setting is what matters.

Why not just…?

Why not just run 2-step PGD on the main model? This is the most serious threat. At our budget, 2-step PGD costs roughly the same and uses only the true model's gradients. We run it at matched wall-clock, and if it equals us on both AutoAttack and clean accuracy, the helper adds nothing beyond cost-neutral complexity. Our bet is that five helper steps explore the ball better than one extra main-model step, and that their shared-feature character improves clean accuracy. The span-coverage and off-manifold measurements show whether that mechanism is real, not just whether the final numbers differ.

Why not just use single-step fast adversarial training? It is cheaper still, but catastrophic overfitting is well documented (Understanding Catastrophic Overfitting in Adversarial Training; Rethinking Fast Adversarial Training). Our design may resist it for a structural reason: the helper's gradients are not the ones the main model can learn to mask. Per-epoch PGD-50 tracking at large $\epsilon$, where overfitting is most likely, tests this directly.

Why not just recycle perturbations across epochs, as ATTA does? ATTA already achieves large speedups, so it may win on raw efficiency. It needs per-example storage that grows with dataset size and inverse-augmentation logic, and its perturbations remain the main model's own, so we have no reason to expect a clean-accuracy benefit. The matched-budget comparison settles the efficiency question. The clean-accuracy and span-coverage comparison settles whether cross-model borrowing buys something temporal reuse does not.

Why not just train on attacks from fixed pretrained models? A frozen external helper is the simplest form of borrowing. A main model trained only on another model's attacks can become robust to those directions alone, and gradient similarity drops once models diverge (Why Does Little Robustness Help?). The frozen-helper and no-refinement ablations measure this failure. We expect both to show much weaker white-box robustness, and if they do not, the co-training machinery is unnecessary.

Proposed Experiments

The main study uses CIFAR-10 and CIFAR-100 at $\ell_\infty$ budget $\epsilon=8/255$, with PreAct ResNet-18 and WideResNet-34-10. Evaluation covers clean accuracy, AutoAttack via RobustBench, and GPU-hours. Black-box robustness is measured against transfer attacks from independently trained ResNet, VGG, and DenseNet surrogates, a dimension HAT and AGAIN do not report. A scaled check on ImageNet with ResNet-50 compares against ATTA's reported 97 single-GPU hours.

Four results would be decisive. First, at equal wall-clock, our method must beat 2-step PGD and ATTA-1 on AutoAttack. If not, the efficiency claim fails. Second, at equal AutoAttack accuracy to 10-step PGD training, clean accuracy must be higher and attribution span coverage wider. If not, the on-manifold hypothesis fails and the method is only a speed trick. Third, removing the refinement step must sharply reduce white-box robustness while leaving transfer robustness intact, confirming why the main-model step is required. Fourth, per-example agreement $a_i$ must predict how much loss the extra main-model steps add, better than random allocation does. If it does not, the attribution gate is decorative and should be dropped.