Cert-RNN: Towards Certifying the Robustness of Recurrent Neural Networks
Authors:
Open Access
- 12 November 2021
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 516-534
Abstract
Certifiable robustness, the functionality of verifying whether the given region surrounding a data point admits any adversarial example, provides guaranteed security for neural networks deployed in adversarial environments. A plethora of work has been proposed to certify the robustness of feed-forward networks, e.g., FCNs and CNNs. Yet, most existing methods cannot be directly applied to recurrent neural networks (RNNs), due to their sequential inputs and unique operations. In this paper, we present Cert-RNN, a general framework for certifying the robustness of RNNs. Specifically, through detailed analysis for the intrinsic property of the unique function in different ranges, we exhaustively discuss different cases for the exact formula of bounding planes, based on which we design several precise and efficient abstract transformers for the unique calculations in RNNs. Cert-RNN significantly outperforms the state-of-the-art methods (e.g., POPQORN) in terms of (i) effectiveness -- it provides much tighter robustness bounds, and (ii) efficiency -- it scales to much more complex models. Through extensive evaluation, we validate Cert-RNN's superior performance across various network architectures (e.g., vanilla RNN and LSTM) and applications (e.g., image classification, sentiment analysis, toxic comment detection, and malicious URL detection). For instance, for the RNN-2-32 model on the MNIST sequence dataset, the robustness bound certified by Cert-RNN is on average 1.86 times larger than that by POPQORN. Besides certifying the robustness of given RNNs, Cert-RNN also enables a range of practical applications including evaluating the provable effectiveness for various defenses (i.e., the defense with a larger robustness region is considered to be more robust), improving the robustness of RNNs (i.e., incorporating Cert-RNN with verified robust training) and identifying sensitive words (i.e., the word with the smallest certified robustness bound is considered to be the most sensitive word in a sentence), which helps build more robust and interpretable deep learning systems. We will open-source Cert-RNN for facilitating the DNN security research.Keywords
Funding Information
- National Science Foundation (1953813, 1953893, 1951729)
This publication has 23 references indexed in Scilit:
- Reluplex: An Efficient SMT Solver for Verifying Deep Neural Networks2017
- Residual Attention Network for Image Classification2017
- Towards Evaluating the Robustness of Neural Networks2017
- Distillation as a Defense to Adversarial Perturbations Against Deep Neural Networks2016
- Sequential Short-Text Classification with Recurrent and Convolutional Neural Networks2016
- Cost-sensitive online active learning with application to malicious URL detection2013
- The Zonotope Abstract Domain Taylor1+2009
- Opinion Mining and Sentiment AnalysisFoundations and Trends® in Information Retrieval, 2008
- Learning long-term dependencies with gradient descent is difficultIEEE Transactions on Neural Networks, 1994
- Abstract interpretation: a unified lattice model for static analysis of programs by construction or approximation of fixpoints1977