NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Splitting the Difference on Adversarial Training

Matan Levi, Aryeh Kontorovich

TL;DR

Double Boundary Adversarial Training (DBAT) treats adversarially perturbed examples as entirely new, separate classes rather than trying to force them into existing clean class boundaries. By doubling the number of classes, DBAT simplifies the geometry of the decision boundaries, allowing models to achieve near-optimal natural accuracy (e.g., 95.01% on CIFAR-10) while maintaining significant robustness against attacks.

What Problem Does This Paper Address?

Deep neural networks are notoriously brittle. Small, imperceptible perturbations—known as adversarial examples—can easily trick a model into misclassification. The standard defense, Adversarial Training (AT), involves training the model on these perturbed examples.

However, AT typically suffers from a frustrating "robustness-accuracy trade-off." To make a model robust, you usually have to sacrifice its performance on clean, "natural" data. The authors argue this happens because standard AT forces a single decision boundary to "stretch" and encompass both clean and noisy versions of a class. This creates highly complex, jagged boundaries that degrade natural accuracy.

Methods

The authors propose a novel approach called Double Boundary Adversarial Training (DBAT). Instead of assigning an adversarial example to its original source class, they treat it as a member of a new, parallel "adversarial class."

If a dataset has $C$ classes, DBAT trains the model on $2C$ classes. For every natural class $k$, there is a corresponding adversarial class $k+C$.

  1. Training: For each clean image, the model generates an adversarial version using targeted Projected Gradient Descent (PGD). The clean image is trained with its original label, while the adversarial version is trained with the new "adversarial" label.
  2. Inference: At test time, the model outputs probabilities for all $2C$ classes. To make a final prediction, it "collapses" the pairs by taking the maximum probability between a natural class and its adversarial counterpart.
Conceptual illustration of DBAT vs standard AT. Standard AT (c) learns complex shared boundaries, while DBAT (d) learns simpler, separate boundaries.

Datasets

The researchers evaluated DBAT on three standard computer vision benchmarks:

  • CIFAR-10: 10 classes of small images.
  • CIFAR-100: 100 classes, providing a test for how the method scales with more categories.
  • SVHN (Street View House Numbers): A digit classification task.

They also tested against CIFAR-10-C and CIFAR-100-C to evaluate robustness against common natural corruptions like blur, snow, and digital noise.

Key Insights and Ideas

  • Simplicity Over Unity: The core "aha moment" is that it is statistically easier to learn two simple decision boundaries than one extremely complex one. By "splitting the difference," the model doesn't have to distort its natural class boundaries to accommodate adversarial outliers.
  • The "DBAT Advantage": The authors provide a theoretical argument using Vapnik-Chervonenkis (VC) dimension. They show that if a complex concept can be expressed as a union of two simpler ones, the sample complexity (the amount of data needed to learn well) can actually decrease, even though the number of classes has increased.
  • Distributional Shift: The paper hypothesizes that adversarial perturbations induce a totally distinct distribution. Visualizations using t-SNE (Figure 3 in the paper) confirm that clean and adversarial examples naturally cluster separately in the model's feature space.
Synthetic dataset visualization showing that DBAT learns much smoother and simpler decision boundaries compared to the jagged boundaries of standard AT.

Key Results

DBAT's primary strength is its ability to maintain high natural accuracy while providing a "safety net" of robustness:

  • Near-Optimal Natural Accuracy: On CIFAR-10, DBAT achieved 95.01% natural accuracy, nearly matching a standard non-robust model (95.43%) and significantly outperforming standard AT (~85%).
  • Robustness: While not surpassing the absolute state-of-the-art in pure robustness, DBAT maintained a respectable 40.08% accuracy under the rigorous Auto-Attack (AA) benchmark.
  • Generalization: On SVHN, DBAT achieved 96.86% natural accuracy—essentially no degradation compared to a standard model—while still being robust to multiple attack types.
  • Natural Corruptions: DBAT showed superior performance against common corruptions (like blur or noise), outperforming other robust methods by an average of ~8-10%.

Limitations and Future Work

  • Training Cost: Like all PGD-based adversarial training, DBAT is computationally expensive because it requires generating adversarial examples during every training step.
  • Robustness Ceiling: The authors acknowledge that DBAT is not intended to beat specialized SOTA models that prioritize robustness above all else. It is designed for real-world applications (like medical diagnosis or autonomous driving) where natural accuracy cannot be sacrificed.
  • Class Scaling: While it worked well on CIFAR-100, doubling the classes in massive datasets (like ImageNet-1k) would add significant parameters to the final layer, though the authors note this overhead is generally minor (around 0.13% for typical architectures).

Summary updated

BibTeX
@inproceedings{levi2024splitting,
  author = {Matan Levi and Aryeh Kontorovich},
  title = {{Splitting the Difference on Adversarial Training}},
  booktitle = {USENIX Security},
  year = {2024},
}
Figure