[Paper Review] Large Margin Few-Shot Learning
This paper proposes a large margin principle to enhance metric-based few-shot learning by integrating a triplet loss into the classification loss, significantly improving generalization with minimal computational cost. Experiments on prototypical networks and graph neural networks show consistent performance gains across 5-way few-shot benchmarks, demonstrating the effectiveness of large margin constraints in reducing overfitting and boosting discriminative capacity.
The key issue of few-shot learning is learning to generalize. This paper proposes a large margin principle to improve the generalization capacity of metric based methods for few-shot learning. To realize it, we develop a unified framework to learn a more discriminative metric space by augmenting the classification loss function with a large margin distance loss function for training. Extensive experiments on two state-of-the-art few-shot learning methods, graph neural networks and prototypical networks, show that our method can improve the performance of existing models substantially with very little computational overhead, demonstrating the effectiveness of the large margin principle and the potential of our method.
Motivation & Objective
- To address the challenge of overfitting in few-shot learning due to limited labeled data.
- To improve the generalization capacity of metric-based few-shot learning models by enforcing large margin constraints in the embedding space.
- To develop a unified, efficient, and robust framework applicable to various metric learning methods.
- To validate the effectiveness of large margin constraints through extensive experiments on state-of-the-art models like prototypical networks and graph neural networks.
Proposed method
- Augment the standard classification loss with a triplet loss to enforce large margin separation between different classes in the metric space.
- Use an unnormalized triplet loss for better stability and broader applicability, especially to non-parametric classifiers like prototypical networks.
- Integrate the large margin loss into existing metric learning frameworks without modifying their core architecture.
- Test and compare multiple margin-based loss functions, including normalized triplet loss, cosface, and arcface, to evaluate robustness and performance.
- Apply the unified framework to prototypical networks and graph neural networks, training on Mini-ImageNet and Omniglot datasets.
- Use a margin hyperparameter m and scaling factor s, with s=10 and m=0.2 or 0.1 for optimal performance.
Experimental results
Research questions
- RQ1Can enforcing large margin constraints between class embeddings improve generalization in few-shot learning?
- RQ2How does the proposed large margin framework compare to existing loss functions like cosface and arcface in terms of stability and performance?
- RQ3Can the unified large margin framework be effectively applied to both parametric and non-parametric metric learning models?
- RQ4Does the inclusion of a large margin loss lead to consistent performance gains across different few-shot learning benchmarks?
Key findings
- The proposed large margin framework improves performance on prototypical networks and graph neural networks across both Mini-ImageNet and Omniglot datasets.
- For 5-way 1-shot learning on Mini-ImageNet, the method achieves 51.04% accuracy with the cosface loss and 51.49% with m=0.2, outperforming the baseline GNN (50.33%).
- The unnormalized triplet loss consistently outperforms normalized variants and is more robust, with no training failures observed, unlike arcface which failed to converge in most cases.
- The cosface loss achieves 67.04% accuracy on 5-way 5-shot learning, slightly better than the baseline GNN (66.41%), confirming the benefit of margin constraints.
- The arcface loss shows high sensitivity to margin hyperparameter m, with training failures for most m values, indicating instability in few-shot settings.
- The framework adds minimal computational overhead and is easily adaptable to existing metric learning models, demonstrating broad practical potential.
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.