paperbot · PL 论文追踪

全部论文 待读 收藏

P1 ReLU Hull Approximation

ReLU 凸包近似
POPL 8(POPL)2024匹配度 5/10 · 论文属于程序验证/静态分析在神经网络验证中的应用,贴合 PL→AI 中“对机器学习系统做静态分析”的大方向,且有理论构造与工具集成;但它不涉及 LLM/Agentic 程序、浮点程序分析或贝叶斯程序分析,也不是用 LLM 改进形式化验证,因此与当前核心关注点仅部分匹配。引用 7 inbox
Zhongkui Ma, Jiaying Li, Guangdong Bai
crossref: 2026-09-10

AI 速览

一句话:提出快速精确的 ReLU 凸包过近似方法 WraLU,用更少约束实现更紧近似并集成到神经网络验证器 PRIMA。

神经网络验证常借助凸包处理激活函数非线性,但精确 ReLU 凸包计算代价高。本文提出快速而精确的 ReLU 凸包过近似:以 ReLU 的线性片段为下面,构造与其相邻的上面,形成包住凸包的凸多面体;上面可借助下面面的边、顶点及低一维超平面与外点高效确定。作者实现 WraLU,评估精度、效率、约束复杂度与可扩展性。结果表明,WraLU 比现有先进方法用更少约束、更短时间获得更紧近似,并能处理任意输入多面体和高维情形。集成到 PRIMA 后验证大规模 ReLU 网络,LP 约束最多减少一半,精度相当甚至更优。

问题
神经网络验证中 ReLU 激活函数引入非线性,精确计算其凸包代价高昂,而现有过近似方法难以兼顾精度、效率与约束复杂度,且常无法处理任意输入多面体和高维情形。
方法
以 ReLU 的线性片段作为下面,构造与其相邻的上面,从而形成包住 ReLU 凸包的凸多面体;利用下面面的边、顶点以及低一维超平面和外点高效构造这些上面,并实现为工具 WraLU。
评估
从精度、效率、约束复杂度和可扩展性方面与现有先进方法对比,并将 WraLU 集成到 PRIMA 中验证大规模 ReLU 神经网络。实验显示 LP 求解约束数最多减少一半,且精度相当或更优。
原文摘要(Abstract)

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.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot2632,
  title = {ReLU Hull Approximation},
  author = {Zhongkui Ma and Jiaying Li and Guangdong Bai},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {8},
  number = {POPL},
  year = {2024},
  doi = {10.1145/3632917}
}