Certified Robustness Against Natural Language Attacks by Causal Intervention

Haiteng Zhao, Chang Ma, Xinshuai Dong, Anh Tuan Luu, Zhi-Hong Deng +1 more
5/24/2022
cs.LGcs.CLcs.CR

Official code: zhao-ht/ConvexCertify (11 stars, Python, last commit 2022-12-06).

Abstract

Deep learning models have achieved great success in many fields, yet they are vulnerable to adversarial examples. This paper follows a causal perspective to look into the adversarial vulnerability and proposes Causal Intervention by Semantic Smoothing (CISS), a novel framework towards robustness against natural language attacks.

Show full abstract

Instead of merely fitting observational data, CISS learns causal effects p(y|do(x)) by smoothing in the latent semantic space to make robust predictions, which scales to deep architectures and avoids tedious construction of noise customized for specific attacks. CISS is provably robust against word substitution attacks, as well as empirically robust even when perturbations are strengthened by unknown attack algorithms. For example, on YELP, CISS surpasses the runner-up by 6.7% in terms of certified robustness against word substitutions, and achieves 79.4% empirical robustness when syntactic attacks are integrated.

View on arXivView PDF

Code Implementations(1)

This is the code of our work CISS Certified Robustness Against Natural Language Attacks by Causal Intervention published on ICML 2022

112PythonOct 6, 20223 years ago

Similar Papers

Cite this paper

@article{zhao2022certified,
  title  = {Certified Robustness Against Natural Language Attacks by Causal Intervention},
  author = {Haiteng Zhao and Chang Ma and Xinshuai Dong and Anh Tuan Luu and Zhi-Hong Deng and Hanwang Zhang},
  year   = {2022},
  eprint = {2205.12331},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.12331}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.12331.svg)](https://codeofpaper.com/paper/2205.12331)

Discussion