TL;DR
This paper introduces Weighted Optimization Trajectories (WOT), a novel method to combat "robust overfitting" in adversarial training. By periodically refining and re-weighting historical optimization paths based on a small hold-out set, WOT consistently improves both the adversarial robustness and clean accuracy of deep neural networks across various architectures and datasets.
What Problem Does This Paper Address?
Deep neural networks are notoriously vulnerable to adversarial examples—small, intentional perturbations that can flip a model's prediction. While Adversarial Training (AT) is the standard defense, it suffers from a phenomenon called robust overfitting.
Unlike standard training, where test accuracy usually plateaus, in AT, the model's robustness on unseen test data often peaks and then sharply declines late in the training process, even as training robustness continues to improve. Existing solutions like Stochastic Weight Averaging (SWA) or extra regularization help, but they often fail to fundamentally close the generalization gap. The authors of this paper aim to bridge this gap by looking not just at the final model weights, but at the entire path the model took to get there.
Methods
The core idea of Weighted Optimization Trajectories (WOT) is to treat the training process as a sequence of weight updates (trajectories) and then learn how to combine these updates optimally.
- Trajectory Collection: The algorithm periodically saves the difference in weights ($\Delta w$) between training steps.
- Trajectory Reweighting: Instead of just summing these updates to get the final weights, WOT introduces learnable coefficients ($\alpha$) for each update. The refined weights become a weighted sum of historical trajectories.
- Optimization on Unseen Data: These $\alpha$ coefficients are optimized to maximize robust accuracy on a small, unseen "hold-out" set. This ensures the final model is tuned for generalization rather than just memorizing the training set.
The authors propose two versions:
- WOT-W (Whole): Learns a single weight for each time-step's update across the entire network.
- WOT-B (Block-wise): Breaks the network into blocks (e.g., ResNet stages) and learns independent weights for each block. This significantly expands the optimization space.
Datasets
The researchers evaluated WOT across four widely-used benchmarks:
- CIFAR-10 & CIFAR-100: Standard small-image classification tasks.
- SVHN: Street View House Numbers dataset.
- Tiny-ImageNet: A subset of ImageNet with 200 classes at 64x64 resolution.
They tested these datasets using various architectures, including VGG-16, PreActResNet-18, and WideResNet-34-10.
Key Insights and Ideas
- Flatness is Key: The authors demonstrate that WOT leads the model toward "flatter" minima in the loss landscape. A flatter landscape generally correlates with better generalization because small changes in weights (or inputs) don't lead to wild swings in loss.
- Block-wise Flexibility: WOT-B consistently outperforms WOT-W. Analysis shows that middle blocks in a network often require different weighting than the early or late blocks to achieve peak robustness.
- Seamless Integration: WOT isn't a replacement for existing AT methods like TRADES or AWP; it's an enhancement. It can be "plugged in" to almost any adversarial training variant to boost performance.
- Preventing Collapse: By optimizing $\alpha$ on unseen data, the model effectively learns when to "stop" or "dampen" updates that would otherwise lead to overfitting, essentially automating a more sophisticated version of early stopping.
Key Results
WOT demonstrates significant gains across the board. In experiments on CIFAR-10 with a PreActResNet-18:
- Robustness Boost: WOT-B improved robust accuracy under the rigorous AutoAttack ($AA-L_\infty$) by 1.53% to 6.11% compared to standard AT baselines.
- Clean Accuracy Gains: Unlike many defenses that trade off clean accuracy for robustness, WOT actually increased clean accuracy by 0.55% to 5.47%.
- Overfitting Mitigation: As shown in the results table below, WOT-B consistently achieved the highest scores across multiple attack types (FGSM, PGD, CW) compared to SWA and other variants.
Limitations and Future Work
- Memory Overhead: Storing multiple sets of weight trajectories requires extra GPU memory. While the authors argue this is manageable (roughly 10% increase for ResNet-18), it could become a bottleneck for extremely large models.
- Hold-out Set Dependency: The method requires a small portion of data to be set aside for refining $\alpha$. In very low-data regimes, this might be a difficult trade-off.
- Future Directions: The authors suggest exploring more sophisticated ways to partition blocks for WOT-B and investigating if this trajectory-refining approach could benefit standard (non-adversarial) generalization challenges.
Summary updated