On the Scalability and Memory Efficiency of Semidefinite Programs for Lipschitz Constant Estimation of Neural Networks
Zi Wang, Bin Hu, Aaron J. Havens, Alexandre Araujo, Yang Zheng, Yudong Chen, Somesh Jha
Abstract
Lipschitz constant estimation plays an important role in understanding generalization, robustness, and fairness in deep learning. Unlike naive bounds based on the network weight norm product, semidefinite programs (SDPs) have shown great promise in providing less conservative Lipschitz bounds with polynomial-time complexity guarantees. However, due to the memory consumption and running speed, standard SDP algorithms cannot scale to modern neural network architectures. In this paper, we transform the SDPs for Lipschitz constant estimation into an eigenvalue optimization problem, which aligns with the modern large-scale optimization paradigms based on first-order methods. This is amenable to autodiff frameworks such as PyTorch and TensorFlow, requiring significantly less memory than standard SDP algorithms. The transformation also allows us to leverage various existing numerical techniques for eigenvalue optimization, opening the way for further memory improvement and computational speedup. The essential technique of our eigenvalue-problem transformation is to introduce redundant quadratic constraints and then utilize both Lagrangian and Shor's SDP relaxations under a certain trace constraint. Notably, our numerical study successfully scales the SDP-based Lipschitz constant estimation to address large neural networks on ImageNet. Our numerical examples on CIFAR10 and ImageNet demonstrate that our technique is more scalable than existing approaches. Our code is available at https://github.com/z1w/LipDiff.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
7 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- HiQ-Lip: A Hierarchical Quantum-Classical Method for Global Lipschitz Constant Estimation of ReLU Networks cites Exactly Computing the Local Lipschitz Constant of ReLU Networks
- HiQ-Lip: A Hierarchical Quantum-Classical Method for Global Lipschitz Constant Estimation of ReLU Networks cites Globally-Robust Neural Networks
- Policy Verification in Stochastic Dynamical Systems Using Logarithmic Neural Certificates cites Lipschitz constant estimation of Neural Networks via sparse polynomial optimization
- Policy Verification in Stochastic Dynamical Systems Using Logarithmic Neural Certificates cites Exactly Computing the Local Lipschitz Constant of ReLU Networks
- Exactly Computing the Local Lipschitz Constant of ReLU Networks cites Lipschitz constant estimation of Neural Networks via sparse polynomial optimization
- ECLipsE: Efficient Compositional Lipschitz Constant Estimation for Deep Neural Networks cites Lipschitz constant estimation of Neural Networks via sparse polynomial optimization
- ECLipsE: Efficient Compositional Lipschitz Constant Estimation for Deep Neural Networks cites Exactly Computing the Local Lipschitz Constant of ReLU Networks
- ECLipsE: Efficient Compositional Lipschitz Constant Estimation for Deep Neural Networks cites Direct Parameterization of Lipschitz-Bounded Deep Networks
- Fine-grained Local Sensitivity Analysis of Standard Dot-Product Self-Attention cites Novel Quadratic Constraints for Extending LipSDP beyond Slope-Restricted Activations
- Fine-grained Local Sensitivity Analysis of Standard Dot-Product Self-Attention cites Direct Parameterization of Lipschitz-Bounded Deep Networks
- Novel Quadratic Constraints for Extending LipSDP beyond Slope-Restricted Activations cites Lipschitz constant estimation of Neural Networks via sparse polynomial optimization
- Novel Quadratic Constraints for Extending LipSDP beyond Slope-Restricted Activations cites Exactly Computing the Local Lipschitz Constant of ReLU Networks
- Novel Quadratic Constraints for Extending LipSDP beyond Slope-Restricted Activations cites Direct Parameterization of Lipschitz-Bounded Deep Networks
- Novel Quadratic Constraints for Extending LipSDP beyond Slope-Restricted Activations cites Globally-Robust Neural Networks
Cited by top-tier papers7
- ECLipsE: Efficient Compositional Lipschitz Constant Estimation for Deep Neural NetworksYuezhu Xu, S. SivaranjaniNeurIPS 2024 · 19 citations
- Novel Quadratic Constraints for Extending LipSDP beyond Slope-Restricted ActivationsPatricia Pauli, Aaron J. Havens, Alexandre Araujo, Siddharth Garg et al.ICLR 2024 · 7 citations
- Fine-grained Local Sensitivity Analysis of Standard Dot-Product Self-AttentionAaron J. Havens, Alexandre Araujo, Huan Zhang, Bin HuICML 2024 · 2 citations
- HiQ-Lip: A Hierarchical Quantum-Classical Method for Global Lipschitz Constant Estimation of ReLU NetworksHaoqi He, Yan Xiao, Wenzhi Xu, Ruoying Liu et al.AAAI 2026 · 1 citation
- Policy Verification in Stochastic Dynamical Systems Using Logarithmic Neural CertificatesThom Badings, Wietze Koops, Sebastian Junges, Nils JansenCAV 2025 · 1 citation
Builds on13
- Exactly Computing the Local Lipschitz Constant of ReLU NetworksMatt Jordan, Alexandros G. DimakisNeurIPS 2020 · 156 citations
- Lipschitz constant estimation of Neural Networks via sparse polynomial optimizationFabian Latorre, Paul Rolland, Volkan CevherICLR 2020 · 154 citations
- Globally-Robust Neural NetworksKlas Leino, Zifan Wang, Matt FredriksonICML 2021 · 150 citations
- Enabling certification of verification-agnostic networks via memory-efficient semidefinite programmingSumanth Dathathri, Krishnamurthy Dvijotham, Alexey Kurakin, Aditi Raghunathan et al.NeurIPS 2020 · 102 citations
- Direct Parameterization of Lipschitz-Bounded Deep NetworksRuigang Wang, Ian R. ManchesterICML 2023 · 66 citations
Related papers
- A Quantitative Geometric Approach to Neural-Network SmoothnessZi Wang, Gautam Prakriya, Somesh JhaNeurIPS 2022 · 20 citations
- Semialgebraic Optimization for Lipschitz Constants of ReLU NetworksTong Chen, Jean B. Lasserre, Victor Magron, Edouard PauwelsNeurIPS 2020 · 51 citations
- Provable Lipschitz Certification for Generative ModelsMatt Jordan, Alex DimakisICML 2021 · 15 citations
- On Lipschitz Regularization of Convolutional Layers using Toeplitz Matrix TheoryAlexandre Araujo, Benjamin Négrevergne, Yann Chevaleyre, Jamal AtifAAAI 2021 · 31 citations
- DP-SGD Without Clipping: The Lipschitz Neural Network WayLouis Béthune, Thomas Massena, Thibaut Boissin, Aurélien Bellet et al.ICLR 2024 · 13 citations
