Introduction
Deep neural networks are notoriously vulnerable to adversarial attacks—imperceptible perturbations that trick models into making confident, incorrect predictions. While adversarial training (AT) remains the primary defense, a significant "robustness gap" persists between natural and adversarial accuracy. This research introduces Hedge Defense, an inference-time mechanism that exploits the inherent fragility of adversarial examples. By "attacking" an incoming image across all possible classes, Hedge Defense effectively "un-fools" the model, flipping adversarial predictions back to their correct labels.
The Hedge Defense Mechanism
Adversarial examples typically reside in "unprotected" regions of the feature space characterized by extremely steep loss surfaces. In contrast, adversarially trained models are optimized for stability around the ground-truth class, resulting in a significantly "smoother" local loss landscape (lower local Lipschitzness).
Hedge Defense leverages this geometric disparity. Instead of adding random noise, it crafts a specific defensive perturbation $\mathbf{x}_{hed}$ by maximizing the sum of cross-entropy losses across all $C$ possible classes: $$\mathbf{x}_{hed} = \text{argmax}_{\mathbf{x}'' \in \mathbb{B}(\mathbf{x}', \epsilon_d)} \sum_{c=1}^C \mathcal{L}(f(\mathbf{x}''), c)$$
As shown in Figure 1, this "attack all classes" strategy pushes the prediction away from the steep, unstable peaks of false classes much faster than it moves away from the robust, flatter ground-truth peak. This "hedging" behavior—analogous to diversifying risk in a hedge fund—restores the correct classification.
Experimental Evaluation
The authors evaluated Hedge Defense on standard benchmarks including CIFAR10, CIFAR100, and ImageNet, testing against a wide array of state-of-the-art robust models from the RobustBench leaderboard.
Key Results on CIFAR10
Hedge Defense consistently improves the robust accuracy of already high-performing models against diverse attack vectors, including PGD, C&W, and the formidable AutoAttack ensemble.
As detailed in Table 1, Hedge Defense boosted the robust accuracy of the top-performing model (Gowal et al., 2020) from 66.16% to 72.66% under AutoAttack. Notably, it proved exceptionally effective against the Square attack, increasing accuracy from 71.76% to 83.30%. Crucially, these gains come with minimal impact on natural accuracy (typically $<1\%$), avoiding the common trade-off seen in other defensive methods.
Scalability and Large-Scale Performance
On ImageNet, using a FastAT ResNet-101 model, Hedge Defense improved top-1 robust accuracy from 33.18% to 38.54% under a 100-step PGD attack. This demonstrates the method's effectiveness on large-scale, real-world image data.
Conclusion and Future Work
Hedge Defense represents a paradigm shift: treating the defense process as a targeted "counter-attack" on the adversarial perturbation itself. By exploiting the geometric differences in the loss landscape induced by adversarial training, it provides a significant boost to model robustness at inference time.
While highly effective, the method introduces computational overhead due to the iterative optimization required for each inference. Future research will focus on reducing this latency and investigating the long-term viability of the defense against "hedge-aware" adaptive attackers who might attempt to find flatter regions in false class landscapes.
Summary updated