[Paper Review] On the Vulnerability of Capsule Networks to Adversarial Attacks
This paper evaluates the robustness of capsule networks (CapsNets) against adversarial attacks, demonstrating that they are not inherently more resilient than convolutional neural networks (ConvNets). Using multiple white-box attacks—including Carlini-Wagner, boundary, DeepFool, and universal perturbations—on CapsNets and ConvNets across MNIST, Fashion-MNIST, SVHN, and CIFAR10, the study finds comparable vulnerability levels, with CapsNets showing similar or slightly better perturbation efficiency in some cases, and transferability of adversarial examples between architectures.
This paper extensively evaluates the vulnerability of capsule networks to different adversarial attacks. Recent work suggests that these architectures are more robust towards adversarial attacks than other neural networks. However, our experiments show that capsule networks can be fooled as easily as convolutional neural networks.
Motivation & Objective
- To investigate whether capsule networks (CapsNets) are more robust against adversarial attacks than traditional convolutional neural networks (ConvNets), as previously suggested.
- To evaluate the effectiveness of various white-box adversarial attacks—Carlini-Wagner, boundary, DeepFool, and universal perturbations—on CapsNets.
- To compare the transferability of adversarial examples between CapsNets and ConvNets across different datasets.
- To analyze the visual and structural differences in adversarial perturbations generated for CapsNets versus ConvNets using t-SNE visualization.
- To assess whether CapsNets maintain superior robustness under realistic attack conditions, particularly in terms of perturbation magnitude and attack success rate.
Proposed method
- Trained CapsNets using margin loss and reconstruction loss on MNIST, Fashion-MNIST, SVHN, and CIFAR10 datasets with dynamic routing and primary capsule layers.
- Applied four adversarial attack methods: Carlini-Wagner (targeted, white-box), boundary attack (query-based), DeepFool (untargeted), and universal perturbation attack.
- Used variable transformation via tanh to enforce input constraints in the Carlini-Wagner attack, optimizing with Adam optimizer.
- Generated 1,000 adversarial examples per dataset using DeepFool and boundary attacks, and 500 using Carlini-Wagner (κ=1), with random target labels.
- Computed universal perturbations by splitting the test set into ten parts and training perturbations to reduce accuracy below 50%.
- Visualized universal perturbations using t-SNE to compare structural differences between perturbations generated for CapsNets and ConvNets.
Experimental results
Research questions
- RQ1Are capsule networks more robust to white-box adversarial attacks than convolutional neural networks?
- RQ2How do different adversarial attack methods (Carlini-Wagner, boundary, DeepFool, universal) perform in terms of perturbation magnitude and success rate on CapsNets?
- RQ3To what extent can adversarial examples transfer between CapsNets and ConvNets?
- RQ4Are the perturbations generated for CapsNets visually and structurally distinct from those for ConvNets?
- RQ5Does the use of dynamic routing and vector-based representations in CapsNets confer any inherent robustness against adversarial inputs?
Key findings
- CapsNets achieve test accuracies comparable to ConvNets (e.g., 99.40% on MNIST vs. 99.39%), ensuring fair comparability in robustness evaluation.
- The Carlini-Wagner attack generated smaller perturbations on CapsNets than on ConvNets for most datasets, indicating potentially higher attack efficiency on CapsNets.
- The DeepFool attack performed worse on CapsNets than on ConvNets, suggesting possible differences in local sensitivity or gradient structure.
- Adversarial examples transfer effectively between CapsNets and ConvNets, with smaller perturbations from ConvNets transferring more successfully to CapsNets than vice versa.
- Universal perturbations were visually perceptible and showed distinct clustering patterns in t-SNE visualization, with CapsNet-specific perturbations forming a separate cluster from ConvNet perturbations.
- Despite theoretical advantages, CapsNets are not more robust than ConvNets under strong white-box attacks, and their vulnerability profile is largely comparable.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.