Adapting to Evolving Adversaries with Regularized Continual Robust Training

Sihui Dai, Christian Cianfarani, Vikash Sehwag, Prateek Mittal, Arjun Bhagoji

Machine learning models are often sitting ducks for new types of adversarial attacks because they are typically trained against static, predefined threats. In the cat-and-mouse game of AI security, defenders usually train models to resist a specific "threat model," such as small changes in pixel brightness ($\ell_p$ attacks). However, attackers are creative; they continuously develop new methods like spatial transformations (tilting or rotating images) or color shifts that bypass these static defenses.

This dynamic threat landscape introduces a twofold challenge. First is generalization: a model trained against Attack A is often completely vulnerable to Attack B. Second is catastrophic forgetting: if defenders attempt to "patch" the model by fine-tuning it on Attack B, the model frequently loses its hard-won robustness against Attack A. Retraining a model from scratch every time a new attack is discovered is computationally expensive and slow.

To address this, researchers have introduced Regularized Continual Robust Training (CRT), a framework that allows models to adapt to new attacks via fine-tuning while using a novel logit-space regularization term to prevent them from "forgetting" how to defend against previous threats.

Methodology: Continual Robust Training and ALR

The authors propose enhancing Continual Robust Training (CRT) with a new regularization technique called Adversarial $\ell_2$ Regularization (ALR).

Mathematically, the researchers prove that the "robustness gap"—the difference in how a model performs against two different attacks—is bounded by the distance between the clean and perturbed samples in the model's logit space (the layer just before the final classification). Based on this theory, ALR adds a penalty during training that forces the model to keep the logits of an adversarially perturbed sample close to the logits of the original, clean sample.

Continual Robust Training Workflow

The workflow operates in two main phases:

  1. Initial Training: The model is trained on a known attack (e.g., $\ell_2$) using ALR to create a "flexible" starting point.
  2. Iterative Fine-tuning: When a new attack emerges, the model is fine-tuned on that specific attack while continuing to use ALR to maintain stability in the logit space.

This approach is significantly more efficient than standard multi-attack training because it uses single-step optimization for the regularizer, minimizing the time overhead.

Experimental Setup

The researchers evaluated their method across three standard computer vision benchmarks: CIFAR-10, CIFAR-100, and ImageNette (a 10-class subset of the massive ImageNet dataset used to test scaling to higher-resolution images). They tested the models against over 100 attack combinations, including $\ell_2$, $\ell_\infty$, StAdv (spatial transformations), ReColor, and the ImageNet-UA suite (which includes Gabor noise, Snow, Pixelation, and JPEG compression).

Key Results and Insights

The most critical insight from the study is that maintaining robustness across different attacks isn't just about the input pixels; it's about ensuring the model's internal "decision logic" (logits) doesn't shift too wildly when an input is tampered with. Models trained with ALR from the beginning are significantly better "students" when it comes to learning new attacks later, possessing a form of transferable robustness.

Impact of ALR on Catastrophic Forgetting
  • Fighting Forgetting: In a sequence where a model was first trained on $\ell_2$ and then fine-tuned on spatial attacks (StAdv), naive fine-tuning caused $\ell_2$ robustness to plummet by 24.25%. With ALR, that drop was slashed to just 7.62%, successfully preserving prior defenses.
  • Better Overall Defense: On CIFAR-10, the proposed method achieved a 5.48% gain in Union accuracy (the accuracy against the worst-case attack for any given image) compared to unregularized fine-tuning.
  • Efficiency: CRT with ALR was significantly faster than training on all attacks from scratch, taking approximately 27 hours versus over 50 hours, while often achieving higher average accuracy.

Interestingly, the authors also found that while adding random noise (like Gaussian noise) during initial training helps slightly, it actually hurts performance during the fine-tuning phase. To maintain robustness over time, adversarial regularization is required, not just random jitter.

Limitations and Future Work

While highly effective, the approach has limitations. The authors note that as the number of attacks a model must defend against grows, the model's capacity might eventually run out. Future work could explore using "adapters" or expanding the network size dynamically. Additionally, some specific attacks, like the "Snow" attack in the ImageNet-UA suite, remain stubbornly difficult to generalize to, even with regularization. Finally, while the paper provides a theoretical bound for a single model, it does not yet fully theorize the transition between models during the fine-tuning steps of a long sequence of attacks.

Overall, this research provides a practical, theoretically-grounded roadmap for building AI systems that can evolve alongside the adversaries trying to break them.

Summary updated

BibTeX
@inproceedings{dai2025adapting,
  author = {Sihui Dai and Christian Cianfarani and Vikash Sehwag and Prateek Mittal and Arjun Bhagoji},
  title = {{Adapting to Evolving Adversaries with Regularized Continual Robust Training}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=RUip3cD66H},
}
Figure