TL;DR
This paper introduces Weighted Optimization Trajectories (WOT), a novel method to combat "robust overfitting" in adversarial training. By intelligently re-weighting historical optimization steps, WOT significantly improves model robustness against adversarial attacks and enhances generalization without sacrificing clean accuracy.
What Problem Does This Paper Address?
Deep neural networks (DNNs) are incredibly powerful but notoriously vulnerable to adversarial examples – subtle input perturbations that cause misclassifications. Adversarial training is the go-to defense, but it often suffers from "robust overfitting." This means that while the model becomes robust to attacks during training, its ability to generalize this robustness to unseen data (robust generalization) is poor. Existing methods to tackle this have had limited success. This paper aims to bridge this gap by looking at the entire optimization trajectory of the training process, not just the final model weights.
Methods
The core idea of WOT is to refine the optimization trajectory of adversarial training. Instead of just using the final weights, WOT considers a history of weight updates (optimization trajectories). It then learns a set of weights (represented by $\alpha$ coefficients) that optimally combine these historical trajectories. This re-weighting is done by maximizing the robust performance on a separate, unseen "hold-out" set. This approach has a few key contributions:
- Refinement based on unseen data: The re-weighting is guided by performance on data the model hasn't explicitly trained on, directly addressing generalization.
- Leveraging historical trajectories: It doesn't just look at the last few weights but considers a sequence of updates.
- Block-wise refinement (WOT-B): For deeper networks, WOT can break down the optimization trajectory into blocks (e.g., layers or groups of layers) and learn individual weights for each block, offering a richer space for refinement.
Datasets
The paper uses standard image classification datasets for training and evaluation:
- CIFAR-10
- CIFAR-100
- SVHN
- Tiny-ImageNet
For WOT's hold-out set, they use subsets of these datasets: 1000 samples from CIFAR-10, 10000 from Tiny-ImageNet, and 2000 from CIFAR-100 and SVHN.
Key Insights and Ideas
- Optimization Trajectory Matters: The paper strongly suggests that the path taken during adversarial training is as crucial as the final destination (model weights) for achieving good robust generalization.
- Unseen Data as a Guiding Light: Using a hold-out set to guide the re-weighting process is a powerful way to directly optimize for generalization, a common challenge in machine learning.
- Block-wise Refinement for Deeper Models: Breaking down the optimization trajectory into smaller, manageable blocks (WOT-B) allows for more nuanced and effective re-weighting, leading to better performance than treating the entire trajectory as one unit.
- Flatter Loss Landscapes: Visualizations suggest that WOT leads to flatter loss landscapes in both weight and input spaces, which is a known indicator of better generalization.
Key Results
- Improved Robust Accuracy: WOT consistently boosts robust accuracy across various adversarial training methods (AT, TRADES, MART, AWP) and architectures (VGG-16, PreActResNet-18, WRN-34-10).
- Significant Gains under Strong Attacks: Under the challenging AA-$L_{\infty}$ attack, WOT improves robust accuracy by 1.53%–6.11% compared to baselines.
- No Sacrifice in Clean Accuracy: WOT also increases clean accuracy by 0.55%–5.47%, demonstrating a good trade-off.
- Effective Overfitting Prevention: WOT significantly reduces or eliminates the robust overfitting issue, as evidenced by minimal performance drops between the best and final training checkpoints.
- Generalizability: WOT's effectiveness is shown to generalize across different datasets and architectures.
Limitations and Future Work
- Computational Cost: WOT requires additional memory to store optimization trajectories and more computation time for optimizing the $\alpha$ weights. However, the authors note this overhead is "quite small" and "negligible" in practice due to the small hold-out set.
- Hyperparameter Sensitivity: While WOT-B is shown to be less sensitive to the number of gaps ($k$), it is more sensitive to the gap size ($m$). The paper explores the impact of these hyperparameters and suggests optimal ranges.
- Future Work: The paper doesn't explicitly detail future work, but the success of WOT in improving robustness and generalization suggests further exploration into its application with other defense mechanisms or in different domains could be promising. The authors also suggest that the learned $\alpha$ weights could provide insights into the training process.
Summary updated