Few-shot Learning with LSSVM Base Learner and Transductive Modules

Haoqing Wang, Zhi-Hong DengarXiv 2020

Introduction

Few-shot learning (FSL) aims to recognize novel classes using only a handful of labeled examples, typically organized into a "support set." While meta-learning has become the standard paradigm for this task, existing methods often struggle with a fundamental trade-off between the computational efficiency of the base learner and its generalization capability. Simple distance-based classifiers are fast but often underperform, while powerful solvers like Support Vector Machines (SVMs) are computationally expensive due to iterative quadratic programming.

This paper introduces FSLSTM, a framework that bridges this gap by employing a Multi-class Least Squares SVM (LSSVM) as a base learner. By leveraging transductive modules that utilize information from the unlabeled query set, FSLSTM achieves state-of-the-art performance with significantly lower computational overhead.

The FSLSTM Framework

The core of the FSLSTM architecture is the integration of a high-speed base learner with two novel transductive components. Unlike traditional SVMs, the LSSVM solves a system of linear equations to find a closed-form solution. This approach maintains the robust generalization of margin-based classifiers while being 2 to 6 times faster than iterative SVM-based meta-learners like MetaOptNet.

Overview of the FSLSTM architecture, integrating the LSSVM base learner with IAM and PSM modules.

Transductive Modules

Standard FSL models often treat query samples as independent targets. FSLSTM challenges this by using the query set's distribution to refine the classifier through two modules:

  1. Inverse Attention Module (IAM): This module treats support samples as "Queries" and query samples as "Keys" and "Values" in an attention mechanism. This allows the model to adjust support sample feature representations based on the specific context of the query set, effectively tailoring the decision boundary to the task at hand.
  2. Pseudo Support Module (PSM): This module performs data augmentation by identifying high-confidence query samples, assigning them "pseudo-labels," and incorporating their prototypes back into the support set. This iterative process expands the training data available to the LSSVM.
Visualization of feature space adjustments on miniImageNet using a ResNet12 backbone.

Experimental Results

The model was evaluated on the miniImageNet and CIFAR-FS benchmarks using Conv4 and ResNet12 backbones. FSLSTM demonstrated significant improvements, particularly in the most challenging 1-shot scenarios where data is scarcest.

  • Accuracy: On miniImageNet (5-way 1-shot), FSLSTM reached 75.54% accuracy, outperforming established models like SIB and DPGN.
  • Efficiency: The LSSVM base learner proved to be substantially faster than standard SVM implementations, making it highly suitable for the iterative nature of meta-learning.
  • Ablation Studies: The inclusion of transductive modules (IAM and PSM) provided an accuracy boost of 3% to 6% in 1-shot settings, confirming that the "global" view provided by the query set is a vital signal for defining class boundaries.

Conclusion

FSLSTM demonstrates that the combination of an efficient LSSVM base learner and transductive feature adjustment can overcome the limitations of traditional few-shot learners. By "nudging" support samples and augmenting the training set with pseudo-labeled query data, the framework achieves superior generalization and speed. Future work may explore combining these transductive modules with self-supervised auxiliary tasks to further enhance feature representation quality.

Summary updated

BibTeX
@misc{wang2020few,
  author = {Haoqing Wang and Zhi-Hong Deng},
  title = {{Few-shot Learning with LSSVM Base Learner and Transductive Modules}},
  year = {2020},
  eprint = {2009.05786},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.05786},
}
Figure