Skip to main content
QUICK REVIEW

[Paper Review] Capsules with Inverted Dot-Product Attention Routing

Yao-Hung Hubert Tsai, Nitish Srivastava|arXiv (Cornell University)|Feb 12, 2020
Advanced Neural Network ApplicationsComputer Science16 references17 citations
TL;DR

This paper proposes Inverted Dot-Product Attention Routing for capsule networks, which routes capsules based on agreement between parent pose and child vote using inverted attention, applies Layer Normalization, and enables concurrent iterative routing. The method achieves 95.14% accuracy on CIFAR-10 and 78.02% on CIFAR-100—on par with ResNet-18—using 4× fewer parameters, demonstrating capsule networks' viability for complex real-world tasks.

ABSTRACT

We introduce a new routing algorithm for capsule networks, in which a child capsule is routed to a parent based only on agreement between the parent's state and the child's vote. The new mechanism 1) designs routing via inverted dot-product attention; 2) imposes Layer Normalization as normalization; and 3) replaces sequential iterative routing with concurrent iterative routing. When compared to previously proposed routing algorithms, our method improves performance on benchmark datasets such as CIFAR-10 and CIFAR-100, and it performs at-par with a powerful CNN (ResNet-18) with 4x fewer parameters. On a different task of recognizing digits from overlayed digit images, the proposed capsule model performs favorably against CNNs given the same number of layers and neurons per layer. We believe that our work raises the possibility of applying capsule networks to complex real-world tasks. Our code is publicly available at: https://github.com/apple/ml-capsules-inverted-attention-routing An alternative implementation is available at: https://github.com/yaohungt/Capsules-Inverted-Attention-Routing/blob/master/README.md

Motivation & Objective

  • To address the limitations of existing capsule routing algorithms in scalability and performance on complex datasets.
  • To enable capsule networks to achieve competitive performance against state-of-the-art CNNs without requiring large parameter counts.
  • To improve routing by modeling agreement between parent and child capsules through an inverted attention mechanism.
  • To scale capsule networks to real-world tasks by introducing normalization and concurrent inference.
  • To demonstrate that capsule networks can be practically applied to complex visual recognition tasks with improved efficiency and accuracy.

Proposed method

  • The routing mechanism uses inverted dot-product attention, where lower-level capsules attend to higher-level capsules based on agreement between the parent’s pose and the child’s vote.
  • Routing probabilities are computed directly via dot product between the parent’s pose and the child’s vote, replacing traditional iterative routing with a more parallelizable process.
  • Layer Normalization is applied across capsule channels to stabilize training and improve optimization.
  • The model performs concurrent iterative inference across multiple capsule layers instead of layer-wise, enabling joint optimization of capsule states and routing probabilities.
  • The capsule pose is represented as a matrix (reshaped from a vector), allowing richer representation while maintaining computational efficiency.
  • The architecture integrates a SOTA CNN backbone with capsule layers, followed by convolutional and fully-connected capsule layers for hierarchical feature learning.

Experimental results

Research questions

  • RQ1Can an inverted attention mechanism improve routing in capsule networks by measuring agreement between parent and child capsules?
  • RQ2Does concurrent iterative routing across capsule layers outperform sequential layer-wise routing in terms of accuracy and efficiency?
  • RQ3Can Layer Normalization stabilize training and improve performance in capsule networks with matrix-structured poses?
  • RQ4Can capsule networks with this routing mechanism match or exceed the performance of strong CNNs like ResNet-18 on benchmark datasets with significantly fewer parameters?
  • RQ5Can capsule networks be effectively applied to complex real-world tasks such as recognizing overlapping objects?

Key findings

  • The proposed Inverted Dot-Product Attention Routing achieves 95.14% test accuracy on CIFAR-10, matching the performance of ResNet-18 while using 4× fewer parameters.
  • On CIFAR-100, the model reaches 78.02% test accuracy, demonstrating strong generalization on more complex data.
  • In the DiverseMultiMNIST benchmark with overlapping digits, the capsule model converges faster than a CNN with the same number of layers and neurons per layer.
  • The use of matrix-structured poses and Layer Normalization improves training stability and performance compared to vector-structured poses.
  • The concurrent routing mechanism enables faster inference and better scalability than sequential iterative routing.
  • The model outperforms prior capsule networks, including DeepCaps (92.74% on CIFAR-10), and shows that capsule networks can be competitive with SOTA CNNs on complex vision tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.