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
Flash Attention
ArchitecturesAn IO-aware attention algorithm that reduces memory reads and writes by tiling the attention computation, enabling faster training of long-context transformer models.
Fully Connected Layer
ArchitecturesA neural network layer where every neuron is connected to every neuron in the adjacent layers.
Layer Normalisation
Training & OptimisationA normalisation technique that normalises across the features of each individual sample rather than across the batch.
Prefix Tuning
Language ModelsA parameter-efficient method that prepends trainable continuous vectors to the input of each transformer layer, guiding model behaviour without altering base parameters.
Mixed Precision Training
Training & OptimisationTraining neural networks using both 16-bit and 32-bit floating-point arithmetic to speed up computation while maintaining accuracy.
Exploding Gradient
ArchitecturesA problem where gradients grow exponentially during backpropagation, causing unstable weight updates and training failure.
Graph Neural Network
ArchitecturesA neural network designed to operate on graph-structured data, learning representations of nodes, edges, and entire graphs.
Vision Transformer
ArchitecturesA transformer architecture adapted for image recognition that divides images into patches and processes them as sequences, rivalling convolutional networks in visual tasks.