Skip to main content
QUICK REVIEW

[Paper Review] Improving the Robustness of Capsule Networks to Image Affine Transformations

Jindong Gu, Volker Tresp|arXiv (Cornell University)|Nov 18, 2019
Domain Adaptation and Few-Shot LearningComputer Science26 references5 citations
TL;DR

This paper proposes Aff-CapsNets, a modified capsule network architecture that improves robustness to affine transformations by replacing dynamic routing with simple averaging and applying identical transformation functions across primary capsules. On the AffNIST benchmark, Aff-CapsNets achieve 93.21% accuracy—significantly outperforming the prior state-of-the-art CapsNet (79%)—without using any routing mechanism, demonstrating that routing is not essential for affine robustness.

ABSTRACT

Convolutional neural networks (CNNs) achieve translational invariance by using pooling operations. However, the operations do not preserve the spatial relationships in the learned representations. Hence, CNNs cannot extrapolate to various geometric transformations of inputs. Recently, Capsule Networks (CapsNets) have been proposed to tackle this problem. In CapsNets, each entity is represented by a vector and routed to high-level entity representations by a dynamic routing algorithm. CapsNets have been shown to be more robust than CNNs to affine transformations of inputs. However, there is still a huge gap between their performance on transformed inputs compared to untransformed versions. In this work, we first revisit the routing procedure by (un)rolling its forward and backward passes. Our investigation reveals that the routing procedure contributes neither to the generalization ability nor to the affine robustness of the CapsNets. Furthermore, we explore the limitations of capsule transformations and propose affine CapsNets (Aff-CapsNets), which are more robust to affine transformations. On our benchmark task, where models are trained on the MNIST dataset and tested on the AffNIST dataset, our Aff-CapsNets improve the benchmark performance by a large margin (from 79% to 93.21%), without using any routing mechanism.

Motivation & Objective

  • To investigate whether dynamic routing in Capsule Networks contributes to affine robustness or generalization.
  • To identify architectural limitations in existing CapsNets that hinder performance on transformed inputs.
  • To design a more robust capsule network architecture that maintains high performance under affine transformations without relying on routing.
  • To demonstrate that simpler architectures can outperform complex routing mechanisms in geometric robustness.

Proposed method

  • The authors (un)roll the forward and backward passes of the dynamic routing procedure to analyze its contribution to model performance.
  • They propose Aff-CapsNets, which replace dynamic routing with a simple averaging operation across capsule outputs.
  • All primary capsules in Aff-CapsNets apply the same transformation function, ensuring consistent feature learning across capsules.
  • The architecture uses shared weight matrices across primary capsules to enforce invariance to geometric transformations.
  • The method is evaluated on the standard benchmark: training on MNIST and testing on AffNIST.
  • Extensive ablation studies compare routing vs. no-routing, and different architectural choices on affine robustness.

Experimental results

Research questions

  • RQ1Does the dynamic routing procedure in CapsNets contribute to generalization or affine robustness?
  • RQ2What architectural components in CapsNets limit their performance under affine transformations?
  • RQ3Can a simpler routing-free architecture achieve better robustness than routing-based CapsNets on transformed data?
  • RQ4Is dynamic routing necessary for the key advantages of CapsNets, such as viewpoint invariance or adversarial robustness?

Key findings

  • The dynamic routing procedure contributes neither to generalization ability nor to affine robustness in CapsNets, as shown by numerical and empirical analysis.
  • Removing routing and replacing it with simple averaging improves performance on AffNIST from 79% to 93.21%.
  • Aff-CapsNets achieve state-of-the-art performance on the AffNIST benchmark without using any routing mechanism.
  • The use of identical transformation functions across all primary capsules significantly enhances robustness to affine transformations.
  • The proposed architecture uses fewer parameters and achieves higher accuracy than previous CapsNet variants.
  • The results suggest that routing is not essential for affine robustness, challenging the assumption that routing is key to CapsNet superiority.

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.