Skip to main content
QUICK REVIEW

[Paper Review] Large Margin Mechanism and Pseudo Query Set on Cross-Domain Few-Shot Learning

Jia-Fong Yeh, Hsin-Ying Lee|arXiv (Cornell University)|May 19, 2020
Domain Adaptation and Few-Shot LearningComputer Science11 citations
TL;DR

This paper proposes LMM-PQS, a novel fine-tuning method for cross-domain few-shot learning (CD-FSL) that addresses the challenge of adapting models to unseen domains with minimal labeled data. By introducing a pseudo query set (PQS) to enable query-based fine-tuning, prototypical triplet loss (PT loss), and large margin cosine loss (LMCL), LMM-PQS significantly improves zero-shot generalization, outperforming strong baselines across diverse domains including satellite, medical, and plant disease images.

ABSTRACT

In recent years, few-shot learning problems have received a lot of attention. While methods in most previous works were trained and tested on datasets in one single domain, cross-domain few-shot learning is a brand-new branch of few-shot learning problems, where models handle datasets in different domains between training and testing phases. In this paper, to solve the problem that the model is pre-trained (meta-trained) on a single dataset while fine-tuned on datasets in four different domains, including common objects, satellite images, and medical images, we propose a novel large margin fine-tuning method (LMM-PQS), which generates pseudo query images from support images and fine-tunes the feature extraction modules with a large margin mechanism inspired by methods in face recognition. According to the experiment results, LMM-PQS surpasses the baseline models by a significant margin and demonstrates that our approach is robust and can easily adapt pre-trained models to new domains with few data.

Motivation & Objective

  • To address the challenge of adapting few-shot models to novel domains with significant domain shifts.
  • To overcome the limitation that query sets are unavailable during fine-tuning, which hinders standard few-shot model adaptation.
  • To improve model generalization in cross-domain few-shot learning by integrating large margin and prototype-based learning.
  • To demonstrate that fine-tuning with pseudo query sets and margin-enhanced loss functions leads to superior performance on unseen domains.
  • To provide a practical, data-efficient solution for real-world few-shot learning where labeled data in target domains are extremely limited.

Proposed method

  • The pseudo query set (PQS) generates synthetic query samples during fine-tuning to simulate the meta-training phase, enabling gradient updates using query-like data.
  • Prototypical triplet loss (PT loss) integrates prototype learning with triplet loss, enhancing intra-class compactness and inter-class separation in support set features.
  • Large margin cosine loss (LMCL) is applied to treat CD-FSL as a near-open-set problem, enforcing larger angular margins between different classes.
  • The method combines PQS, PT loss, and LMCL within a fine-tuning framework, allowing standard few-shot models to adapt effectively to new domains.
  • The approach enables end-to-end training using only support sets and synthetic query sets, maintaining consistency with meta-learning training dynamics.
  • Backbones such as ResNet10/18 and models like Baseline and ProtoNet are fine-tuned using the proposed components to evaluate generalization across architectures.

Experimental results

Research questions

  • RQ1Can a fine-tuning strategy that simulates query-based learning improve few-shot model adaptation in cross-domain settings?
  • RQ2How does the introduction of a pseudo query set affect model generalization when real query data are unavailable during fine-tuning?
  • RQ3To what extent do prototypical triplet loss and large margin cosine loss enhance feature discrimination in cross-domain few-shot learning?
  • RQ4Does the proposed method outperform standard few-shot and general DNN fine-tuning approaches on diverse, out-of-domain datasets?
  • RQ5Can a standard backbone trained with standard practices still generalize well when fine-tuned with few-shot-style components?

Key findings

  • LMM-PQS significantly outperforms competitive baselines across all evaluated datasets, including CropDisease, EuroSAT, and ISIC, demonstrating strong generalization to unseen domains.
  • On the 5-shot setting, LMM-PQS achieves the highest accuracy on CropDisease (87.2%) and EuroSAT (85.4%), outperforming the next best method by over 3%.
  • The method shows consistent improvement across different backbones: LMM-PQS with Baseline achieves higher accuracy than ProtoNet-based models on most datasets, especially in 5-shot scenarios.
  • Visualization via T-SNE confirms that PT loss and LMCL increase the margin between intra-class and inter-class feature distances, especially in CropDisease and EuroSAT.
  • Grad-CAM analysis shows that LMM-PQS focuses more robustly on salient image regions even during incorrect predictions, indicating better attention alignment.
  • Despite improvements, performance on ChestX-ray (ChestX) remains limited, with only a slight accuracy gain from PT loss, suggesting domain similarity challenges persist.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.