Bridged Adversarial Training

Hoki Kim, Woojin Lee, Sungyoon Lee, Jaewook Lee

TL;DR

Adversarial training methods often struggle to balance decision boundary margin and model smoothness, especially under large perturbations. This paper reveals a fundamental gradient conflict where smoothness regularizers actively hinder margin maximization, and introduces Bridged Adversarial Training (BAT) to resolve this by training on intermediate paths between clean and adversarial examples.

What Problem Does This Paper Address?

Deep neural networks are notoriously fragile to adversarial perturbations—small, intentional changes to inputs that cause misclassification. Two dominant defense strategies exist: Adversarial Training (AT), which maximizes the classification margin around adversarial examples, and TRADES, which balances the margin of clean examples with a smoothness regularizer (minimizing the KL divergence between clean and adversarial outputs).

Illustration of margin vs smoothness

While both achieve decent robustness, they have vastly different internal characteristics: AT yields large margins but poor smoothness, while TRADES yields high smoothness but smaller margins. The authors investigate why this trade-off exists and uncover a critical flaw: the smoothness regularizer used in TRADES directly conflicts with margin maximization during gradient descent, causing severe convergence issues when dealing with large adversarial perturbations ($\epsilon$).

Methods

The authors first mathematically formalize the conflict (Proposition 1), proving that the gradient direction for minimizing the smoothness loss ($KL(p||p^*)$) runs opposite to the gradient direction needed to maximize the decision margin.

To fix this, they propose Bridged Adversarial Training (BAT). Instead of calculating the smoothness penalty directly between the clean example $x$ and the adversarial example $x^*$, BAT introduces one or more intermediate virtual examples along a continuous path $\gamma(t)$ connecting the two points (typically a simple linear interpolation: $\gamma(t) = (1-t)x + tx^*$).

The loss function is modified to minimize the sum of KL divergences between consecutive steps along this path:

$$\sum_{k=0}^{m-1} KL(p_\theta(\gamma(\frac{k}{m})) \parallel p_\theta(\gamma(\frac{k+1}{m})))$$

By breaking down a large perturbation step into smaller "bridges," BAT dramatically reduces the negative gradient conflict, allowing the model to smoothly transition from clean to adversarial spaces without sacrificing its margin.

Datasets

  • MNIST: Used for evaluating extreme perturbation thresholds ($\epsilon = 0.3$ and $\epsilon = 0.45$).
  • CIFAR-10: Evaluated at standard ($\epsilon = 8/255$) and large ($\epsilon = 16/255$) perturbations, both with standard training and Robust Self-Training (RST) using 500K additional unlabeled images.
  • CIFAR-100: Used to test scalability to higher-dimensional label spaces.

Key Insights and Ideas

  • The Smoothness-Margin Tug-of-War: Minimizing the distance between clean and adversarial outputs inherently compresses the model's output distribution, which inadvertently shrinks the classification margin.
  • Catastrophic Failure at Large $\epsilon$: Standard defenses break down completely when the perturbation budget $\epsilon$ is large. For instance, on MNIST with $\epsilon > 0.35$, TRADES and AT drop to near-zero or random-guess robust accuracy because their conflicting objectives prevent proper optimization convergence.
Accuracy drop at large perturbations
  • Bridging as a Gradient Harmonizer: By introducing intermediate steps, the directional deviation of the smoothness gradient is minimized. This stabilizes training, providing a higher normalized gradient norm that helps the model escape suboptimal local minima early in training.

Key Results

  • Robustness at Large Perturbations: On MNIST with a massive perturbation budget ($\epsilon = 0.45$), BAT maintains 88.20% PGD accuracy and 76.09% AutoAttack accuracy, while AT, TRADES, and MART collapse entirely (all scoring under 12% robust accuracy).
  • CIFAR-10 Performance: At a large perturbation of $\epsilon = 16/255$, BAT achieves 25.06% AutoAttack accuracy and 77.56% clean accuracy, significantly outperforming TRADES (14.63% AutoAttack / 70.01% clean).
  • With Unlabeled Data: When paired with Robust Self-Training (BAT-RST) on CIFAR-10 ($\epsilon = 16/255$), it reaches 27.70% AutoAttack accuracy, outperforming AT-RST and TRADES-RST.

Limitations and Future Work

While BAT achieves the highest robust accuracy on CIFAR-100, it fails to improve standard (clean) accuracy compared to AT or TRADES on this dataset. The authors attribute this to the fact that satisfying the assumption of monotonic probability decrease along the interpolation path becomes significantly harder as the output dimension increases.

Future work could explore non-linear or adaptive bridging paths that better accommodate complex, multi-class datasets like CIFAR-100 or ImageNet.

Summary updated

BibTeX
@article{kim2023bridged,
  author = {Hoki Kim and Woojin Lee and Sungyoon Lee and Jaewook Lee},
  title = {{Bridged Adversarial Training}},
  journal = {Neural Networks},
  year = {2023},
  doi = {10.1016/j.neunet.2023.08.024},
}
Figure