Skip to main content
QUICK REVIEW

[Paper Review] Certified Robustness Against Natural Language Attacks by Causal Intervention

Haiteng Zhao, Chang Ma|arXiv (Cornell University)|May 24, 2022
Adversarial Robustness in Machine LearningComputer Science11 citations
TL;DR

This paper proposes Causal Intervention by Semantic Smoothing (CISS), a novel framework that achieves certified robustness against natural language attacks by modeling causal effects $p(y|do(x))$ through semantic space smoothing. CISS outperforms state-of-the-art methods with 76.5% certified robust accuracy on IMDB and 80.7% empirical robustness on YELP under integrated attacks.

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. 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.

Motivation & Objective

  • To address the vulnerability of deep NLP models to adversarial attacks, particularly word substitution and syntactic perturbations.
  • To understand adversarial robustness through a causal lens, identifying confounding variables as the root cause of model vulnerability.
  • To develop a scalable, certified robustness framework that avoids attack-specific noise engineering.
  • To achieve both provable (certified) and empirical robustness against known and unseen adversarial attacks.

Proposed method

  • CISS models the interventional distribution $p(y|do(x))$ by removing confounder effects in the latent semantic space, enabling causal reasoning in NLP.
  • It applies semantic smoothing in the latent space of pre-trained models (e.g., BERT) to approximate $p(y|do(x))$, avoiding reliance on input-space noise distributions.
  • The method is grounded in randomized smoothing, where the smoothed classifier estimates $p(y|do(x)) = \int p(y|x,n)p(n)\,dn$, justifying its robustness from a causal perspective.
  • CISS uses a differentiable smoothing strategy over latent representations, enabling end-to-end training and scalability to Transformers.
  • The framework is designed to be robust even when perturbations are strengthened by unknown attack algorithms, due to its causal invariance.
  • Hyperparameters such as smoothing magnitude $\gamma$ and latent noise magnitude $m$ are tuned to balance robustness and accuracy, with minimal sensitivity to $\sigma$.

Experimental results

Research questions

  • RQ1Can adversarial vulnerability in NLP models be attributed to spurious correlations induced by manipulatable confounders (e.g., style or jargon)?
  • RQ2Can randomized smoothing be interpreted as estimating a causal effect $p(y|do(x))$, and does this provide a theoretical basis for certified robustness?
  • RQ3Can semantic space smoothing yield provably robust NLP models that scale to deep architectures like Transformers?
  • RQ4Does modeling causal effects in the latent space lead to robustness against both seen and unseen adversarial attacks, including syntactic and editing-based perturbations?

Key findings

  • On the IMDB dataset, CISS achieves 76.5% certified robust accuracy against word substitution attacks, surpassing the runner-up by 7.2 percentage points.
  • On the YELP dataset, CISS attains 80.7% empirical robustness when tested under integrated syntactic attacks, outperforming the runner-up by 6.8 percentage points.
  • CISS demonstrates strong certified robustness across multiple hyperparameter settings: on YELP, it reaches 75.25% certified accuracy with $\gamma=4$ and $m=1$, and on IMDB, it maintains over 90% certified robustness across $\sigma$ values from 0.5 to 4.
  • The performance of CISS is minimally sensitive to the Gaussian noise standard deviation $\sigma$, indicating robustness to hyperparameter tuning—unlike prior randomized smoothing methods.
  • CISS achieves 83.1% empirical robustness on YELP under integrated attacks, exceeding the runner-up by 7.8 percentage points.
  • The ablation study confirms that smoothing in the latent semantic space is critical: performance degrades significantly when applied in input space or without causal intervention.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.