[Paper Review] Siamese Capsule Networks
This paper introduces Siamese Capsule Networks (SCN), a novel architecture that extends Capsule Networks to pairwise learning tasks such as face verification by leveraging $$2-normalized capsule pose features and contrastive loss. SCN achieves state-of-the-art performance in few-shot face verification, particularly on unseen subjects, outperforming strong baselines like AlexNet and ResNet-34 with 25% fewer parameters.
Capsule Networks have shown encouraging results on extit{defacto} benchmark computer vision datasets such as MNIST, CIFAR and smallNORB. Although, they are yet to be tested on tasks where (1) the entities detected inherently have more complex internal representations and (2) there are very few instances per class to learn from and (3) where point-wise classification is not suitable. Hence, this paper carries out experiments on face verification in both controlled and uncontrolled settings that together address these points. In doing so we introduce extit{Siamese Capsule Networks}, a new variant that can be used for pairwise learning tasks. The model is trained using contrastive loss with $\ell_2$-normalized capsule encoded pose features. We find that extit{Siamese Capsule Networks} perform well against strong baselines on both pairwise learning datasets, yielding best results in the few-shot learning setting where image pairs in the test set contain unseen subjects.
Motivation & Objective
- To address the limitations of standard Capsule Networks in few-shot and pairwise learning settings where few examples per class are available.
- To extend Capsule Networks to tasks requiring relationship learning between whole entities, such as face verification, rather than standard image classification.
- To evaluate Capsule Networks on complex, real-world face verification tasks under both controlled and uncontrolled conditions.
- To demonstrate the effectiveness of capsule-based representations in preserving spatial relationships and viewpoint invariance under low-data regimes.
Proposed method
- Proposes Siamese Capsule Networks (SCN), a twin-branch architecture that shares weights and processes image pairs in parallel to learn joint embeddings.
- Uses $$2-normalized capsule-encoded pose vectors as feature representations to preserve spatial relationships and viewpoint information.
- Trains the model using contrastive loss to minimize intra-class distance and maximize inter-class distance between image pairs.
- Employs iterative dynamic routing to compute agreement between capsules, enabling part-whole relationships and translation equivariance.
- Applies batch normalization to initial convolutional layers to reduce training loss variance and improve convergence.
- Evaluates multiple distance metrics (Euclidean, Manhattan) and loss variants (including double margin) to optimize performance.
Experimental results
Research questions
- RQ1Can Capsule Networks generalize effectively to pairwise learning tasks like face verification, where standard classification fails?
- RQ2How well do Siamese Capsule Networks perform in few-shot learning scenarios with unseen subjects during testing?
- RQ3Does the use of $$2-normalized capsule pose features improve generalization and robustness compared to standard CNNs?
- RQ4How does contrastive loss with capsule features compare to standard cross-entropy loss in low-data regimes?
Key findings
- Siamese Capsule Networks achieved the best performance on the AT&T dataset in the few-shot learning setting, particularly when tested on unseen subjects.
- On the Labeled Faces in the Wild (LFW) dataset, SCN matched or outperformed AlexNet and ResNet-34 with 25% fewer parameters.
- The SCN model showed faster convergence on the AT&T dataset, especially with Manhattan distance, and reduced loss variance when using batch normalization.
- Contrastive loss with $$2-normalized features led to lower prediction variance and higher precision in positive pair matching compared to other models.
- The use of a double margin improved performance on LFW for standard SCN, though it slightly reduced performance when combined with concrete dropout.
- Despite having fewer parameters, SCN was slower than CNNs due to iterative routing operations during training.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.