FLIP 算法实现大型前馈网络的快速 Lipschitz 常数估计
FLIP: Fast and Accurate Global Lipschitz Estimation for Large Feedforward Networks
搞鲁棒性或控制方向的朋友可以看看这篇,FLIP 把 SDP 拆成一维凸子问题,1 亿参数的网络几秒就能算出最紧的 Lipschitz 估计,比老方法快了几个数量级,代码也开源了。
一篇 arXiv 论文提出 FLIP 算法,用于快速且精确地估计大型前馈神经网络的 Lipschitz 常数。Lipschitz 常数广泛用于鲁棒性分析、控制、泛化边界和训练稳定性,但现有方法要么耗时过长,要么估计过于宽松。
方法上的核心是将经典的半定规划(SDP)框架改写为显式递归形式,并提出 bound backpropagation 这一理论结果:SDP 目标函数的上下界可沿递归计算图反向传播,且只依赖部分变量。据此原 SDP 被分解为一系列小规模子问题,每个子问题被证明是一维凸问题,可用割线法快速求解。
实验显示 FLIP 在速度和紧致度上比已有方法提升数个数量级,可在几秒内给出 1 亿参数网络的目前最紧 Lipschitz 估计。代码已在 GitHub 开源,对需要做网络鲁棒性认证和稳定性分析的工程师有直接参考价值。
FLIP: Fast and Accurate Global Lipschitz Estimation for Large Feedforward Networks
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: https://github.com/hongboc616/FLIP.
This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Lipschitz, robustness, SDP, open source.
Source attribution: curated from arXiv cs.LG (@Hongbo Chen, Zihao Ren).