Capsules with Inverted Dot-Product Attention Routing

Yao-Hung Hubert Tsai, Nitish Srivastava, Hanlin Goh, Ruslan Salakhutdinov
2/12/2020
cs.LGstat.ML

Official code: apple-aiml-research/ml-capsules-inverted-attention-routing (124 stars, last commit 2026-09-11). 1 more implementation below.

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

View on arXivView PDF

Code Implementations(2)

12423PythonJan 29, 20201 months agoNOASSERTION
iclr2020

[ICLR'20] [PyTorch] Inverted Attention Routing for Capsules

294PythonFeb 13, 20206 years agoNOASSERTION

Similar Papers

Cite this paper

@article{tsai2020capsules,
  title  = {Capsules with Inverted Dot-Product Attention Routing},
  author = {Yao-Hung Hubert Tsai and Nitish Srivastava and Hanlin Goh and Ruslan Salakhutdinov},
  year   = {2020},
  eprint = {2002.04764},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.04764}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2002.04764.svg)](https://codeofpaper.com/paper/2002.04764)

Discussion