SubSpace Capsule Network

Marzieh Edraki, Nazanin Rahnavard, Mubarak Shah

Capsule Networks were once hailed as a potential successor to Convolutional Neural Networks (CNNs), promising to resolve inherent flaws in spatial reasoning. However, high computational costs and scaling issues prevented their mainstream adoption. The "SubSpace Capsule Network" (SCN), presented at the 34th AAAI Conference, introduces a mathematical framework that makes capsules both scalable and versatile by replacing iterative routing with learned subspace projections.

Addressing the "Spatial Blindness" of CNNs

While CNNs are the workhorses of modern computer vision, they suffer from a "spatial blindness" problem. They excel at detecting features—such as eyes, noses, and mouths—but often fail to understand the hierarchical spatial relationships between them. To a standard CNN, a face with misplaced features might still be classified as a valid face because the network primarily checks for the presence of components rather than their relative poses.

Geoffrey Hinton’s original Capsule Networks addressed this by grouping neurons into "capsules" representing entities and their properties (pose, texture, etc.). However, these networks relied on "dynamic routing," an iterative process where lower-level capsules "vote" on their parent capsules. This process is computationally expensive, memory-intensive, and difficult to scale to high-resolution images or deep architectures.

Methodology: Capsules as Learned Subspaces

The SCN proposes a shift in perspective: instead of grouping neurons and using a voting algorithm, a capsule is treated as a learned subspace.

Architecture of the SCN Generator and Discriminator, illustrating the integration of subspace capsule convolutional (sc-conv) layers.
  1. Subspace Projection: In an SCN, each capsule represents a subspace. The network projects an input feature vector onto this subspace; the length of the resulting vector represents the "presence" of a feature, while its orientation represents specific properties like rotation or thickness.
  2. Mathematical Efficiency: To avoid the memory overhead of large projection matrices, the authors decompose the orthogonal projection into a low-dimensional mapping ($P_c$). This allows the network to maintain capsule-like properties without the square-matrix overhead.
  3. The "Sparking" Function: A new activation function called "sparking" acts as a ReLU for capsules. It suppresses noisy, low-activity capsules while allowing highly aligned features to pass through, encouraging sparsity.
  4. Elimination of Routing: Because the "agreement" between layers is handled by the projection itself, the iterative routing process is eliminated. This makes SCNs as fast as standard CNNs during inference.

Key Insights: Disentanglement and Scalability

A significant advantage of the SCN is its ability to achieve disentanglement by design. In generative experiments, different dimensions of a single capsule subspace naturally learn to control specific physical attributes—such as the rotation of a digit or the thickness of a stroke—without explicit supervision.

Visual evidence of disentangled representations, where individual dimensions of the subspace control attributes like rotation, scale, and stroke thickness.

Furthermore, by replacing routing with projection, the authors successfully integrated capsules into a ResNet-34 architecture. This is a major milestone, as traditional capsule networks rarely moved beyond small-scale datasets like MNIST. SCN provides a unified framework that performs equally well for discriminative tasks (classification) and generative tasks (GANs).

Experimental Results

The authors evaluated SCN across various benchmarks, including CIFAR-10, SVHN, ImageNet, and LSUN:

  • Generative Performance: When integrated into a GAN, SCN improved the Frechet Inception Distance (FID) score—a standard measure of image quality and diversity—by at least 20% across all tested datasets.
  • Classification Accuracy: On ImageNet, replacing the final layers of a ResNet-34 with SCN layers reduced the Top-1 error rate by 5% relatively.
  • Semi-supervised Learning: SCN achieved state-of-the-art results on CIFAR-10 and SVHN with limited labels, outperforming established methods like VAT and Improved GAN.
  • Efficiency: During training, SCN adds negligible overhead. At test time, there is zero computational overhead compared to a standard CNN.

Conclusion

The SubSpace Capsule Network successfully bridges the gap between the theoretical advantages of capsules and the practical requirements of modern deep learning. While the training phase involves some complexity due to iterative matrix square root calculations, the resulting model is efficient, scalable, and highly effective at capturing spatial hierarchies. Future research may extend SCNs to complex domains like 3D point cloud analysis or video recognition, where part-whole relationships are paramount.

Summary updated

BibTeX
@inproceedings{edraki2020subspace,
  author = {Marzieh Edraki and Nazanin Rahnavard and Mubarak Shah},
  title = {{SubSpace Capsule Network}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i07.6703},
}
Figure