Abstract
Capsule Networks (CapsNets) were proposed to overcome the spatial invariance limitations of Convolutional Neural Networks (ConvNets). This paper challenges the prevailing assumption of CapsNet superiority by systematically dissecting its components. Through comprehensive ablation studies, the authors reveal that dynamic routing—the hallmark of CapsNets—can actually degrade robustness. Conversely, a properly configured ConvNet with Global Average Pooling or increased capacity achieves state-of-the-art performance on affine transformations and overlapping digit recognition, proving that CapsNets are not inherently more robust than their convolutional counterparts.
Introduction
When Capsule Networks were first introduced, they were hailed as a solution to the intrinsic limitations of ConvNets, specifically their lack of spatial invariance and vulnerability to affine transformations like rotation and scaling. The research community generally accepted that CapsNets were inherently more robust.
However, there has been a glaring lack of comprehensive, apples-to-apples comparisons between the two architectures. Furthermore, CapsNets introduce several complex new components—such as dynamic routing and squashing functions—but it was unclear which of these actually contributed to the reported improvements. This paper addresses this gap by asking: Are CapsNets actually more robust? And if so, which specific components are responsible?
Methods and Architectures
Instead of treating CapsNet as a black box, the authors conduct rigorous ablation studies. They break down the differences between CapsNets and ConvNets into five distinct components:
- A non-shared transformation process.
- A dynamic routing layer.
- A squashing function (normalizing vector lengths).
- A marginal loss function (instead of cross-entropy).
- A class-conditional reconstruction sub-network (used for regularization).
The authors compare the standard Capsule Network against two ConvNet variants: ConvNet-FC, which mimics the large capacity of CapsNet, and ConvNet-Avg, which utilizes Global Average Pooling (GAP) to provide spatial invariance.
Datasets
The models were evaluated on three key datasets to test different aspects of robustness:
- MNIST: The standard baseline for handwritten digit recognition.
- AffNIST: A dataset where MNIST digits are subjected to affine transformations (rotation, shearing, scaling, translation) to test spatial generalization.
- MultiMNIST: A dataset generated by overlaying one digit on top of another from a different class, used to test overlapping digit recognition.
Key Insights
- The original baseline was weak: The ConvNet baseline used in the original CapsNet paper lacked a Global Average Pooling (GAP) layer. GAP is a standard component in modern image classification that naturally provides spatial invariance.
- Dynamic routing is a liability: The defining feature of CapsNets—dynamic routing—actually hurts the model's robustness to affine transformations and degrades the compactness of its semantic representations.
- Overlapping success is just brute capacity: CapsNets perform well on overlapping digits not because of magical routing properties, but because their transformation matrices act like massive fully connected layers, providing extra modeling capacity.
- Borrowing the good stuff works: The squashing function and class-conditional reconstruction are genuinely useful for learning semantic representations. However, they can be easily integrated into a standard ConvNet to achieve superior results without the need for complex routing.
Key Results
The empirical results demonstrate that simple ConvNets can outperform CapsNets across all robustness metrics:
- Affine Robustness: The
ConvNet-Avgmodel achieves 94.11% accuracy on AffNIST with only 5.3M parameters, significantly outperforming the original CapsNet, which achieves only 79% despite having 13.5M parameters. - Overlapping Digits: By increasing the kernel size of a standard ConvNet (
ConvNet-FC(LK)), the authors set a new state-of-the-art on MultiMNIST, achieving 97.11% compared to CapsNet's 95.18%.
- Semantic Compactness: A modified ConvNet equipped with CapsNet's squashing function and reconstruction module learns better, more disentangled semantic representations than the CapsNet itself.
Conclusion
The paper concludes that while the goal of aggregating low-level entities into high-level ones is important, dynamic routing as implemented in CapsNets is flawed. The authors suggest that future work should explore alternative aggregation methods, such as graph pooling operations or relation networks, to achieve robust hierarchical representations.
Summary updated