arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2201.13351cs.LGcs.LOcs.NAmath.NA
收藏

LinSyn:为任意神经网络激活函数合成紧线性边界

LinSyn: Synthesizing Tight Linear Bounds for Arbitrary Neural Network Activation Functions

University of Southern California(南加利福尼亚大学)

Brandon Paulsen, Chao Wang

摘要:

验证神经网络鲁棒性的最可扩展方法取决于计算网络激活函数的合理线性上下界。目前的方法是有限的,因为线性边界必须由专家手工制作,并且可能是次优的,特别是当网络的架构使用例如LSTM中的乘法和最近流行的Swish激活来组成操作时。对专家的依赖阻止了鲁棒性认证应用于激活函数的最新发展,此外,缺乏紧密性保证可能会给人一种关于特定模型的不安全感。据我们所知,我们是第一个考虑自动计算任意n维激活函数的紧线性界的问题。我们提出了LinSyn,第一种方法,实现了任何任意激活函数的严格界限,同时只利用激活函数本身的数学定义。我们的方法利用一个有效的启发式方法来合成的界限是紧密的,通常声音,然后验证的合理性(并调整边界,如果必要的话)使用高度优化的分支和边界SMT求解器,dReal。尽管我们的方法依赖于SMT求解器,但我们表明,在实践中运行时间是合理的,并且与最先进的方法相比,我们的方法通常可以实现2- 5倍的最终输出边界和超过四倍的认证鲁棒性。

英文摘要:

The most scalable approaches to certifying neural network robustness depend on computing sound linear lower and upper bounds for the network's activation functions. Current approaches are limited in that the linear bounds must be handcrafted by an expert, and can be sub-optimal, especially when the network's architecture composes operations using, for example, multiplication such as in LSTMs and the recently popular Swish activation. The dependence on an expert prevents the application of robustness certification to developments in the state-of-the-art of activation functions, and furthermore the lack of tightness guarantees may give a false sense of insecurity about a particular model. To the best of our knowledge, we are the first to consider the problem of automatically computing tight linear bounds for arbitrary n-dimensional activation functions. We propose LinSyn, the first approach that achieves tight bounds for any arbitrary activation function, while only leveraging the mathematical definition of the activation function itself. Our approach leverages an efficient heuristic approach to synthesize bounds that are tight and usually sound, and then verifies the soundness (and adjusts the bounds if necessary) using the highly optimized branch-and-bound SMT solver, dReal. Even though our approach depends on an SMT solver, we show that the runtime is reasonable in practice, and, compared with state of the art, our approach often achieves 2-5X tighter final output bounds and more than quadruple certified robustness.

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

↑