NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Examining the Benefits of Capsule Neural Networks

Arjun Punjabi, Jonas Schmid, Aggelos K. KatsaggelosarXiv 2020

Abstract

This paper investigates whether Capsule Neural Networks (CapsNets) deliver on their promise of enhanced interpretability and robustness compared to traditional Convolutional Neural Networks (CNNs). By employing deep visualization and principal component analysis (PCA), the authors demonstrate that CapsNets learn holistic object representations and successfully encode "instantiation parameters" such as scale and orientation. A key finding of this work is that the reconstruction sub-network is more critical to these benefits than the dynamic routing algorithm.

Introduction

While Convolutional Neural Networks (CNNs) are the standard for computer vision, they possess a significant "spatial" weakness: they often detect local features (e.g., eyes, nose) without a rigorous understanding of their relative positions or orientations. To compensate, CNNs typically require extensive data augmentation.

Capsule Networks were proposed to address this by replacing scalar neurons with vectors, or "capsules." Theoretically, a capsule's vector length represents the probability of a feature's presence, while its orientation encodes specific properties, known as instantiation parameters. This paper seeks to verify if these theoretical advantages manifest in the learned weights of trained models or if CapsNets remain effectively "black boxes."

Capsule Network Architecture

The standard CapsNet architecture used in this study involves several stages: initial convolutions to extract low-level features, followed by "Primary Capsules" and finally "Class Capsules." A critical component is the reconstruction network—a decoder that recreates the input image from the capsule vectors during training to serve as a regularizer.

The full Capsule Network architecture, including the convolutional layers, primary capsules, class capsules, and the reconstruction sub-network.

Methodology

The authors utilize three primary analytical techniques to inspect the internal state of the capsules:

  1. Activation Maximization (AM): This optimization technique generates an input image that triggers a specific capsule to its maximum value, revealing the capsule's "ideal" representation of a class.
  2. Energy Compaction (PCA): By passing the MNIST test set through the network and performing PCA on the resulting capsule vectors, the authors measure how information is distributed across dimensions.
  3. Transformation Encoding Analysis: This involves manually transforming images (e.g., rotation, scaling) to map capsule vector movement in PCA space, and modifying specific vector components to generate images (pre-image analysis) to prove control over visual traits.

Key Insights and Results

The Role of Reconstruction

One of the most significant findings is that the reconstruction network is vital for interpretability. Without it, capsules lose their ability to spread information across vector dimensions. In fact, increasing the weight of the reconstruction loss improved error rates more consistently than the much-discussed dynamic routing algorithm.

Information Distribution and Encoding

PCA results showed that a strong reconstruction loss leads to a gradual decline in explained variance across components, proving the network utilizes the high-dimensional nature of capsules rather than collapsing into a scalar-like representation. Pre-image analysis confirmed that capsules encode instantiation parameters; tweaking a vector along its principal components allowed for manual scaling or rotation of the generated digit.

Analysis pipeline showing the relationship between input images, the capsule architecture, and the resulting PCA variance plot used to measure information distribution.

Performance Metrics

On the MNIST dataset, the optimized CapsNet configuration achieved a 0.28% error rate, outperforming a baseline CNN of similar computational capacity, which recorded a 0.49% error rate. Qualitative analysis showed that the second principal component of a capsule often mapped directly to visual transformations like y-shift, scale, and stroke thickness.

Conclusion and Future Work

The study confirms that CapsNets learn more holistic representations than CNNs, which often focus on isolated parts. However, the complexity of rotation remains a challenge, likely due to limited rotational variety in the MNIST training set. Future research should extend these visualization techniques to more complex datasets like CIFAR-10 and compare CapsNets against CNNs that also utilize reconstruction networks to further isolate the specific benefits of the capsule structure.

Summary updated

BibTeX
@misc{punjabi2020examining,
  author = {Arjun Punjabi and Jonas Schmid and Aggelos K. Katsaggelos},
  title = {{Examining the Benefits of Capsule Neural Networks}},
  year = {2020},
  eprint = {2001.10964},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.10964},
}
Figure