FLIP: Fast and Accurate Global Lipschitz Estimation for Large Feedforward Networks

Hongbo Chen, Zihao RenNeurIPS 2026

TL;DR

Calculating how sensitive a neural network is to tiny input changes—measured by its global Lipschitz constant—has historically forced an unpleasant choice: wait hours for a tight mathematical bound, or get an instant answer so loose it is practically useless. FLIP breaks this trade-off by untangling a massive optimization problem into a chain of simple, one-dimensional equations. The result is an algorithm that computes the tightest known bounds for 100-million-parameter networks in under three seconds.

What Problem Does This Paper Address?

Imagine nudging a neural network's input by a microscopic amount. Will the output barely flinch, or swing wildly? The maximum factor by which a network can amplify input differences is its global Lipschitz constant. Knowing this number is crucial for certifying adversarial robustness, stabilizing deep reinforcement learning controllers, and guaranteeing training stability.

Unfortunately, finding the exact Lipschitz constant is NP-hard, so we rely on upper bounds. Historically, you had two options:

  1. The Fast & Loose Way: Multiply the spectral norms (maximum stretching factors) of each weight matrix layer by layer. It takes seconds, with a time complexity of $O(ln^3 + d^3)$ for $l$ layers, width $n$, and output size $d$. However, because it ignores how layers actually interact—assuming every layer stretches the signal in the exact worst-case direction simultaneously—the bound explodes exponentially with depth.
  2. The Slow & Tight Way: Frame the network's constraints as a Semidefinite Program (SDP), famously known as LipSDP. This captures cross-layer interactions beautifully, but solving it via interior-point methods scales at a punishing $O(K_{\text{SDP}}l^4n^4)$. On modern large networks, it runs out of memory or takes days.

The authors tackle a clear gap: how can we get SDP-quality tightness at spectral-norm speeds for massive networks?

Methods

Instead of feeding a giant block matrix into a generic, heavy-duty SDP solver, the authors open up the hood of LipSDP and restructure the math from scratch.

First, using a linear algebra tool called the Schur complement, they transform LipSDP's massive implicit matrix constraint into an explicit recursive form. Now, the optimization looks just like a forward pass through a computation graph, where auxiliary decision variables at each layer sequentially update a matrix state to produce the final Lipschitz bound.

To avoid optimizing all layers simultaneously, the authors introduce a theoretical gem called bound backpropagation. They prove that the final SDP objective can be sandwiched between sequences of upper and lower bounds that propagate backward through the recursion—and crucially, each propagated bound depends only on variables from earlier layers.

Figure 2: Computation graph for FLIP algorithm 1.

By blending these upper and lower bounds (representing sufficiency and necessity) and calibrating their spectral scales, FLIP decomposes the giant SDP into a sequence of layer-by-layer subproblems. Under a scalar-per-layer assumption (matching the standard LipSDP-Layer setting), each subproblem simplifies to a one-dimensional convex optimization with a monotone derivative and a closed-form bracketing interval. Instead of an interior-point solver, FLIP just runs a lightning-fast 1D root-finding secant method at each layer, bringing overall time complexity down to $O(ln^3 + Kld^3)$—nearly identical to the naive product of spectral norms!

Datasets

Because Lipschitz estimation analyzes network weights directly, the authors evaluate FLIP across three distinct setups rather than introducing new data benchmarks:

  • Randomly Initialized Networks: Xavier-initialized feedforward networks scaling up to width 1000 and depth 100 (100M parameters) to test worst-case scaling.
  • SVHN (Street View House Numbers): Over 600,000 $32 \times 32 \times 3$ images flattened into 3072-dimensional vectors, used to train ReLU networks (width 1000, depths 2 to 60) to see how methods handle real, learned weight structures.
  • Synthetic Small Networks: Bias-free, scalar-output ReLU networks (widths 6–20, depths 2–7) used alongside an exact mixed-integer programming solver (LipMIP) for ground-truth sanity checks.

