Powering Finetuning in Few-Shot Learning: Domain-Agnostic Bias Reduction with Selected Sampling

Ran Tao, Han Zhang, Yutong Zheng, Marios Savvides

TL;DR

This paper introduces a two-pronged strategy to enhance few-shot learning by refining feature extractors through targeted finetuning. By addressing both domain-level (class-agnostic) and sample-level (class-specific) biases using two novel modules—Distribution Calibration and Selected Sampling—the authors achieve state-of-the-art performance across ten diverse datasets without requiring complex meta-training procedures.

What Problem Does This Paper Address?

Few-shot learning (FSL) aims to recognize novel classes using only a handful of examples. A common baseline involves pre-training a deep network on a large "base" dataset and then finetuning a simple classifier on the few "novel" samples. However, this often leaves the underlying feature extractor unchanged.

The authors identify two critical biases that hinder this approach:

  1. Class-Agnostic Bias: Novel classes often come from different domains than the base classes (e.g., training on natural images but testing on sketches). This causes a global "domain shift," where the feature distributions are skewed and poorly aligned for the new task.
  2. Class-Specific Bias: With only 1–5 samples, the estimated mean of a class is often far from its true center. A single "strayed" or outlier point in the support set can significantly distract the model during finetuning, leading to poor generalization.

Methods

The authors propose two lightweight modules to "power up" the finetuning process:

1. Distribution Calibration Module (DCM)

To tackle class-agnostic bias, DCM first normalizes the novel-class features to have a zero-centered mean and unit variance. This corrects the global skew caused by domain differences. It then introduces a learnable scale vector that element-wisely multiplies the features. During finetuning, this scale vector allows the model to quickly amplify class-sensitive features while suppressing common domain-level information, leading to much faster convergence.

Figure 1: Illustration on Biases in Feature Distribution.

2. Selected Sampling (SS)

To combat class-specific bias, the authors use a Monte-Carlo sampling approach directly in the feature space. Instead of just relying on the few available samples, they generate new "proposal" features in the vicinity of the support points.

  • Acceptance Criterion: A generated feature is only added to the support set if it has a higher predicted probability of belonging to the ground-truth class than the original point.
  • Rectification: These "selected" samples help move the estimated class mean away from outliers and toward the high-density areas of the true distribution.
The iterative process of Selected Sampling to augment the support set.

Datasets

The method was evaluated on the Meta-Dataset, currently the most challenging benchmark for FSL. It consists of ten diverse datasets spanning various domains:

  • Natural Images: ILSVRC (ImageNet), MSCOCO, CU-Birds, VGG-Flowers, Fungi.
  • Specialized Domains: Aircraft, DTD (Textures), Traffic Signs.
  • Hand-drawn/Sketches: Omniglot, Quickdraw.

The models (ResNet-18 and ResNet-34) were pre-trained only on the ILSVRC training set to strictly test their cross-domain adaptation capabilities.

Key Insights and Ideas

  • Finetuning the Backbone is Viable: While many FSL methods avoid finetuning the feature extractor due to overfitting risks, this paper shows that with proper calibration (DCM), backbone finetuning becomes stable and highly effective.
  • Fast Adaptation via Scaling: DCM's learnable scale vector acts as a "shortcut" for adaptation. By focusing optimization on a single vector rather than the entire network initially, the model reaches high accuracy in fewer iterations.
  • Handling "Strayed" Points: The visualization on MNIST (Figure 2) reveals that without SS, a single outlier can pull the class distribution toward an overlap with other classes. SS effectively "ignores" the distraction by populating the feature space around the true majority.
Without Selected Sampling With Selected Sampling
Distraction by strayed points Rectified mean via SS
Distraction by strayed points
Rectified mean via SS

Key Results

  • State-of-the-Art: The DCM+SS approach achieved SOTA results on Meta-Dataset, outperforming complex meta-learning frameworks like CNAPS and BOHB-Ensemble.
  • Consistent Gains: Unlike many methods that work well on natural images but fail on sketches, this approach showed consistent performance boosts across all ten datasets. For instance, on the "Traffic Sign" dataset, it provided a massive 29.7% performance gain over the baseline.
  • Extreme Few-Shot Robustness: The method is particularly powerful in 1-shot and 2-shot scenarios, where the class-specific bias is most severe.

Limitations and Future Work

  • Computational Overhead: While the authors describe the sampling as "efficient," performing Monte-Carlo sampling in high-dimensional feature spaces for every finetuning episode adds computational cost compared to simple linear classifiers.
  • Backbone Dependency: The results show that performance scales with the quality of the pre-trained backbone (ResNet-34 vs ResNet-18). The method relies on the initial feature extractor being "good enough" to provide a meaningful starting point for sampling.
  • Future Directions: The authors suggest that exploring different proposal distributions for Selected Sampling could further improve the rectification of class means.

Summary updated

Abstract

In recent works, utilizing a deep network trained on meta-training set serves as a strong baseline in few-shot learning. In this paper, we move forward to refine novel-class features by finetuning a trained deep network. Finetuning is designed to focus on reducing biases in novel-class feature distributions, which we define as two aspects: class-agnostic and class-specific biases. Class-agnostic bias is defined as the distribution shifting introduced by domain difference, which we propose Distribution Calibration Module(DCM) to reduce. DCM owes good property of eliminating domain difference and fast feature adaptation during optimization. Class-specific bias is defined as the biased estimation using a few samples in novel classes, which we propose Selected Sampling(SS) to reduce. Without inferring the actual class distribution, SS is designed by running sampling using proposal distributions around support-set samples. By powering finetuning with DCM and SS, we achieve state-of-the-art results on Meta-Dataset with consistent performance boosts over ten datasets from different domains. We believe our simple yet effective method demonstrates its possibility to be applied on practical few-shot applications.
BibTeX
@inproceedings{tao2022powering,
  author = {Ran Tao and Han Zhang and Yutong Zheng and Marios Savvides},
  title = {{Powering Finetuning in Few-Shot Learning: Domain-Agnostic Bias Reduction with Selected Sampling}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  url = {https://openreview.net/forum?id=DAnDIlsta5d},
}
Figure