Beyond the Universal Law of Robustness: Sharper Laws for Random Features and Neural Tangent Kernels

Simone Bombari, Shayan Kiyani, Marco Mondelli

Introduction

Machine learning models are notoriously vulnerable to adversarial perturbations. Recently, the "Universal Law of Robustness" proposed that for a model to smoothly interpolate data—a prerequisite for adversarial robustness—the number of parameters $p$ must be significantly larger than the product of the input dimension $d$ and the number of training samples $N$ (i.e., $p > dN$).

However, this law only provides a necessary condition. It establishes a minimum parameter threshold but does not guarantee that reaching it actually makes a model robust. Furthermore, it treats all models as a "black box." This paper tackles the crucial "sufficiency" question: When does over-parameterization actually lead to robustness? By analyzing Random Features (RF) and Neural Tangent Kernels (NTK), the authors prove that while some models can become robust as they grow, others remain fundamentally vulnerable regardless of size.

Methodology: Sensitivity and Interaction Matrices

The authors employ a rigorous mathematical analysis of Empirical Risk Minimization (ERM) in the interpolation regime, where the model perfectly fits the training data.

Key technical innovations include:

  • Sensitivity Measure: They define a scale-invariant sensitivity measure $S_{f_\theta}(z)$ proportional to the norm of the gradient of the model with respect to the input. A robust model should have a sensitivity of $O(1)$, while a vulnerable one sees sensitivity grow with the problem size.
  • The Interaction Matrix: They introduce a new mathematical object called the "interaction matrix." This decouples the influence of the model's kernel from the way the model interacts with test data, isolating the effect of the activation function.
  • Spectral Analysis: They perform a deep dive into the eigenvalues of the feature matrices for both RF and NTK models to derive upper and lower bounds on sensitivity.

Key Findings: Random Features vs. NTK

Random Features are Fundamentally Fragile

The paper proves that for a wide class of activations, Random Features models are never robust, no matter how many parameters are added. Their sensitivity scales as $\Omega(\sqrt{N}) \gg 1$, meaning they remain vulnerable even when they satisfy the universal law's requirements.

Symmetry is a Robustness Booster

A major insight is the role of the activation function. If the activation is even (like $x^2$), it "centers" the kernel, drastically reducing sensitivity. By isolating the "interaction matrix," the authors provide a framework to understand why certain architectures fail to be robust: often, the model's features do not "align" well with the test data distribution unless specific symmetries are present.

NTK Can Reach the Limit

Unlike RF, NTK models with even activations can actually saturate the universal lower bound. For even activations, NTK sensitivity is $O(\sqrt{Nd/p})$. When the model is sufficiently over-parameterized ($p \approx dN$), the sensitivity becomes $O(1)$, achieving true robustness. This confirms a prior conjecture that two-layer neural networks can achieve optimal robustness with a minimal number of parameters.

Experimental Validation

The theoretical results are corroborated by experiments on synthetic high-dimensional Gaussian distributions, as well as standard benchmarks like MNIST and CIFAR-10.

Random Features sensitivity on MNIST and CIFAR-10 comparing tanh and square activations.

As predicted, Random Features models exhibit high sensitivity that scales with the dataset size $N$. While the even $x^2$ activation lowers sensitivity compared to the odd-like $tanh$, the models fundamentally fail to achieve $O(1)$ robustness.

NTK sensitivity on MNIST and CIFAR-10 comparing tanh and square activations across parameter counts.

Conversely, for NTK models, the use of an even activation function ($x^2$) significantly reduces sensitivity as the number of parameters $p$ increases, matching the theoretical prediction that NTK models can achieve optimal robustness when sufficiently over-parameterized.

Limitations and Future Work

  • Activation Constraints: The positive results for NTK are currently limited to even activation functions. The authors conjecture that this symmetry is fundamental for robustness in lazy training, but proving this for more general activations remains an open challenge.
  • Technical Assumptions: The proofs rely on certain high-dimensional scaling assumptions (e.g., $N$ scaling relative to $d^{3/2}$) which might be stricter than what is observed in practice.
  • Adversarial Training: This work focuses on standard ERM. A promising future direction is applying these "interaction matrix" tools to models specifically trained using adversarial training methods to see if the same laws apply.

Summary updated

BibTeX
@inproceedings{bombari2023beyond,
  author = {Simone Bombari and Shayan Kiyani and Marco Mondelli},
  title = {{Beyond the Universal Law of Robustness: Sharper Laws for Random Features and Neural Tangent Kernels}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=fZFNPf1QiF},
}
Figure