arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1805.10965stat.MLcs.LG
收藏

深层神经网络的Lipschitz正则性:分析与有效估计

Lipschitz regularity of deep neural networks: analysis and efficient estimation

Huawei Noah’s Ark Lab(华为诺亚方舟实验室)

Kevin Scaman, Aladin Virmaux

摘要:

深度神经网络因对精心选择的小扰动敏感而臭名昭著,估计这种架构的规律性对于安全和鲁棒的实际应用至关重要。在本文中,我们研究了评估这些方法的规律性的关键特征之一:深度学习架构的Lipschitz常数。首先,我们证明了,即使是两层神经网络,这个数量的精确计算是NP-困难的和国家的最先进的方法可能会显着高估it. Then,我们都扩展和改进以前的估计方法,提供AutoLip,第一个通用算法的上限Lipschitz常数的任何自动可微函数。我们提供了一个自动微分的幂方法算法,即使在大卷积上也可以进行有效的计算。其次,对于顺序神经网络,我们提出了一种改进的算法SeqLip,它利用线性计算图来分割每对连续层的计算。第三,我们在SeqLip上提出了算法,以处理非常大的网络。我们的实验表明,SeqLip可以显着提高现有的上限。最后,我们在PyTorch环境中提供了AutoLip的实现,该实现可用于更好地估计给定神经网络对小扰动的鲁棒性,或使用更精确的Lipschitz估计对其进行正则化。

英文摘要:

Deep neural networks are notorious for being sensitive to small well-chosen perturbations, and estimating the regularity of such architectures is of utmost importance for safe and robust practical applications. In this paper, we investigate one of the key characteristics to assess the regularity of such methods: the Lipschitz constant of deep learning architectures. First, we show that, even for two layer neural networks, the exact computation of this quantity is NP-hard and state-of-art methods may significantly overestimate it. Then, we both extend and improve previous estimation methods by providing AutoLip, the first generic algorithm for upper bounding the Lipschitz constant of any automatically differentiable function. We provide a power method algorithm working with automatic differentiation, allowing efficient computations even on large convolutions. Second, for sequential neural networks, we propose an improved algorithm named SeqLip that takes advantage of the linear computation graph to split the computation per pair of consecutive layers. Third we propose heuristics on SeqLip in order to tackle very large networks. Our experiments show that SeqLip can significantly improve on the existing upper bounds. Finally, we provide an implementation of AutoLip in the PyTorch environment that may be used to better estimate the robustness of a given neural network to small perturbations or regularize it using more precise Lipschitz estimations.

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

↑