Skip to main content
QUICK REVIEW

[Paper Review] S2O: Enhancing Adversarial Training with Second-Order Statistics of Weights

Gaojie Jin, Xinping Yi|arXiv (Cornell University)|Mar 1, 2026
Adversarial Robustness in Machine LearningComputer Science0 citations
TL;DR

S2O proposes optimizing second-order statistics of weights within a PAC-Bayesian framework to boost adversarial robustness and generalization, using Laplace-approximation for weight correlations and yielding improvements both standalone and with other adversarial training methods.

ABSTRACT

Adversarial training has emerged as a highly effective way to improve the robustness of deep neural networks (DNNs). It is typically conceptualized as a min-max optimization problem over model weights and adversarial perturbations, where the weights are optimized using gradient descent methods, such as SGD. In this paper, we propose a novel approach by treating model weights as random variables, which paves the way for enhancing adversarial training through extbf{S}econd-Order extbf{S}tatistics extbf{O}ptimization (S$^2$O) over model weights. We challenge and relax a prevalent, yet often unrealistic, assumption in prior PAC-Bayesian frameworks: the statistical independence of weights. From this relaxation, we derive an improved PAC-Bayesian robust generalization bound. Our theoretical developments suggest that optimizing the second-order statistics of weights can substantially tighten this bound. We complement this theoretical insight by conducting an extensive set of experiments that demonstrate that S$^2$O not only enhances the robustness and generalization of neural networks when used in isolation, but also seamlessly augments other state-of-the-art adversarial training techniques. The code is available at https://github.com/Alexkael/S2O.

Motivation & Objective

  • Relax the weight-independence assumption in PAC-Bayes to account for weight correlations.
  • Derive a robust generalization bound that incorporates second-order statistics of weights.
  • Develop a practical regularizer (S2O) that improves robustness and generalization during training.
  • Provide an efficient estimation/optimization framework for weight correlations via Laplace approximation.
  • Demonstrate that S2O complements and enhances existing adversarial training techniques across architectures and datasets.

Proposed method

  • Model weights as random variables with non-spherical Gaussian posterior to capture correlations across dimensions.
  • Define and compute weight correlation matrices R, Rc, and Rr for layer-wise perturbations.
  • Derive robust generalization bounds that include determinants and spectral norms of correlation matrices (Theorem III.2, III.5).
  • Use Laplace approximation to estimate the weight correlation matrix from Hessian information (Section IV-B).
  • Introduce S2O as a Frobenius-norm based regularizer on weight correlations to guide adversarial training (Section IV-C).
  • Show that minimizing the proposed second-order statistics terms tightens the robust generalization bound and improves robustness.

Experimental results

Research questions

  • RQ1How do second-order weight statistics influence robust generalization bounds under adversarial training?
  • RQ2Can correlation matrices of weights be effectively estimated in practice (e.g., via Laplace approximation) and integrated into training?
  • RQ3Does S2O improve robustness and generalization on its own and when combined with existing adversarial training methods across architectures and datasets?

Key findings

  • A robust generalization bound that incorporates weight correlations yields insights into the role of second-order statistics in robustness.
  • Optimization of the weight correlation matrix via Frobenius norm and Laplace-based estimation informs the S2O regularizer.
  • S2O enhances robustness and generalization when used alone and also synergistically boosts other adversarial training approaches.
  • Empirical validation spans diverse architectures (e.g., ViT-B, DeiT-S) and datasets (e.g., Tiny-ImageNet, Imagenette) with robustness metrics over multiple l_p norms.
  • Code for S2O is publicly available, enabling replication and further exploration.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.