Introduction
Adversarial Training (AT) is widely considered the gold standard for defending Deep Neural Networks (DNNs) against malicious attacks. However, its computational cost is often prohibitive for large-scale datasets. Standard AT methods, such as Projected Gradient Descent (PGD), require multiple expensive backpropagation passes to generate adversarial examples in the input space for every training step. This paper introduces Endogenous Adversarial Examples (EAE), a novel approach that significantly accelerates the training process by shifting adversarial generation to the latent space.
The Challenge of Adversarial Training
The primary bottleneck in traditional AT is the requirement for input-level perturbations. Even recent "Fast" or "Free" AT variants still operate on high-dimensional input pixels. The authors argue that this is inefficient and propose that perturbing the model's internal representations—specifically the logits of the penultimate layer—can serve as a high-fidelity, low-cost proxy for input-level attacks, avoiding costly input-gradient calculations.
Endogenous Adversarial Examples (EAE)
The core innovation is the generation of EAEs. Instead of calculating a pixel-level perturbation $\delta$, the method finds a logit-level perturbation $\Delta$ that pushes a "seed example" across the decision boundary. This is mathematically efficient and avoids full backpropagation.
Seed Example Selection and the LD Metric
Not all training data contributes equally to robustness. The authors identify "seed examples"—clean images that are already close to the decision boundary—using a metric called Logit Difference (LD). The LD ($d$) is defined as the difference between the logit of the ground-truth class and the second-highest logit ($d = z_{ground\_truth} - z_{second\_best}$).
As shown in the distributions above, seed and non-seed examples have distinct statistical profiles, justifying a threshold-based approach. By setting a threshold $\gamma$ (typically between 2 and 4), the training process focuses on these vulnerable examples. This targeted approach ensures that latent perturbations correspond to meaningful shifts in the input space.
Training Process
During training, only examples with an LD below $\gamma$ are augmented with EAEs. This local refinement of the decision boundary allows the model to gain robustness without the global performance degradation often seen in other AT methods.
Experimental Results
The EAE method was evaluated on CIFAR-10 and ImageNet benchmarks, demonstrating substantial improvements in both speed and robustness.
- Massive Speedup: EAE training achieved a ~3x speedup over state-of-the-art "Fast" AT methods. On CIFAR-10, training time dropped from 7.7 minutes to 2.86 minutes (63% reduction). On ImageNet, it fell from 15.6 hours to 4.25 hours (72% reduction).
- Superior Robustness: In black-box settings, EAE-trained models often outperformed FGSM, Fast, and even PGD training. On ImageNet, EAE models maintained 7-10% higher accuracy under various attacks compared to other AT methods.
- Clean Accuracy: On ImageNet, EAE training showed almost no drop in clean accuracy, whereas other methods saw significant declines of up to 11%.
Discussion and Limitations
While EAE offers a compelling path toward efficient adversarial defense, it relies on the Manifold Hypothesis—the assumption that high-dimensional data lies on a lower-dimensional manifold. While theoretically sound, the complexity of real-world data manifolds may affect the mapping between latent and input perturbations. Additionally, the effectiveness of the method is sensitive to the choice of the LD threshold $\gamma$, which may require tuning for different model architectures.
Conclusion
By moving adversarial generation into the latent space and focusing on critical "seed examples," EAE training provides a scalable and efficient alternative to traditional adversarial training. This approach paves the way for deploying robust deep learning models in resource-constrained environments.
Summary updated