NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Local Lipschitz Constant Computation of ReLU-FNNs: Upper Bound Computation with Exactness Verification

Yoshio Ebihara, Xin Dai, Victor Magron, Dimitri Peaucelle, Sophie Tarbouriech · DOI

Abstract

Certifying the robustness of deep neural networks against adversarial perturbations is a critical challenge for their deployment in safety-critical systems. This paper presents a novel framework for computing the local Lipschitz constant of ReLU-based feedforward neural networks (FNNs). By introducing a new class of copositive multipliers and an exact model reduction technique, the proposed method achieves tighter upper bounds than existing semidefinite programming (SDP) approaches. Furthermore, a duality-based exactness test is provided to verify when the computed bound is globally optimal. Experiments on MNIST demonstrate that the method can scale to networks with hundreds of neurons by pruning locally inactive ReLUs, enabling formal robustness certification where previous methods were computationally intractable.

Introduction

Deep neural networks (DNNs) are highly sensitive to adversarial attacks, where infinitesimal input perturbations can lead to incorrect classifications. Quantifying this sensitivity is essential for building trustworthy AI. The Lipschitz constant, which measures the maximum rate of change of a function, serves as a fundamental metric for robustness. While the global Lipschitz constant provides a worst-case bound over the entire input space, it is often overly conservative. Consequently, researchers focus on the local Lipschitz constant, which characterizes sensitivity within a small neighborhood of a specific input.

Computing the exact local Lipschitz constant is an NP-hard problem. Existing methods typically rely on Semidefinite Programming (SDP) relaxations. However, these methods face a trade-off between tightness and scalability: they either produce loose bounds or become computationally prohibitive for networks exceeding a few dozen neurons. This work addresses these limitations through improved multipliers and structural pruning.

Methodology

The authors propose a three-pronged approach to improve both the precision and scalability of local Lipschitz estimation.

Copositive Multipliers

To characterize the non-linear behavior of ReLU activations within an optimization framework, the authors introduce "copositive multipliers." These multipliers are shown to be more expressive than standard O’Shea-Zames-Falb or Fazlyab multipliers. Mathematically, the authors prove a hierarchy of inclusion ($\Pi_{OZF} \subset \Pi_{NN} \subset \Pi_{COP}$), guaranteeing that the proposed method yields upper bounds at least as tight as previous state-of-the-art techniques.

Exact Model Reduction

The primary bottleneck for SDP-based certification is the number of ReLU neurons. The authors observe that within a small local neighborhood, many neurons are "stuck"—they are either always active (linear) or always inactive (zero). By identifying and pruning these neurons, the original network can be reduced to a much smaller "reduced order model" that is functionally identical within the neighborhood of interest.

The number of active neurons $n_r$ increases with the perturbation radius $\epsilon$, demonstrating the effectiveness of model reduction for small neighborhoods.

As shown in Figure 1, the number of relevant neurons $n_r$ grows with the radius $\epsilon$. For small $\epsilon$, the reduction is dramatic, enabling high-precision solvers to operate on architectures that were previously considered intractable.

Exactness Verification

To determine if an upper bound is tight, the authors derive a rank condition from the dual of the optimization problem. If the optimal dual solution has a rank of 1, the computed upper bound is proven to be the exact local Lipschitz constant.

Experimental Evaluation

The framework was evaluated on randomly generated toy networks and the MNIST dataset. For a pre-trained single-layer ReLU-FNN with 500 neurons, the model reduction technique was particularly effective. At a perturbation radius of $\epsilon = 0.1$, the network was reduced from 500 ReLUs to just 26.

An example of a perturbed MNIST digit and its corresponding logit vector $z^*$ produced by the FNN. The bolded value indicates the predicted class remains correct despite noise.

Using the exact local Lipschitz constant ($L = 0.1416$ for a specific instance), the authors formally certified that no perturbation within $\epsilon = 0.1$ could flip the model's prediction. The computation took approximately 38 minutes on a standard desktop, a significant improvement for high-precision SDP methods.

Discussion and Future Work

The results highlight the power of local pruning and advanced multipliers in bridging the gap between theoretical certification and practical network sizes. However, several challenges remain. The current formulation is optimized for single-layer FNNs; extending this to deep, multi-layer architectures involves managing the compounding complexity of multipliers across layers. Additionally, while the $L_2$ norm was used here, future work aims to adapt these methods for the $L_\infty$ norm, which is more common in adversarial machine learning literature. Finally, as the perturbation radius $\epsilon$ increases, the benefits of model reduction diminish, suggesting a need for further algorithmic innovations for large-scale global analysis.

Summary updated

BibTeX
@inproceedings{ebihara2024local,
  author = {Yoshio Ebihara and Xin Dai and Victor Magron and Dimitri Peaucelle and Sophie Tarbouriech},
  title = {{Local Lipschitz Constant Computation of ReLU-FNNs: Upper Bound Computation with Exactness Verification}},
  booktitle = {ECC},
  year = {2024},
  doi = {10.23919/ecc64448.2024.10590974},
}
Figure