Key Insights and Ideas

  • SDPs can be unrolled like neural networks: LipSDP isn't just a monolithic matrix; its tridiagonal block structure hides a clean layer-by-layer forward recursion waiting to be unrolled.
  • Bound Backpropagation: Just as gradients flow backward to isolate parameter updates in deep learning, mathematical upper and lower bounds on the SDP objective can be propagated upstream to isolate early-layer decision variables from deeper ones.
  • Suboptimality is provably bounded: Approximating a global problem sequentially usually sacrifices theoretical guarantees. Here, the authors prove an a posteriori "sandwich gap" theorem that bounds how far FLIP's estimate can ever drift from the true LipSDP optimum.
  • Avoiding the "partitioning trap": To survive deep networks, standard LipSDP chops a 100-layer network into tiny 3- or 5-layer chunks and multiplies their bounds—throwing away deep layer interactions. Because FLIP solves nested subproblems across the whole graph, it actually beats partitioned LipSDP in tightness while running thousands of times faster.

Key Results

Across both medium (width 300) and large (width 1000) networks, FLIP sits right alongside the naive baseline in runtime while hugging the bottom of the chart (tighter is better) in bound accuracy.

Figure 3: Results on medium-scale networks (width 300).

On a massive 100M-parameter random network (width 1000, depth 100), the numbers speak for themselves:

  • FLIP finishes in 2.69 seconds with a bound of 234.3.
  • Naive Spectral Norm takes 2.18 seconds, but outputs a uselessly loose $1.47 \times 10^{17}$.
  • ECLipsE (a recent fast SDP decomposition method) gets a slightly looser bound of 323.6, but takes 19,249 seconds (~5.3 hours)—making FLIP 7,150$\times$ faster.
  • Partitioned LipSDP-neuron takes 81,554 seconds (~22.6 hours) and yields $1.09 \times 10^7$ (30,295$\times$ slower and orders of magnitude looser due to partitioning).
  • LipDiff crashes with GPU Out-Of-Memory errors, and SeqLip fails to converge.

On SVHN-trained networks, ECLipsE breaks down at deeper layers because real trained weights violate its stricter mathematical assumptions, whereas FLIP scales smoothly to 60 layers with the tightest bounds and sub-second-to-few-second runtimes.

Limitations and Future Work

Currently, FLIP is built strictly for classical feedforward networks (MLPs) composed of standard linear and element-wise activation layers. Furthermore, its fast 1D secant solver relies on simplifying each layer's diagonal scaling matrix to a single scalar ($A = aI$, the LipSDP-Layer setting) rather than per-neuron variables. For future work, the authors note that because convolutions, pooling layers, and residual skip connections can also be formulated as SDPs, extending bound backpropagation to CNNs and ResNets is a natural and promising next step.

Summary updated

Abstract

The Lipschitz constant of neural networks is widely used in robustness, control, generalization bounds, and training stability. As modern neural networks continue to scale, existing methods for Lipschitz estimation are either very time-consuming or overly loose. In this work, we focus on both fast and accurate Lipschitz estimation for large feedforward neural networks. We first reformulate the well-known semidefinite program (SDP) framework into an explicit recursive form, and introduce a key theoretical result, bound backpropagation: the SDP objective has upper and lower bounds that can be propagated backward along the recursive computation graph and depend only on partial variables. Leveraging this property, we decompose the original SDP into a sequence of small subproblems, each minimizing a combination of upper and lower bounds over partial variables. We prove that each subproblem is one-dimensional and convex, enabling fast solution via the secant method. Finally, we present the full FLIP algorithm and its complexity, yielding fast and tight Lipschitz estimation for large feedforward networks. Experiments on both randomly generated and trained networks show that FLIP improves speed and tightness by several orders of magnitude over prior methods, giving the tightest Lipschitz estimates for 100M-parameter networks in seconds. Our code is available at: \url{https://github.com/hongboc616/FLIP}.
BibTeX
@inproceedings{chen2026flip,
  author = {Hongbo Chen and Zihao Ren},
  title = {{FLIP: Fast and Accurate Global Lipschitz Estimation for Large Feedforward Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=TJXYYcODy8},
}
Figure