Generalised Lipschitz Regularisation Equals Distributional Robustness

Zac Cranko, Zhan Shi, Xinhua Zhang, Richard Nock, Simon Kornblith

Introduction

Machine learning models are notoriously fragile. A tiny, imperceptible amount of noise—an adversarial example—can flip a model's prediction entirely. To combat this, researchers typically rely on two main strategies:

  1. Distributional Robustness (DR): Training the model to perform well not just on the training data, but on any distribution "near" it (often defined by a transportation cost like the Wasserstein distance).
  2. Lipschitz Regularization: Forcing the model to be "smooth" so that small input changes lead to proportionally small output changes.

While researchers have long suspected these two concepts were essentially two sides of the same coin, previous proofs relied on highly restrictive assumptions, such as specific loss functions or linear classifiers. This paper establishes a rigorous mathematical bridge between the two, providing a tight characterization of when "Robustness = Regularization" and offering a practical way to apply these theories to non-linear models like kernel methods.

Methods: Theory and Algorithm Design

The authors approach the problem from two distinct angles: theoretical generalization and scalable algorithm design.

Theoretical Generalization

Using techniques from difference-convex optimization, the authors prove that for a wide class of functions, the worst-case risk over an uncertainty set is bounded by (and often equal to) the standard risk plus a Lipschitz penalty. Crucially, they characterize the "slackness"—the gap that exists when the equality doesn't perfectly hold. This provides the first tight quantification of this error under mild assumptions.

Scalable Kernel Regularization

Enforcing Lipschitz constants in deep neural networks is NP-hard. However, the authors demonstrate that it is much more tractable in Kernel Methods. They propose several innovations to achieve this:

  • Eigenvalue Bounds: They bound the Lipschitz constant using the maximum eigenvalue of a matrix derived from the kernel's partial derivatives.
  • Nyström Approximation: To scale this to large datasets, they use a Nyström-based sampling method. For "product kernels" (like the popular Gaussian kernel), they prove that the number of samples needed to estimate the Lipschitz constant grows polynomially, not exponentially, with dimension.
  • Greedy Landmark Selection: Instead of random sampling, they use a greedy approach (via L-BFGS) to find the specific points in the input space where the model's gradient is steepest, enforcing the constraint where it matters most.
Comparing eigenvalue bounds to the Lipschitz constant for different kernels.

Key Insights and Ideas

  • The "Aha" Moment on Slackness: Most prior work treated the relationship between robustness and Lipschitzness as a simple inequality. This paper shows exactly why and by how much that inequality fails to be an equality, linking it directly to the "lack of convexity" in the loss function.
  • Kernels as a Robust Alternative: While the industry has heavily favored Neural Networks, this paper suggests that Kernel Methods might be superior for safety-critical applications. Their smoothness (Lipschitzness) can be mathematically guaranteed and efficiently optimized.
  • Dimensionality Independence: By exploiting the structure of product kernels, the authors show that you don't need a massive number of samples to ensure a model is smooth, even in high-dimensional spaces. This effectively bypasses the "curse of dimensionality" that usually plagues such proofs.
Correlation between theoretical bounds and empirical adversarial risk.

Key Results

The authors evaluated their approach on standard computer vision benchmarks used in adversarial robustness research, including MNIST, Fashion-MNIST, and CIFAR-10.

  • Superior Robustness: Their method, Gauss-Lip (Gaussian kernel with Lipschitz regularization), significantly outperformed state-of-the-art Lipschitz-constrained neural networks (like Parseval Networks) across all three datasets.
  • Resistance to Attacks: Under strong adversarial attacks (PGD with 100 steps), Gauss-Lip maintained higher accuracy than baselines. For example, on MNIST with a significant perturbation budget, Gauss-Lip remained robust while standard "robust" neural networks saw their accuracy drop much faster.
  • Efficiency: The greedy Nyström approach was shown to be orders of magnitude more efficient than brute-force sampling, reaching the desired Lipschitz threshold with very few "landmark" points.

Limitations and Future Work

While promising, the approach has a few limitations:

  • Local Optimality: The greedy landmark selection relies on L-BFGS, a local solver. While effective in practice, there is no theoretical guarantee that it finds the absolute steepest point of the gradient.
  • Kernel Scaling: Even with Nyström approximations, kernel methods generally struggle to scale to the massive dataset sizes (millions of images) handled natively by deep learning without further approximations.
  • Extension to Deep Learning: The authors focused on kernels because the underlying math is cleaner. A major future direction is translating these tight "slackness" bounds into architectural constraints for deep neural networks to achieve similar, mathematically guaranteed robustness gains.

Summary updated

BibTeX
@inproceedings{cranko2021generalised,
  author = {Zac Cranko and Zhan Shi and Xinhua Zhang and Richard Nock and Simon Kornblith},
  title = {{Generalised Lipschitz Regularisation Equals Distributional Robustness}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=N5gUW7I0gO},
}
Figure