Introduction
Since their introduction in 2017, Capsule Networks (CapsNets) have been widely regarded as a more robust alternative to standard Convolutional Networks (ConvNets), particularly for handling viewpoint invariance—the ability to recognize objects regardless of orientation, scale, or position. While ConvNets are often criticized for being "brittle" without extensive data augmentation, CapsNets were designed to inherently capture spatial relationships through complex mechanisms like dynamic routing.
This paper challenges these assumptions by performing a rigorous ablation study. The authors demonstrate that the perceived superiority of CapsNets often stems from comparisons against weak baselines. By incorporating standard components like Global Average Pooling (GAP) or larger kernels into traditional ConvNets, these models can actually outperform CapsNets in handling affine transformations and overlapping objects.
Methodology
The researchers decomposed the CapsNet architecture into five distinct "special" components to evaluate their individual contributions to robustness:
- Transformation Process: Non-shared matrices used to generate "votes" for higher-level features.
- Dynamic Routing: An iterative algorithm that groups capsules based on "agreement."
- Squashing Function: A non-linear activation ensuring vector lengths remain between 0 and 1.
- Marginal Loss: An alternative loss function to standard cross-entropy.
- Class-Conditional Reconstruction: A sub-network that regularizes the model by rebuilding the input image from capsule vectors.
To ensure a fair comparison, the authors introduced two enhanced baselines: ConvNet-Avg, which utilizes a Global Average Pooling layer, and ConvNet-FC(LK), which employs larger kernels to match the parameter count and modeling capacity of CapsNets.
Datasets
The models were evaluated on three benchmarks:
- MNIST: Standard handwritten digits.
- AffNIST: MNIST digits subjected to extreme affine transformations (rotation, scaling, shearing) not seen during training.
- MultiMNIST: Images with two overlapping digits, testing the ability to disentangle complex scenes.
Analysis of Components
The study reveals several surprising insights into the "black-box" of Capsule Networks:
- The "Weak Baseline" Fallacy: The original CapsNet paper compared itself to a ConvNet lacking Global Average Pooling. When a standard ConvNet is equipped with a GAP layer, it significantly outperforms CapsNet on affine transformation tasks.
- Routing as a Hindrance: Contrary to expectations, the "Dynamic Routing" mechanism—the core of the Capsule concept—actually harmed robustness to affine transformations. Simple uniform averaging of votes proved more effective.
- Capacity Over Complexity: CapsNet’s ability to recognize overlapping digits is primarily due to the high modeling capacity of its transformation matrices rather than its routing algorithm. A standard ConvNet with larger kernels (ConvNet-FC(LK)) achieves superior results on MultiMNIST.
- Beneficial Components: While routing was underwhelming, the squashing function and reconstruction loss were found to be genuinely useful. They help the network learn "compact" semantic representations, where individual neurons correspond to human-interpretable traits like stroke thickness.
Key Results
The empirical results demonstrate that properly configured ConvNets consistently exceed CapsNet performance across various metrics:
- Affine Robustness: On AffNIST, ConvNet-Avg achieved 94.11% accuracy, far exceeding the original CapsNet’s 79%.
- Overlapping Digits: On MultiMNIST, ConvNet-FC(LK) reached 97.11% accuracy, surpassing CapsNet’s 95.18%.
- Efficiency: ConvNet-Avg achieved its superior results with only 5.3M parameters, compared to CapsNet’s 13.5M.
Conclusion
The findings suggest that the unique architectural complexities of Capsule Networks, specifically dynamic routing, do not inherently provide more robustness than standard ConvNets. Instead, robustness is often a function of modeling capacity and standard architectural choices like Global Average Pooling. While certain components like the squashing function and reconstruction loss offer value in learning compact representations, the "hype" surrounding the Capsule Network as a fundamentally more robust successor to the ConvNet appears misplaced. Future research should focus on more efficient ways to aggregate low-level information into high-level entities, potentially moving beyond iterative routing mechanisms.
Summary updated