Exploring and Exploiting Decision Boundary Dynamics for Adversarial Robustness

Yuancheng Xu, Yanchao Sun, Micah Goldblum, Tom Goldstein, Furong Huang

Introduction

Standard adversarial training often suffers from "conflicting dynamics," where the decision boundary moves away from some vulnerable points but accidentally moves closer to others. To address this, researchers have introduced DyART (Dynamics-Aware Robust Training), a framework that uses a novel closed-form expression to directly optimize the geometric margins of data points. By prioritizing the most vulnerable points, DyART achieves state-of-the-art adversarial robustness.

The Problem: Conflicting Dynamics

Deep neural networks are notoriously fragile when faced with adversarial examples—tiny, intentional perturbations that flip a model's prediction. The standard defense is Adversarial Training (AT), which involves training the model on these "worst-case" examples.

However, AT typically uses a fixed perturbation budget ($\epsilon$) for every data point. This "one-size-fits-all" approach ignores the fact that some data points are naturally much closer to the decision boundary (and thus more vulnerable) than others. The authors discover a hidden flaw in AT: during training, the decision boundary doesn't move uniformly. In many cases, an update that makes one point more robust actually pushes the boundary closer to another point, decreasing its margin and making it less robust. The authors call this phenomenon conflicting dynamics.

Illustration of conflicting dynamics during adversarial training.

Methodology: Dynamics-Aware Robust Training (DyART)

To solve this, the researchers developed a continuous-time framework to track the "speed" of the decision boundary relative to each data point. Their key technical contributions include:

  1. Margin Gradient Derivation: They derived a closed-form expression for the gradient of the margin with respect to the model parameters. Previously, directly optimizing the geometric distance to the boundary was considered computationally impractical or mathematically obscure.
  2. Soft Decision Boundary: To make the process efficient, they replaced the hard "logit margin" (the difference between the top two classes) with a "soft" version using a smoothed maximum. This allows the algorithm to consider information from all classes simultaneously and reduces the computational cost from being dependent on the number of classes ($O(K)$) to a constant cost.
  3. DyART Algorithm: They designed a cost function $h(R)$ that is both decreasing and convex. Because it is convex, the penalty for having a small margin is disproportionately high, forcing the optimizer to prioritize pushing the boundary away from the most "at-risk" points.

Key Insights

  • The "Aha!" Moment on Dynamics: By visualizing the "speed" of the boundary, the authors showed that in standard AT, nearly 30% of vulnerable points actually see their margins decrease during a training step. This explains why AT often struggles to reach its full potential.
  • Direct vs. Indirect Optimization: Most previous works tried to improve robustness by re-weighting PGD (Projected Gradient Descent) steps. DyART is different because it operates directly on the geometric margin in the input space, which is the most direct measure of robustness.
  • Soft Margins are a Lower Bound: The authors mathematically proved that the "soft margin" they use is a lower bound of the true margin. By increasing the soft margin, you are guaranteed to increase the actual robustness of the model.

Key Results

DyART consistently outperformed state-of-the-art defenses (like TRADES, MART, and AWP) across various perturbation sizes on standard computer vision benchmarks (CIFAR-10 and Tiny-ImageNet).

Performance comparison of DyART against other defenses across different perturbation budgets.
  • CIFAR-10: Under the standard $\epsilon=8/255$ attack, DyART achieved 54.69% AutoAttack accuracy, surpassing TRADES (54.28%) and MART (52.91%).
  • Versatility: DyART showed significant gains at smaller perturbation budgets (e.g., $\epsilon=2/255$), where it maintained much higher clean accuracy than its competitors.
  • Tiny-ImageNet: DyART achieved the highest robust accuracy across all tested perturbation budgets while also maintaining the highest clean accuracy (49.71%), proving it scales well to more complex datasets.

Limitations and Future Work

  • Computational Bottleneck: Even with the "soft" optimization, DyART requires finding the closest boundary point using an iterative process (a modified version of the FAB attack). This makes it slower than standard AT. Developing faster numerical methods for finding these points is a priority for future work.
  • Discrete vs. Continuous: While the theory is based on continuous-time dynamics, neural networks are trained in discrete steps. Bridging this gap more rigorously could lead to even more stable training.
  • Theoretical Depth: The paper identifies that conflicting dynamics happen, but a deeper theoretical explanation of why they are so prevalent in high-dimensional spaces remains an open question.

Summary updated

BibTeX
@inproceedings{xu2023exploring,
  author = {Yuancheng Xu and Yanchao Sun and Micah Goldblum and Tom Goldstein and Furong Huang},
  title = {{Exploring and Exploiting Decision Boundary Dynamics for Adversarial Robustness}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=aRTKuscKByJ},
}
Figure