Avoiding Implementation Pitfalls of "Matrix Capsules with EM Routing" by Hinton et al

07/01/2019
by   Ashley Daniel Gritzman, et al.
0

The recent progress on capsule networks by Hinton et al. has generated considerable excitement in the machine learning community. The idea behind a capsule is inspired by a cortical minicolumn in the brain, whereby a vertically organised group of around 100 neurons receive common inputs, have common outputs, are interconnected, and may well constitute a fundamental computation unit of the cerebral cortex. However, Hinton's paper on "Matrix Capsule with EM Routing'" was unfortunately not accompanied by a release of source code, which left interested researchers attempting to implement the architecture and reproduce the benchmarks on their own. This has certainly slowed the progress of research building on this work. While writing our own implementation, we noticed several common mistakes in other open source implementations that we came across. In this paper we share some of these learnings, specifically focusing on three implementation pitfalls and how to avoid them: (1) parent capsules with only one child; (2) normalising the amount of data assigned to parent capsules; (3) parent capsules at different positions compete for child capsules. While our implementation is a considerable improvement over currently available implementations, it still falls slightly short of the performance reported by Hinton et al. (2018). The source code for this implementation is available on GitHub at the following URL: https://github.com/IBM/matrix-capsules-with-em-routing.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/27/2018

Cognitive Consistency Routing Algorithm of Capsule-network

Artificial Neural Networks (ANNs) are computational models inspired by t...
research
04/15/2021

Training Deep Capsule Networks with Residual Connections

Capsule networks are a type of neural network that have recently gained ...
research
02/20/2019

advertorch v0.1: An Adversarial Robustness Toolbox based on PyTorch

advertorch is a toolbox for adversarial robustness research. It contains...
research
12/11/2019

An Efficient Approach for Using Expectation Maximization Algorithm in Capsule Networks

Capsule Networks (CapsNets) are brand-new architectures that have shown ...
research
04/21/2019

Dynamic Past and Future for Neural Machine Translation

Previous studies have shown that neural machine translation (NMT) models...
research
10/31/2017

Updating the VESICLE-CNN Synapse Detector

We present an updated version of the VESICLE-CNN algorithm presented by ...
research
11/23/2020

Hybrid Genetic Search for the CVRP: Open-Source Implementation and SWAP* Neighborhood

The vehicle routing problem is one of the most studied combinatorial opt...

Please sign up or login with your details

Forgot password? Click here to reset