Tighter Truncated Rectangular Prism Approximation for RNN Robustness Verification
Xingqi Lin, Liangyu Chen, Min Wu, Min Zhang, Zhenbing Zeng
TL;DR
This work tackles robustness verification for RNNs by addressing the tightness of linear relaxations applied to the nonlinear Hadamard-product term in LSTM gates. It introduces a truncated rectangular prism relaxation formed by two planes and an objective that jointly minimizes prism volume and surface area, yielding a tighter abstract domain named DeepPrism. Through single- and multi-plane verifications, DeepPrism demonstrates superior robustness certification across image classification, speech recognition, and sentiment analysis tasks compared to state-of-the-art baselines, with controlled increases in computation. The approach provides theoretical guarantees, a flexible refinement strategy, and practical improvements for scalable RNN verification in real-world tasks.
Abstract
Robustness verification is a promising technique for rigorously proving Recurrent Neural Networks (RNNs) robustly. A key challenge is to over-approximate the nonlinear activation functions with linear constraints, which can transform the verification problem into an efficiently solvable linear programming problem. Existing methods over-approximate the nonlinear parts with linear bounding planes individually, which may cause significant over-estimation and lead to lower verification accuracy. In this paper, in order to tightly enclose the three-dimensional nonlinear surface generated by the Hadamard product, we propose a novel truncated rectangular prism formed by two linear relaxation planes and a refinement-driven method to minimize both its volume and surface area for tighter over-approximation. Based on this approximation, we implement a prototype DeepPrism for RNN robustness verification. The experimental results demonstrate that \emph{DeepPrism} has significant improvement compared with the state-of-the-art approaches in various tasks of image classification, speech recognition and sentiment analysis.
