Skip to main content
QUICK REVIEW

[Paper Review] CapsAttacks: Robust and Imperceptible Adversarial Attacks on Capsule Networks

Alberto Marchisio, Giorgio Nanfa|arXiv (Cornell University)|Jan 28, 2019
Adversarial Robustness in Machine LearningComputer Science24 references20 citations
TL;DR

This paper proposes CapsAttacks, a greedy black-box algorithm to generate targeted, imperceptible adversarial examples for Capsule Networks on the GTSRB dataset. The method exploits spatial attention and gradient-based optimization to craft minimal perturbations that fool CapsNets more effectively than standard CNNs, revealing that CapsNets are robust yet vulnerable due to low output probability confidence, with VGGNet showing higher robustness due to higher confidence scores.

ABSTRACT

Capsule Networks preserve the hierarchical spatial relationships between objects, and thereby bears a potential to surpass the performance of traditional Convolutional Neural Networks (CNNs) in performing tasks like image classification. A large body of work has explored adversarial examples for CNNs, but their effectiveness on Capsule Networks has not yet been well studied. In our work, we perform an analysis to study the vulnerabilities in Capsule Networks to adversarial attacks. These perturbations, added to the test inputs, are small and imperceptible to humans, but can fool the network to mispredict. We propose a greedy algorithm to automatically generate targeted imperceptible adversarial examples in a black-box attack scenario. We show that this kind of attacks, when applied to the German Traffic Sign Recognition Benchmark (GTSRB), mislead Capsule Networks. Moreover, we apply the same kind of adversarial attacks to a 5-layer CNN and a 9-layer CNN, and analyze the outcome, compared to the Capsule Networks to study differences in their behavior.

Motivation & Objective

  • To investigate the vulnerability of Capsule Networks to adversarial attacks, particularly in safety-critical applications like autonomous driving.
  • To compare the robustness of Capsule Networks against standard CNNs (5-layer LeNet and 9-layer VGGNet) under adversarial perturbations.
  • To develop an automated, targeted, and imperceptible adversarial attack method effective in black-box settings.
  • To analyze how prediction confidence and spatial attention influence adversarial robustness across different architectures.

Proposed method

  • The proposed CapsAttacks algorithm uses a greedy optimization strategy to generate targeted adversarial examples in a black-box setting, relying on gradient information from the model's output.
  • It applies a distance-based constraint to ensure perturbations remain imperceptible, using a maximum perturbation distance $ D_{ ext{MAX}} $ to control visual distortion.
  • The method iteratively modifies input pixels to maximize the loss for the target class while minimizing perceptual change, using a differentiable approximation of the model’s decision boundary.
  • The algorithm evaluates adversarial success based on whether the model’s predicted probability for the target class exceeds a threshold, with success measured by convergence speed and perturbation magnitude.
  • It compares the behavior of CapsNet, LeNet, and VGGNet under the same attack conditions, analyzing output probability shifts and perturbation sensitivity.
  • The framework is evaluated on the German Traffic Sign Recognition Benchmark (GTSRB), using real-world traffic sign images to assess practical robustness.

Experimental results

Research questions

  • RQ1Is a Capsule Network vulnerable to targeted, imperceptible adversarial attacks in a black-box setting?
  • RQ2How does the robustness of Capsule Networks compare to that of standard CNNs (e.g., LeNet and VGGNet) under the same adversarial attack?
  • RQ3What role does prediction confidence play in determining the vulnerability of neural networks to adversarial examples?
  • RQ4How do affine transformations and input-level perturbations affect the robustness of Capsule Networks versus CNNs?
  • RQ5Can a greedy, gradient-based algorithm generate effective adversarial examples that are both imperceptible and robust across different architectures?

Key findings

  • Capsule Networks are vulnerable to targeted, imperceptible adversarial attacks, with the proposed CapsAttacks algorithm successfully generating fooling examples on the GTSRB dataset.
  • The CapsNet required fewer iterations to misclassify images compared to the VGGNet, indicating higher susceptibility despite lower perceptibility of perturbations.
  • The VGGNet showed higher robustness than the CapsNet due to higher output probability confidence, as the gap between true and target class probabilities was larger.
  • The LeNet was the most vulnerable among the three models, requiring only 6 iterations to misclassify a target image, with perturbations becoming perceptible after 13 iterations.
  • The value of $ D(X^*, X) $ increased more sharply for the VGGNet than for the CapsNet, indicating that perceptual distortion accumulates faster in VGGNet, making its adversarial examples more visible.
  • Despite similar accuracy, the CapsNet exhibited lower output probability confidence than VGGNet, which contributed to its higher sensitivity to small perturbations.

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.