NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Carrying Cheap Adversarial Perturbations Across Representation Drift

When a neural network learns a sequence of tasks, its internal features move. Data from an old task, passed through the updated network, lands in unfamiliar places, and classifiers built earlier stop lining up with it. This movement is called representation drift. A second cost appears when the network must also resist adversarial inputs, meaning tiny worst-case pixel changes chosen to flip its prediction. Recent work finds that this resistance is forgotten even faster than ordinary accuracy. The best current fix preserves it by running the standard defense, adversarial training, on every new task. That defense finds the attack with many gradient steps per batch, so training becomes several times more expensive at each step of the sequence. Its authors list this cost as unsolved.

We propose to make robust continual learning cheap. The idea is to compute the attack inside the network's hidden layers, where a single step is enough and the gradients come almost for free. The obstacle is drift. To preserve the old model's robustness, the new model must be compared with the old one under the same perturbation. But a hidden-layer perturbation for the new model points in the wrong direction in the old model's drifted coordinates. We fix this by estimating, on current-task data, a linear map between the two models' hidden spaces. We then use that map to carry the perturbation from the new model to the old one before comparing how each reacts. The question is whether this one-step, drift-corrected method can match multi-step robust continual learning at roughly a third of the compute.

Core Claim

Robustness forgetting in class-incremental learning can be prevented without multi-step attacks. Class-incremental learning means adding new classes over time while still recognizing old ones. The method has two parts. First, perturb intermediate features with the single-step latent attack of SLAT. Second, distill the old model's local response to that perturbation, after transporting the perturbation through a drift-correcting linear map. Without the transport step, a feature-level teacher signal compares two different directions, because the two networks' coordinate systems no longer agree.

The prediction is specific. A naive version that simply replaces the multi-step attack in existing robust continual learning methods with single-step latent perturbations will lose robustness on old tasks in the later tasks of a sequence. Those later tasks are where measured drift is largest. The transported version will not lose it. If the naive version does equally well, the transport mechanism is unnecessary, and our contribution shrinks to an empirical finding about fast attacks under drift. The experiments are designed so that this outcome would be visible.

How the Pieces Fit

This proposal builds on four results.

Two papers supply the motivation. Towards Adversarially Robust Continual Learning named robustness forgetting. It shows that a standard rehearsal method (iCaRL) reaches 0% accuracy under AutoAttack, a strong standardized attack suite, on Split CIFAR-10. FLAIR, also published as Enhancing Robustness in Incremental Learning with Adversarial Training, traces robustness forgetting to the loss surface around old-task inputs becoming sharp. FLAIR counters this by distilling the difference between the old model's outputs on clean and attacked inputs. It still relies on multi-step projected gradient descent (PGD) attacks, and its authors defer the compute problem to future work.

Two papers supply the methods. SLAT perturbs the input and several hidden layers at once, using gradients that ordinary backpropagation already computes. It avoids catastrophic overfitting, the sudden collapse of robustness that plain one-step attack training (FGSM, the fast gradient sign method) suffers. On CIFAR-10 it trains about 3.7 times faster than 7-step PGD training. However, it has only been tested on a single, unchanging data distribution. Measuring Representational Shifts in Continual Learning shows that hidden spaces before and after a new task are related by a near-optimal linear transformation. The size of that misalignment predicts forgetting well, with a fit (R²) of 0.88 on Split-CIFAR100. Drift also grows with depth.

Two further results constrain the design. Hou et al. show that matching outputs alone does not stop hidden features from rotating, which is why we distill at intermediate layers rather than only at the logits. The depth result above sits in tension with SLAT's own finding that early-layer perturbations matter most for keeping the loss surface locally linear. Early layers drift little but carry the robustness signal; late layers drift a lot. We treat this as a question the experiments will resolve, not something to assume.

Three neighboring methods also connect adversarial techniques to continual learning, but differently. Adversarial Pseudo-replay uses expensive iterative pixel-space attacks to turn new images into stand-ins for old classes. It does not make the model robust. EAT trains an entire extra adversarially-trained network for every task. TABA needs a buffer of stored images. Our method stores no images, trains no auxiliary network, and targets robustness directly.

Research Program

At each new task $t$, we keep the previous model frozen as a teacher. At a chosen set of layers $k$, let $h_k$ be the student's features and $g_k$ the teacher's features on the same current-task image.

After each epoch, we fit a transport map $T_k$ by least squares on current-task data. This is the same linear alignment used to measure drift:

$$T_k = \arg\min_{T} \sum_x \lVert g_k(x) - T\,h_k(x) \rVert^2 .$$

During training, a single backward pass gives the student's latent perturbation $\delta_k = \epsilon_k \,\mathrm{sign}(\nabla_{h_k}\mathcal{L})$, exactly as in SLAT. The training loss has three parts:

  • SLAT's adversarial loss on the new classes.
  • FLAIR's separated-logit treatment of old and new classes.
  • A transported flatness term:

