Quadratic Upper Bound for Boosting Robustness

Euijin You, Hyang-Won Lee

Abstract: Fast adversarial training (FAT) aims to enhance the robustness of models against adversarial attacks with reduced training time. However, FAT often suffers from compromised robustness due to insufficient exploration of the adversarial space. This paper develops a loss function to mitigate the problem of degraded robustness under FAT. Specifically, the authors derive a quadratic upper bound (QUB) on the adversarial training (AT) loss function and propose utilizing this bound with existing FAT methods. Experimental results show that applying the QUB loss to existing methods yields significant improvements in robustness. Furthermore, various metrics demonstrate that this improvement likely results from the smoothened loss landscape of the resulting model.

Introduction

Deep neural networks are notoriously vulnerable to adversarial attacks—small, intentional perturbations to an input that can drastically alter a model's prediction. Adversarial Training (AT) is considered the gold standard for defense, but it is computationally expensive, requiring the generation of strong adversarial examples using iterative methods like Projected Gradient Descent (PGD) during every training step.

To mitigate this computational burden, researchers often employ Fast Adversarial Training (FAT), which relies on simpler, single-step attacks. However, FAT frequently suffers from catastrophic overfitting, where the model becomes robust only to the weak attacks seen during training while remaining vulnerable to stronger, multi-step attacks. The primary challenge addressed in this work is bridging the robustness gap between FAT and multi-step AT without sacrificing the speed advantage of single-step methods.

Methodology: Quadratic Upper Bound (QUB)

To address the shortcomings of standard FAT, the authors propose replacing the standard cross-entropy loss with a Quadratic Upper Bound (QUB).

Deriving the Bound

Leveraging the convexity of the cross-entropy loss with respect to the model's logits, the authors utilize a Taylor expansion to derive a rigorous upper bound. The resulting QUB loss comprises three intuitive components:

  1. Clean Loss: The standard cross-entropy loss on unperturbed data, which maintains standard accuracy.
  2. Gradient Alignment: A term that minimizes the inner product between the perturbation and the loss gradient. This effectively flattens the loss landscape.
  3. Logit Stability: A regularization term that restricts the degree to which the model's output logits can change when the input is perturbed.

Crucially, the gradient of this new loss can be computed in closed form. Unlike many robustness regularizers that require expensive second-order derivatives (Hessians), the QUB terms can be calculated using only the difference between the model's softmax output and the ground-truth labels. This makes it a highly efficient, plug-and-play enhancement for existing FAT methods.

Training Strategies

The authors introduce two primary strategies for implementing the QUB loss:

  • QUB-static: Applying the QUB loss consistently throughout the entire training process.
  • QUB-decreasing: A scheduled approach where training begins with the QUB loss to emphasize robustness early on, and gradually transitions back to the standard adversarial loss. This curriculum-style approach prevents the model from becoming overly conservative, which can otherwise degrade standard accuracy on clean images.

Experimental Setup

The proposed approach was evaluated on three standard computer vision benchmarks: CIFAR-10, CIFAR-100, and Tiny ImageNet. The researchers tested the QUB loss across several popular architectures, including ResNet18, WideResNet34-10, and PreActResNet18.

Key Results and Insights

The QUB loss consistently improved the performance of almost every FAT method it was paired with, demonstrating its versatility and effectiveness.

  • Robustness Boost: On CIFAR-10 using a ResNet18 architecture, integrating QUB with the FGSM-CKPT method improved its AutoAttack (AA) score—a rigorous and standardized reliability benchmark—from 37.22% to 41.53%.
  • Landscape Flatness: Instead of merely minimizing the loss at a specific adversarial point, minimizing an upper bound naturally regularizes the entire neighborhood around an input. The authors used Hessian analysis to validate this, showing that models trained with QUB exhibited significantly smaller dominant eigenvalues. This confirms that the loss landscape is smoother and less prone to the sharp peaks that attackers typically exploit.
Comparison of loss landscapes showing the smoothing effect of the proposed method.
  • Adversarial Sparsity: Using a metric called "adversarial sparsity," the study showed that QUB-trained models have fewer attackable points in the space surrounding an image compared to models trained with standard methods.

Limitations and Future Work

While highly effective, the approach has a few notable limitations. Interestingly, the method did not improve FGSM-RS. The authors attribute this to the inherent limitations of FGSM-RS, which often generates misleading perturbations that the QUB loss might inadvertently reinforce. Additionally, while the QUB-decreasing schedule helps mitigate the issue, there is still a slight "robustness tax"—a minor decrease in accuracy on clean, non-adversarial images.

Future work may focus on hyperparameter tuning. While the linear schedule for QUB-decreasing is straightforward and effective, the authors suggest that more sophisticated schedules or adaptive weights for the QUB terms could yield even better trade-offs between standard accuracy and adversarial robustness.

Summary updated

BibTeX
@inproceedings{you2025quadratic,
  author = {Euijin You and Hyang-Won Lee},
  title = {{Quadratic Upper Bound for Boosting Robustness}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=flxvawr9N2},
}
Figure