Certified Robust Models with Slack Control and Large Lipschitz Constants

Max Maria Losch, David Stutz, Bernt Schiele, Mario Fritz

Introduction

Deep learning models are notoriously sensitive to adversarial perturbations—small, carefully crafted changes to inputs that can lead to incorrect predictions. While empirical defenses often fail against new attacks, certified robustness offers a mathematical guarantee: a model's prediction will remain constant within a defined radius around an input.

However, achieving certified robustness typically comes at a steep cost to "clean" accuracy. Standard approaches often enforce strict smoothness constraints, such as limiting the model's Lipschitz constant ($K$) to 1. While this simplifies certification, it creates a "complexity bottleneck" that prevents models from learning the intricate decision boundaries necessary for high-performance tasks.

The Lipschitz Complexity Bottleneck

The Lipschitz constant $K$ represents the maximum rate of change of a model's output relative to its input. A small $K$ implies a smooth model. Most current certified robustness methods force $K$ to be small (often $K=1$) through architectural constraints. This acts as a heavy regularizer, often leading to "over-smoothing" where the model cannot fit complex data distributions, particularly on datasets like CIFAR-100 or Tiny-ImageNet.

Furthermore, existing margin-based losses, such as GloRo, often suffer from "slack"—a phenomenon where samples are correctly classified but reside too close to the decision boundary to be certified. These losses do not dynamically adjust to the shrinking output distributions during training, leading to suboptimal robust performance.

Calibrated Lipschitz-Margin Loss (CLL)

To address these issues, the authors introduce Calibrated Lipschitz-Margin Loss (CLL). Instead of fighting to keep $K$ small, CLL calibrates the loss function relative to the model's actual Lipschitz constant and a desired safety margin.

Slack Control and Expressivity

A key feature of CLL is the introduction of a "slack" parameter $p$. This parameter allows for precise control over the penalty applied to samples near the decision boundary. By tuning $p$, researchers can allow the Lipschitz constant $K$ to grow, enabling the model to remain expressive and complex while still ensuring that the margin is wide enough for deterministic certification.

The relationship between slack $p$ and the Lipschitz constant $K$. By controlling slack, CLL allows for larger $K$ values, which enables more complex decision boundaries and higher certified robust accuracy (CRA).

Experimental Results

The authors evaluated CLL against standard benchmarks, including synthetic datasets and complex image classification tasks.

Visualizing Decision Boundaries

On the Two-Moons dataset, CLL demonstrates its ability to maintain a robust margin without over-smoothing the decision boundary. As shown below, standard cross-entropy training results in a high Lipschitz constant but zero certified robustness. GloRo achieves robustness by forcing a low $K$, but this can lead to misclassifications. CLL finds a superior middle ground, allowing for a larger $K$ that fits the data perfectly while maintaining a 100% certified robust accuracy.

Comparison of decision boundaries and margins for Cross-Entropy, GloRo, and CLL (Ours) on the Two-Moons dataset. CLL achieves 100% CRA by allowing a larger Lipschitz constant than GloRo while maintaining a well-calibrated margin.

Performance on Image Benchmarks

CLL consistently outperforms existing deterministic $L_2$ robust training methods:

  • Tiny-ImageNet: CLL improved Certified Robust Accuracy (CRA) by over 2% compared to GloRo, while simultaneously increasing clean accuracy.
  • CIFAR-100: CLL achieved a state-of-the-art CRA of 36.3% at $\epsilon=36/255$.
  • Efficiency: Smaller models trained with CLL often outperformed larger models constrained by $K=1$ architectures, proving that calibrated training is more effective than architectural brute force.

Conclusion

The research demonstrates that "smoothness" is not the only path to safety. By decoupling the Lipschitz constant from the certification process and introducing explicit slack control, CLL allows for the training of expressive, high-accuracy models that are also rigorously robust. This shift from architectural constraints to calibrated loss functions opens new avenues for scaling certified robustness to even more complex real-world datasets.

Summary updated

BibTeX
@inproceedings{losch2023certified,
  author = {Max Maria Losch and David Stutz and Bernt Schiele and Mario Fritz},
  title = {{Certified Robust Models with Slack Control and Large Lipschitz Constants}},
  booktitle = {DAGM},
  year = {2023},
  doi = {10.1007/978-3-031-54605-1\_37},
}
Figure