Skip to content
StackDecode
AI & ML Atlas
Deep LearningarchitectureAnimated walkthrough

Capsule Networks

Groups of neurons that encode an object's pose and agree on what they represent.

The idea

A capsule outputs a vector whose length is the probability an entity is present and whose direction encodes its properties such as pose. Lower capsules vote for higher ones; routing by agreement strengthens the links where the votes agree, so a face is recognised only when eyes, nose and mouth are in a consistent arrangement.

Watch it run

The pipeline lights up one step at a time. Use the controls to pause or step through it.

  1. 1Lower capsules detect simple parts and output pose vectors.
  2. 2Each makes a prediction for every higher capsule.
  3. 3Dynamic routing raises the weight of higher capsules whose predictions agree.
  4. 4The longest output vector gives the class.
1/4

Step by step

  1. 1Lower capsules detect simple parts and output pose vectors.
  2. 2Each makes a prediction for every higher capsule.
  3. 3Dynamic routing raises the weight of higher capsules whose predictions agree.
  4. 4The longest output vector gives the class.

Where it is used

Research on viewpoint-robust recognition.

Watch out for

Costly routing; rarely competitive with CNNs and transformers at scale.

Related