Task-Adaptive Clustering for Semi-Supervised Few-Shot Classification

Jun Seo, Sung Whan Yoon, Jaekyun MoonarXiv 2020

Abstract

Semi-supervised few-shot learning (SS-FSL) aims to improve classification performance by leveraging unlabeled data alongside a small set of labeled examples. This paper introduces Task-Adaptive Clustering (TAC), a novel approach that iteratively refines a task-specific projection space. By aligning class centroids with meta-learned reference vectors, TAC effectively utilizes unlabeled samples to sharpen the model's focus on specific tasks. We also propose TACdap, a distractor-aware variant that explicitly models irrelevant unlabeled data. Our method achieves state-of-the-art performance on miniImageNet and tieredImageNet benchmarks, demonstrating significant robustness to noise.

Introduction

Few-shot learning (FSL) addresses the challenge of recognizing new categories from very few labeled examples. While meta-learning has advanced FSL, it typically requires extensive labeled datasets for training. Semi-supervised few-shot learning attempts to mitigate this by incorporating unlabeled data. However, the presence of "distractor" images—unlabeled samples that do not belong to any target class—poses a significant challenge, often leading to performance degradation in existing methods.

Methodology

TAC is built upon the Task-Adaptive Projection Network (TapNet) framework, which projects features into a specialized classification space where class centroids align with fixed reference vectors.

Iterative Task-Adaptive Clustering (TAC)

The core of TAC is an iterative refinement process designed to adapt the projection space to the specific characteristics of a given task:

  1. Initial Projection: An initial task-specific projection space is established using the provided labeled samples.
  2. Soft Clustering: Unlabeled samples are projected into this space, where they are assigned "soft labels" based on their proximity to current class centroids.
  3. Centroid Refinement: These soft labels are used to re-calculate class centroids within the original embedding space.
  4. Reconstruction: The projection matrix $M$ is reconstructed using the refined centroids, and the process repeats.
The iterative Task-Adaptive Clustering (TAC) process.

Distractor-Aware Projection (TACdap)

To handle noisy unlabeled data, the authors introduce TACdap. This variant incorporates a dedicated "distractor" reference vector and centroid. This allows the model to explicitly categorize irrelevant unlabeled images into a separate "garbage-can" class, preventing them from polluting the prototypes of the target classes.

Experimental Setup

The proposed method was evaluated on two standard benchmarks:

  • miniImageNet: 100 classes, evaluated with a split of 40% labeled and 60% unlabeled data.
  • tieredImageNet: A more challenging dataset with distinct training and testing hierarchies, evaluated with a split of 10% labeled and 90% unlabeled data.

Results and Analysis

TAC achieved state-of-the-art results across both benchmarks:

  • miniImageNet (5-way, 1-shot): TAC reached 55.50% accuracy, outperforming previous semi-supervised methods like TPN (52.78%).
  • tieredImageNet (5-way, 1-shot): TAC achieved 58.46%, a significant improvement over the TapNet baseline (51.84%).

Key Insights

  • Projection Space Advantage: Clustering unlabeled data is significantly more effective in a task-adaptive projection space than in the raw embedding space, as the projection highlights task-relevant features.
  • Iteration Dynamics: While more iterations improve inference performance, excessive iterations during meta-training can lead to overfitting on task-specific noise.
  • Robustness to Distractors: In experiments where 80% of unlabeled data were distractors, TACdap maintained performance near supervised baselines, whereas competing methods like Soft k-Means experienced sharp declines.

Conclusion

Task-Adaptive Clustering (TAC) provides a powerful framework for semi-supervised few-shot classification by iteratively refining task-specific representations. Its ability to handle distractor samples through explicit modeling makes it particularly suitable for real-world applications where unlabeled data is noisy. Future research will focus on reducing computational overhead and addressing class imbalance in unlabeled datasets.

Summary updated

BibTeX
@misc{seo2020task,
  author = {Jun Seo and Sung Whan Yoon and Jaekyun Moon},
  title = {{Task-Adaptive Clustering for Semi-Supervised Few-Shot Classification}},
  year = {2020},
  eprint = {2003.08221},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.08221},
}
Figure