arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.07394cs.LG
收藏

利用有界传播算法计算神经网络的局部Lipschitz常数

Efficiently Computing Local Lipschitz Constants of Neural Networks via Bound Propagation

University of California, Los Angeles(加州大学洛杉矶分校);Carnegie Mellon University(卡内基梅隆大学);Bosch Center for AI(博世人工智能中心)

Zhouxing Shi, Yihan Wang, Huan Zhang, Zico Kolter, Cho-Jui Hsieh

摘要:

Lipschitz常数与神经网络的许多性质有关,如鲁棒性、公平性和泛化性。现有的计算Lipschitz常数的方法要么产生相对宽松的上限,要么仅限于小型网络。在本文中,我们开发了一个有效的框架,计算$\ell_\infty$局部Lipschitz常数的神经网络通过严格的上界的规范,通过线性边界传播。我们制定的计算局部Lipschitz常数的线性有界传播过程的高阶向后图的克拉克雅可比链规则。为了使线性绑定传播,我们推导出紧密的线性松弛的特定非线性克拉克雅可比矩阵。这个公式统一了现有的ad-hoc方法,如RecurJac,它可以被看作是我们的一个特例,具有较弱的松弛。绑定传播框架还允许我们很容易地借用流行的分支定界(BaB)方法从神经网络验证,以进一步收紧Lipschitz常数。实验表明,在微小的模型上,我们的方法与无法扩展到稍大模型的精确方法相比,可以产生相当的边界;在较大的模型上,我们的方法有效地产生比现有的放松或天真的方法更严格的结果,并且我们的方法可以扩展到以前的作品无法处理的更大的实际模型。我们还展示了可证明的单调性分析的应用。代码可在https://github.com/shizhouxing/Local-Lipschitz-Constants上获得。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