$$\mathcal{L}_{\text{flat}} = \big\lVert [F^{s}_{k}(h_k+\delta_k) - F^{s}_{k}(h_k)] - [F^{o}_{k}(g_k + T_k\delta_k) - F^{o}_{k}(g_k)] \big\rVert^2 ,$$

where $F^{s}_k$ and $F^{o}_k$ are the student's and old model's networks from layer $k$ up to the old-class logits.

The extra cost per step is two forward passes of the teacher's upper layers, with no extra backward pass through the teacher. The least-squares fit runs once per epoch on pooled features. The setting is exemplar-free, meaning no old images are stored.

The analysis has two parts that go beyond the method itself:

  • Drift as a cause of collapse. We log, per layer and per task, the drift measure from the linear-transformation paper, alongside PGD-50 robust accuracy measured every epoch. This tests whether catastrophic overfitting in single-step training is triggered at task boundaries by drift.
  • Depth tension. We vary which layers are perturbed and transported: early only, late only, or both. This settles whether the robustness signal lives in the layers that drift least.

Baselines

Naive reference points. The do-nothing reference is fine-tuning with standard adversarial training and no continual learning machinery. We also include robust LwF (R-LwF, a distillation-based continual learning method trained adversarially), which FLAIR reports without a buffer. These show how much forgetting there is to prevent.

Strongest existing method. The main competitor is FLAIR with its standard multi-step PGD training. It is the only cited method that addresses flatness forgetting directly, and it reports exemplar-free results. FLAIR reports 17.02% AutoAttack accuracy on Split CIFAR-10 without a buffer, against 16.28% for R-LwF, and its authors report gains of 5.99, 5.27 and 3.90 points on average over baselines on CIFAR-10, CIFAR-100 and Tiny ImageNet. Without a buffer on Split CIFAR-100, it reports 11.02% PGD accuracy against 4.82% for naive PGD training. We found no reported wall-clock time for FLAIR on Lacuna, so we will measure it ourselves on identical hardware.

Fairness. All methods share:

  • the same backbone, task splits and perturbation size,
  • the same evaluation (AutoAttack and PGD-50 on all seen classes, plus clean accuracy and robust backward transfer),
  • an equal tuning budget per method.

What counts as beating FLAIR. We beat FLAIR if final AutoAttack accuracy is within one point of it, or above it, at no more than 40% of its training wall-clock time. If we match its compute instead, we must beat it outright.

Ablations. Two ablations isolate the key ingredient:

  • No transport. Set $T_k$ to the identity, i.e. naive SLAT inside FLAIR with feature-level flatness distillation.
  • Logits only. SLAT perturbations with FLAIR's output-level distillation only.

A third, compute-matched ablation replaces our single-step perturbations with FGSM plus random initialization (FGSM-RS) inside FLAIR.

Why not just…?

Why not just drop SLAT into FLAIR and stop there? This is the real threat, and the no-transport ablation is exactly this experiment. SLAT's protection against catastrophic overfitting was shown only on a fixed distribution. FLAIR's teacher signal assumes student and teacher are compared under the same perturbation, and drift breaks that assumption at deeper layers. If the naive swap matches our method across 10- and 20-task CIFAR-100, we will report that and drop the transport claim. The logged per-layer drift curves would then explain why drift turned out not to matter.

Why not just freeze a robustly pretrained backbone after the first task and train only a classifier on top? This costs nothing after the first task, and drift is zero by construction. The evidence against it concerns accuracy, not robustness. Adversarial Pseudo-replay reports outperforming frozen-extractor methods, especially in cold-start splits where the first task is small. F2M reports adapting models beating the frozen nearest-class-mean baseline. Whether that holds for robust accuracy is unknown, so we include a frozen robust backbone with a nearest-class-mean classifier in both cold-start and warm-start splits. We expect it to be competitive in warm-start and to lose in cold-start.

Why not just run FLAIR with 2- or 3-step PGD? Fewer steps is the obvious middle ground. Its cost still scales with step count, and no cited paper reports how robust continual learning behaves at reduced step counts. We run FLAIR with PGD-2 and PGD-3 and compare methods by plotting robustness against wall-clock time. Our method must lie above that curve, not merely beat PGD-7.

Proposed Experiments

The benchmarks are those FLAIR used: Split CIFAR-10 (5 tasks of 2 classes), CIFAR-100 in 10 and 20 tasks, Split SVHN and Tiny ImageNet. Each is run exemplar-free, with CIFAR-100 in both cold-start and warm-start variants. We also include a stationary CIFAR-10 sanity run to confirm that our SLAT implementation reproduces the reported 47.06% PGD-50 accuracy.

Three checks decide the outcome:

  1. Collapse. Does naive single-step training show sudden robustness collapses on old classes after task boundaries, and does our method avoid them? Seed variance is computed over 3 runs.
  2. Drift link. Does the gap between transported and naive variants grow with measured drift, i.e. with task count and with layer depth?
  3. Cost. Does our method sit above the robustness-versus-time curve traced by FLAIR at PGD-2, PGD-3 and PGD-7?

A positive answer to all three supports the core claim. A negative answer to the second means drift correction is not the mechanism, even if the cheaper method still works.