Parameterless Transductive Feature Re-representation for Few-Shot Learning

Wentao Cui, Yuhong GuoICML 2021

Overview

Researchers have developed a "parameterless" transductive framework that significantly boosts few-shot learning (FSL) performance by simply re-representing features. By using an attention-based mechanism to "rectify" labeled support instances with information from unlabeled query instances, the method reduces sample bias and sets new state-of-the-art results without adding a single trainable parameter to the model architecture.

The Challenge: Sample Bias and "Heavy" Transduction

Few-Shot Learning aims to train classifiers that can recognize new categories from just one or five examples. The core challenge in this domain is sample bias: a handful of images (the "support set") rarely represents the full diversity of a class.

Transductive learning—which allows a model to look at the unlabeled "query" (test) instances all at once—is a proven way to combat this bias. However, most existing transductive solutions are computationally "heavy." They often require Graph Neural Networks (GNNs) with many extra parameters or complex meta-learning setups that are hard to adapt to different architectures. The authors sought a lightweight, architecture-agnostic way to get the benefits of transduction that could be plugged into any existing FSL model.

Methods: A Parameterless Approach

The authors propose a Parameterless Transductive Feature Re-representation layer. It operates in two main steps using a similarity-based attention mechanism:

  1. Query-to-Query Re-representation: Each query instance's features are updated by taking a weighted sum of other query instances. This drives similar instances closer together in the embedding space, creating tighter, more distinct clusters.
  2. Query-to-Support Re-representation: The labeled support instances are then "rectified" by fusing them with information from the now-refined query set. This helps the support features better represent the actual class prototypes by leveraging the distribution of the unlabeled data.
Transductive Feature Re-representation Layer

Crucially, this is a formula-based layer. It doesn't add new weights to be learned. While it can be used as a simple plug-in during inference, the authors also show it can be integrated into training using a Self-Supervised Learning (SSL) contrastive loss, which encourages the model to recognize that an original feature and its re-represented version belong to the same instance.

Key Insights

  • Sample Bias is the Primary Hurdle: The paper reinforces the idea that the biggest obstacle in FSL isn't just the lack of data, but the unrepresentative nature of the small data we do have.
  • Transduction as Rectification: Instead of just using query data to predict labels, this method uses query data to "fix" the feature representations of the support set.
  • Simplicity Wins: By using a parameterless approach, the method is highly adaptable. It worked equally well when applied to older meta-learning models (like ProtoNet) and modern state-of-the-art non-meta-learning models (like SimpleShot or TIM).
  • The Power of One Iteration: Interestingly, the authors found that applying this re-representation just once is optimal. Multiple iterations can actually "dilute" the original features too much, hurting overall performance.

Experimental Results

The framework was evaluated on three standard few-shot learning benchmarks: mini-ImageNet, tiered-ImageNet, and CUB (Caltech-UCSD Birds-200-2011). It consistently improved every baseline it was tested against, with the most dramatic gains seen in 1-shot scenarios:

  • SimpleShot+RR: Gained 7% to 9% accuracy over the base SimpleShot model across all datasets.
  • TIM+RR: Achieved the best results in most 1-shot tests, outperforming the previous state-of-the-art by significant margins (e.g., reaching 80.04% on mini-ImageNet 1-shot with a WRN28 backbone).
  • Meta-learning Boost: Even classic models like ProtoNet saw a ~4.3% jump in 1-shot accuracy just by plugging in this layer at inference time.

Limitations and Future Work

While highly effective, the approach has a few limitations:

  • Transductive Requirement: Like all transductive methods, this requires access to a batch of query instances at once. It cannot be used for "online" stream processing where instances arrive one by one.
  • Diminishing Returns on Larger Sets: The performance gains are much higher for 1-shot than for 5-shot tasks. As the number of labeled samples increases, the "sample bias" naturally decreases, making the "rectification" from the query set less impactful.
  • Hyperparameter Sensitivity: The method relies on three hyperparameters ($\alpha_1, \alpha_2, \tau$) to control the fusion and sharpness of attention. While the authors provide guidance, these might require tuning for entirely new datasets.

Summary updated

BibTeX
@inproceedings{cui2021parameterless,
  author = {Wentao Cui and Yuhong Guo},
  title = {{Parameterless Transductive Feature Re-representation for Few-Shot Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=jsvtqg_gaXJ},
}
Figure