The Price of Implicit Bias in Adversarially Robust Generalization

Nikolaos Tsilivis, Natalie Frank, Nathan Srebro, Julia Kempe

Introduction: The Robustness Gap

In standard machine learning, overparameterized models often generalize remarkably well despite fitting noisy training data perfectly. This phenomenon is largely attributed to the "implicit bias" of optimization algorithms like Gradient Descent (GD), which naturally steers the model toward "simple" solutions. However, this miracle of generalization often vanishes in the context of Adversarially Robust Empirical Risk Minimization (ERM).

In robust training, models frequently exhibit a massive "robust generalization gap"—they appear invincible against perturbations on the training set but fail miserably against attackers at test time. This paper investigates whether the implicit bias that aids standard generalization becomes a liability in robust settings, a phenomenon the authors term the "Price of Implicit Bias."

Theoretical Framework

The authors analyze the interaction between optimization and robustness through three primary lenses:

  1. Generalization Bounds: They examine how the choice of regularization norm ($l_r$) interacts with the adversarial perturbation norm ($l_p$). Their analysis shows that the "optimal" regularization strategy depends heavily on the sparsity of the underlying data and the magnitude of the adversarial attack.
  2. Steepest Descent Analysis: For linear models, the authors prove that "steepest descent" algorithms (including GD and Coordinate Descent) converge to solutions that minimize specific norms. Crucially, in robust settings, the inherent bias of the algorithm starts to compete with the bias induced by the adversarial perturbations themselves.
  3. Architecture as Bias: The study explores diagonal linear networks—a reparameterization of linear models that does not change their representational capacity but fundamentally alters how GD optimizes them. This reparameterization effectively induces an $l_1$ (sparsity-promoting) bias, demonstrating that architecture itself acts as a hidden regularizer.

Key Insights: Alignment and Sparsity

The Misalignment Penalty

A central finding of the research is that implicit bias is only beneficial if it aligns with the specific task and threat model. If a model is defended against $l_\infty$ attacks (where every input feature can change slightly) but the optimization algorithm possesses an $l_2$ bias (like standard GD), the model may suffer a "dimension-dependent" statistical penalty. This misalignment prevents the model from reaching the most robust solution possible.

The Role of Sparsity

Sparsity is a deciding factor in determining the "best" algorithm. When the underlying "teacher" model is sparse (meaning only a few features are truly relevant), algorithms with an $l_1$ bias—such as Coordinate Descent or Sign Gradient Descent—drastically outperform standard GD in robust generalization.

Explaining Robust Overfitting

The authors suggest that the "robust overfitting" often observed in deep learning—where test error increases late in training even as training error stays low—might be caused by the implicit bias of the algorithm. If the algorithm's bias is misaligned with the robust objective, it may eventually pull the model toward a solution that is less robust, even if it fits the training data perfectly.

Empirical Results

  • Linear Models: In scenarios involving sparse teachers and $l_\infty$ attacks, Coordinate Descent (CD) and Diagonal Networks outperformed standard GD by over 20% in the robust generalization gap when training data was scarce.
  • Fully Connected Networks: On MNIST (specifically distinguishing digits 2 vs. 7), Sign Gradient Descent (SD)—which possesses an $l_\infty$ bias—significantly outperformed GD. Notably, SD avoided the robust overfitting phase entirely, maintaining high test accuracy while GD's performance decayed over time.
  • Convolutional Neural Networks (CNNs): Interestingly, for CNNs, GD performed better than SD. This suggests that in complex architectures, the interaction between the optimization algorithm and the inductive biases of the layers (like convolutions) is non-trivial. The architectural bias of convolutions may already be performing a form of regularization that conflicts with certain optimization choices.

Conclusion and Future Directions

The research highlights that we cannot treat optimization as a neutral tool in adversarial training. The "Price of Implicit Bias" suggests that instead of relying solely on standard GD, researchers should seek new first-order optimization algorithms specifically tailored for the geometry of adversarial threats.

While much of the current theory is limited to linear or homogeneous models, the "CNN mystery" indicates that there is significant work to be done in understanding how deep, non-homogeneous architectures interact with optimization bias. Moving forward, the goal is to develop "naturally robust" optimizers that align the algorithm's inherent preferences with the requirements of adversarial defense.

Summary updated

BibTeX
@inproceedings{tsilivis2024price,
  author = {Nikolaos Tsilivis and Natalie Frank and Nathan Srebro and Julia Kempe},
  title = {{The Price of Implicit Bias in Adversarially Robust Generalization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=h1grUs6CjN},
}
Figure