一句话:提出快速精确的 ReLU 凸包过近似方法 WraLU,用更少约束实现更紧近似并集成到神经网络验证器 PRIMA。
神经网络验证常借助凸包处理激活函数非线性,但精确 ReLU 凸包计算代价高。本文提出快速而精确的 ReLU 凸包过近似:以 ReLU 的线性片段为下面,构造与其相邻的上面,形成包住凸包的凸多面体;上面可借助下面面的边、顶点及低一维超平面与外点高效确定。作者实现 WraLU,评估精度、效率、约束复杂度与可扩展性。结果表明,WraLU 比现有先进方法用更少约束、更短时间获得更紧近似,并能处理任意输入多面体和高维情形。集成到 PRIMA 后验证大规模 ReLU 网络,LP 约束最多减少一半,精度相当甚至更优。
Convex hulls are commonly used to tackle the non-linearity of activation functions in the verification of neural networks. Computing the exact convex hull is a costly task though. In this work, we propose a fast and precise approach to over-approximating the convex hull of the ReLU function (referred to as the ReLU hull ), one of the most used activation functions. Our key insight is to formulate a convex polytope that “wraps” the ReLU hull, by reusing the linear pieces of the ReLU function as the lower faces and constructing upper faces that are adjacent to the lower faces. The upper faces can be efficiently constructed based on the edges and vertices of the lower faces, given that an n -dimensional (or simply n d hereafter) hyperplane can be determined by an ( n - 1 ) d hyperplane and a point outside of it. We implement our approach as WraLU , and evaluate its performance in terms of precision, efficiency, constraint complexity, and scalability. WraLU outperforms existing advanced methods by generating fewer constraints to achieve tighter approximation in less time. It exhibits versatility by effectively addressing arbitrary input polytopes and higher-dimensional cases, which are beyond the capabilities of existing methods. We integrate WraLU into PRIMA, a state-of-the-art neural network verifier, and apply it to verify large-scale ReLU-based neural networks. Our experimental results demonstrate that WraLU achieves a high efficiency without compromising precision. It reduces the number of constraints that need to be solved by the linear programming solver by up to half, while delivering comparable or even superior results compared to the state-of-the-art verifiers.