[Paper Review] Efficiently Computing Local Lipschitz Constants of Neural Networks via Bound Propagation
This paper proposes a scalable framework for efficiently computing tight $ε_{\infty}$ local Lipschitz constants of neural networks using linear bound propagation on a high-order backward graph of the Clarke Jacobian. By deriving tight, closed-form linear relaxations for nonlinearity gradients and integrating with Branch-and-Bound, the method achieves state-of-the-art tightness and scalability, outperforming prior methods on large models including practical CNNs.
Lipschitz constants are connected to many properties of neural networks, such as robustness, fairness, and generalization. Existing methods for computing Lipschitz constants either produce relatively loose upper bounds or are limited to small networks. In this paper, we develop an efficient framework for computing the $\ell_\infty$ local Lipschitz constant of a neural network by tightly upper bounding the norm of Clarke Jacobian via linear bound propagation. We formulate the computation of local Lipschitz constants with a linear bound propagation process on a high-order backward graph induced by the chain rule of Clarke Jacobian. To enable linear bound propagation, we derive tight linear relaxations for specific nonlinearities in Clarke Jacobian. This formulate unifies existing ad-hoc approaches such as RecurJac, which can be seen as a special case of ours with weaker relaxations. The bound propagation framework also allows us to easily borrow the popular Branch-and-Bound (BaB) approach from neural network verification to further tighten Lipschitz constants. Experiments show that on tiny models, our method produces comparable bounds compared to exact methods that cannot scale to slightly larger models; on larger models, our method efficiently produces tighter results than existing relaxed or naive methods, and our method scales to much larger practical models that previous works could not handle. We also demonstrate an application on provable monotonicity analysis. Code is available at https://github.com/shizhouxing/Local-Lipschitz-Constants.
Motivation & Objective
- To address the lack of scalable and tight methods for computing local Lipschitz constants in large neural networks.
- To unify and generalize existing approaches like RecurJac under a principled bound propagation framework.
- To enable the use of advanced verification techniques, such as Branch-and-Bound, to further tighten bounds.
- To scale local Lipschitz computation to practical, large-scale models, including convolutional networks, that were previously intractable.
- To demonstrate the utility of tight local Lipschitz bounds in applications like provable monotonicity analysis.
Proposed method
- Formulates local Lipschitz constant computation as upper bounding the $\ell_{\infty}$ norm of the Clarke Jacobian via a high-order backward computational graph derived from the chain rule.
- Introduces a tight, closed-form linear relaxation for Clarke gradients with optimality guarantees, enabling efficient linear bound propagation on the backward graph.
- Applies linear bound propagation to propagate bounds through the backward graph, treating nonlinearity gradients as composite functions requiring specialized relaxation.
- Reinterprets RecurJac as a special case of the proposed framework using looser interval bounds instead of tight linear relaxations.
- Integrates the Branch-and-Bound (BaB) approach from neural network verification to refine bounds when computational budget allows, trading off tightness and time cost.
- Leverages GPU-accelerated linear bound propagation for scalability, enabling application to large, practical models.
Experimental results
Research questions
- RQ1Can linear bound propagation techniques from neural network verification be adapted to compute tight local Lipschitz constants?
- RQ2How can the Clarke Jacobian’s norm be efficiently and tightly bounded using linear relaxations of its nonlinear components?
- RQ3Can the proposed framework scale to large, practical deep neural networks, including convolutional architectures, where exact methods fail?
- RQ4To what extent can the integration of Branch-and-Bound further tighten the computed Lipschitz bounds?
- RQ5Can the computed local Lipschitz constants enable new applications, such as provable monotonicity analysis?
Key findings
- On small models, the method produces bounds comparable to exact MIP-based methods, which are infeasible for larger networks.
- On larger models, the method achieves tighter bounds than existing relaxed or naive methods while maintaining high efficiency and scalability.
- The method successfully scales to large, practical convolutional neural networks—models previously out of reach for prior local Lipschitz computation techniques.
- The integration of Branch-and-Bound further tightens bounds, offering a tunable trade-off between accuracy and computation time.
- The method enables provable monotonicity analysis of neural networks, demonstrating practical utility beyond robustness and generalization.
- The proposed linear relaxation for Clarke gradients is optimal in tightness and enables exact equivalence to RecurJac under looser bounds, unifying prior approaches.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.