Overview
Direct Answer
A capsule network is a neural network architecture that organises neurons into groups called capsules, each representing specific entity instantiation parameters such as pose, deformation, velocity, and texture. This structure enables the network to capture hierarchical spatial relationships and part-whole relationships more effectively than traditional convolutional approaches.
How It Works
Capsules function as small neural modules that output vector quantities rather than scalar activations, with vector magnitude representing the probability of entity presence and direction encoding entity properties. Dynamic routing algorithms iteratively determine which lower-level capsules should send their output to higher-level capsules based on agreement between predictions and actual outputs, creating a more sophisticated information flow than conventional pooling mechanisms.
Why It Matters
This architecture addresses fundamental limitations in standard CNNs, particularly their inability to handle spatial transformations and their reliance on massive training datasets. Organisations benefit from improved generalisation on transformed inputs, reduced data requirements, and more interpretable learned representations—critical factors for resource-constrained deployments and applications requiring robustness to viewpoint variations.
Common Applications
Applications include image classification tasks requiring transformation invariance, medical imaging analysis where hierarchical feature relationships prove important, and 3D object recognition. Research prototypes have demonstrated promise in handwritten digit recognition, traffic sign classification, and object detection scenarios involving occluded or rotated inputs.
Key Considerations
Computational overhead during routing procedures significantly exceeds standard convolutional networks, creating training and inference bottlenecks. The architecture remains primarily experimental at enterprise scale, with deployment on large-scale datasets presenting practical challenges compared to established CNN alternatives.
Cross-References(1)
More in Deep Learning
Attention Head
Training & OptimisationAn individual attention computation within a multi-head attention layer that learns to focus on different aspects of the input, with outputs concatenated for richer representations.
Graph Neural Network
ArchitecturesA neural network designed to operate on graph-structured data, learning representations of nodes, edges, and entire graphs.
Gradient Checkpointing
ArchitecturesA memory optimisation that trades computation for memory by recomputing intermediate activations during the backward pass instead of storing them all during the forward pass.
Mixture of Experts
ArchitecturesAn architecture where different specialised sub-networks (experts) are selectively activated based on the input.
Softmax Function
Training & OptimisationAn activation function that converts a vector of numbers into a probability distribution, commonly used in multi-class classification.
LoRA
Language ModelsLow-Rank Adaptation — a parameter-efficient fine-tuning technique that adds trainable low-rank matrices to frozen pretrained weights.
Skip Connection
ArchitecturesA neural network shortcut that allows the output of one layer to bypass intermediate layers and be added to a later layer's output.
Gradient Clipping
Training & OptimisationA technique that caps gradient values during training to prevent the exploding gradient problem.