Learning with Capsules: A Survey

Fabio De Sousa Ribeiro, Kevin Duarte, Miles Everett, Georgios Leontidis, Mubarak Shah

Introduction

Capsule Networks (CapsNets) represent a significant shift in computer vision, moving away from the "bag-of-features" approach characteristic of traditional Convolutional Neural Networks (CNNs). While CNNs have achieved remarkable success, they often fail to capture the hierarchical spatial relationships between parts and wholes—a limitation famously dubbed the "Picasso Problem." This survey provides a comprehensive roadmap of the CapsNet landscape, tracing its evolution from a niche alternative to a robust framework for object-centric representation learning.

From Invariance to Equivariance

The fundamental motivation behind Capsule Networks is the transition from invariance to equivariance. Standard CNNs utilize pooling layers to achieve invariance, effectively attempting to ignore changes in viewpoint (e.g., rotation or scale) to identify a feature. However, this process discards precise spatial information.

In contrast, CapsNets aim for equivariance: if an object rotates, its internal representation should change in a predictable, linear manner. By using "rate-coding"—where the values within a vector represent the precise pose or state of a feature—rather than simple "place-coding," capsules can model 3D spatial hierarchies more effectively and generalize from significantly fewer training examples.

Technical Evolution: Routing Mechanisms

The core of a Capsule Network is the "routing-by-agreement" mechanism, which has evolved through several technical iterations:

  • Dynamic Routing (Vector Capsules): The seminal approach where lower-level capsules "vote" for higher-level ones, using a "squash" function to normalize vector lengths as probabilities.
  • EM-Routing (Matrix Capsules): This method employs the Expectation-Maximization algorithm to model votes as Gaussian distributions, improving the precision of part-whole modeling.
  • Variational Bayes (VB) Routing: A probabilistic refinement designed to address training instabilities and the "dead capsule" problem.
  • Self-Routing and Attentive Routing: Modern iterations that replace iterative clustering with mechanisms similar to the Attention modules in Transformers.

Interestingly, the survey highlights a formal conceptual overlap between Capsules and Transformers. The authors suggest that a Transformer’s "Query, Key, and Value" system is essentially a form of routing where the agreement between tokens dictates the flow of information.

The field has seen a surge in interest, with research diversifying across various domains and high-impact venues.

Publication trends in Capsule Network research across years, venues, and topics.

As shown in the figure above, while total publications saw a rapid rise through 2019, the field has since matured into a steady stream of contributions across top-tier conferences like NeurIPS, CVPR, and ICLR. The topical distribution (Panel C) reveals that while routing and architecture remain core focuses, there is significant application in medical imaging, NLP, and generative modeling.

Key Insights: The Hardware Lottery and the Binding Problem

A critical insight provided by the survey is the "Hardware Lottery." CapsNets are often criticized for their computational expense. However, the authors argue this is not an inherent flaw of the architecture but a result of current hardware optimization. Modern GPUs are specifically designed for the matrix multiplications central to CNNs, whereas the iterative, dynamic routing of CapsNets lacks equivalent hardware-level acceleration.

Furthermore, CapsNets are framed as a solution to the "binding problem"—the challenge of how an AI connects individual features into a coherent object representation without them interfering with one another.

Performance and Robustness

Capsule Networks demonstrate clear advantages in specific scenarios:

  • Out-of-Distribution Robustness: They consistently outperform CNNs when objects are viewed from novel angles not seen during training.
  • Adversarial Defense: By modeling explicit part-whole relationships, they are more resilient to adversarial attacks that confuse standard models with minor pixel perturbations.
  • Medical Efficiency: In tasks like lung lesion segmentation (SegCaps), capsule models have achieved state-of-the-art results using 95% fewer parameters than standard U-Net architectures.

Limitations and Future Directions

Despite their promise, two main hurdles remain: computational overhead and mathematical complexity. The iterative nature of routing makes deployment on standard hardware slow, and the complexity of EM or Bayesian approaches makes tuning difficult compared to standard backpropagation.

The survey concludes that the future of the field likely lies in "Universal Capsules" (or Slots) and the integration of capsule-like inductive biases into Vision Transformers (ViTs). This hybrid approach aims to combine the scalability of Transformers with the superior spatial intelligence of Capsule Networks.

Summary updated

BibTeX
@misc{ribeiro2022learning,
  author = {Fabio De Sousa Ribeiro and Kevin Duarte and Miles Everett and Georgios Leontidis and Mubarak Shah},
  title = {{Learning with Capsules: A Survey}},
  year = {2022},
  eprint = {2206.02664},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.02664},
}
Figure