Skip to main content
QUICK REVIEW

[Paper Review] Alleviating the Sample Selection Bias in Few-shot Learning by Removing Projection to the Centroid

Jing Xu, Xu Luo|arXiv (Cornell University)|Oct 30, 2022
Domain Adaptation and Few-Shot LearningComputer Science8 citations
TL;DR

This paper proposes Task Centroid Projection Removing (TCPR), a simple feature transformation that removes projections along the direction of the task centroid to alleviate sample selection bias in few-shot learning. By estimating the task centroid using similar base features and projecting out this component, TCPR improves model robustness and accuracy, especially in low-shot settings, across ten diverse datasets with consistent gains of up to 3.87% accuracy improvement.

ABSTRACT

Few-shot learning (FSL) targets at generalization of vision models towards unseen tasks without sufficient annotations. Despite the emergence of a number of few-shot learning methods, the sample selection bias problem, i.e., the sensitivity to the limited amount of support data, has not been well understood. In this paper, we find that this problem usually occurs when the positions of support samples are in the vicinity of task centroid -- the mean of all class centroids in the task. This motivates us to propose an extremely simple feature transformation to alleviate this problem, dubbed Task Centroid Projection Removing (TCPR). TCPR is applied directly to all image features in a given task, aiming at removing the dimension of features along the direction of the task centroid. While the exact task centroid cannot be accurately obtained from limited data, we estimate it using base features that are each similar to one of the support features. Our method effectively prevents features from being too close to the task centroid. Extensive experiments over ten datasets from different domains show that TCPR can reliably improve classification accuracy across various feature extractors, training algorithms and datasets. The code has been made available at https://github.com/KikimorMay/FSL-TCBR.

Motivation & Objective

  • To investigate the root cause of performance instability in few-shot learning when support samples are near the task centroid.
  • To address the sample selection bias problem, which arises when support data are unrepresentative or close to the shared pattern of all classes.
  • To propose a generic, lightweight feature transformation that enhances discriminability without modifying backbone networks or training procedures.
  • To improve few-shot generalization by removing the influence of shared, ambiguous patterns captured in the task centroid direction.

Proposed method

  • The method estimates the task centroid direction using the top-k most similar base samples to each support feature, enabling approximation despite limited support data.
  • It applies a linear transformation to remove the projection of each image feature onto the estimated task centroid vector, effectively eliminating the shared component.
  • The transformation is applied uniformly across all features in a task, making it agnostic to the specific feature extractor or training method used.
  • The approximation of the task centroid is based on the assumption that base features near the direction of novel features are strongly correlated and informative.
  • The method is computationally efficient and can be integrated into any few-shot learning pipeline with minimal modification.
  • It leverages feature similarity between base and novel data to stabilize the estimation of the task centroid in low-data regimes.

Experimental results

Research questions

  • RQ1Why does few-shot classification performance fluctuate significantly when support samples are close to the task centroid?
  • RQ2How does the task centroid direction contribute to sample selection bias in few-shot learning?
  • RQ3Can removing the projection onto the task centroid direction improve classification robustness and accuracy?
  • RQ4What is the optimal way to estimate the task centroid when support data are scarce?
  • RQ5Does the proposed transformation generalize across diverse datasets and feature extractors?

Key findings

  • The classification accuracy drops significantly and variance increases when support samples are close to the task centroid, confirming the existence of sample selection bias.
  • TCPR improves accuracy by up to 3.87% on 1-shot settings, with consistent gains across 10 diverse datasets.
  • The method achieves a 4.4% average improvement on 1-shot 5-way tasks and 1.5% on 10-way 5-shot tasks across multiple feature extractors.
  • The ablation study shows that the optimal number of base neighbors $k$ varies with domain similarity, with larger $k$ needed for datasets closer to the base distribution.
  • Grad-CAM visualization confirms that TCPR redirects model attention to object-level features instead of shared background patterns.
  • The method is effective even when the base and novel datasets differ significantly in domain, demonstrating robustness to domain shift.

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.