Unlocking Transfer Learning for Open-World Few-Shot Recognition

Byeonggeun Kim, Juntae Lee, Kyuhong Shim, Simyung Chang

TL;DR

Transfer learning excels at closed-world few-shot learning but struggles in open-world scenarios where unknown classes must be rejected. This paper introduces OAL-OFL, a two-stage framework that combines open-set aware meta-learning with open-set free transfer learning, achieving state-of-the-art performance on few-shot open-set recognition benchmarks with only a 1.5% increase in training effort.

What Problem Does This Paper Address?

Imagine deploying a computer vision model trained to recognize a handful of specific bird species using only a few example images (Few-Shot Learning). In the real world, this model will inevitably encounter images of things it wasn't trained on—like squirrels, airplanes, or other bird species.

Traditional Few-Shot Learning (FSL) operates in a "closed world," forcing the model to pick the closest match from its known classes. Few-Shot Open-Set Recognition (FSOSR) addresses this gap by requiring the model to accurately classify known categories (closed-set) while successfully rejecting unknown instances (open-set).

While transfer learning (fine-tuning a pre-trained model on a target task) is the dominant paradigm for closed-world few-shot learning, naively applying it to open-world scenarios actually degrades open-set detection performance. Because the target task lacks explicit open-set examples during fine-tuning, the model overfits to the known classes and loses its ability to say "I don't know."

Figure 1: Difficulty of straightforward extension of the transfer learning from FSL methods [34, 17] to FSOSR. Compared to the pre-trained model without transfer learning (w/o TL), in open-set recognition, [34, 17] are less effective as much as in closed-set, or even degrade the performance.

Methods

To unlock transfer learning for FSOSR, the authors propose a two-stage framework called OAL-OFL (Open-set Aware meta-Learning with Open-set Free transfer Learning):

  1. Stage-1: Open-set Aware Meta-Learning (OAL): Instead of standard pre-training, the model undergoes episodic meta-learning on a base dataset. Crucially, it learns a feature encoder alongside a task-independent, learnable open-set prototype. This prototype acts as a universal anchor for "unknown" space, providing a robust metric space initialization for the next stage.
  2. Stage-2: Open-set Free Transfer Learning (OFL): The model is fine-tuned on the specific target task. To handle the lack of open-set examples during this stage, the authors introduce two alternative sampling strategies:
  3. OAL-OFL: Samples open-set examples directly from the remaining categories of the base training dataset.
  4. OAL-OFL-Lite: A more practical variant that requires no access to the base dataset during transfer. It dynamically splits the target task's few known classes to simulate a "pseudo open set" and freezes the open-set classifier to prevent overfitting.
Figure 2: Overall training framework of OAL-OFL. (a) In Stage 1, the feature encoder and a learnable open-set prototype undergo distance-based meta-learning [37] with an additional class representing the open set. (b) In Stage 2, feature encoder and prototypes are further transfer-learned to the target task under an open-set-free condition. Open-set training examples can be alternatively drawn from the base training dataset (green) or from a subset of the closed-set categories that is randomly selected as a pseudo open set (purple).

Datasets

The authors evaluated their approach on standard computer vision benchmarks:

  • miniImageNet: 100 classes total (64 for training, 16 for validation, 20 for testing).
  • tieredImageNet: A larger dataset with 608 classes grouped into broader categories (351 for training, 97 for validation, 160 for testing).
  • CUB-200: Used specifically for challenging cross-domain evaluations (e.g., training on tieredImageNet and testing on CUB-200).

Key Insights and Ideas

  • The Transfer Learning Trade-off: Naive transfer learning acts like a double-edged sword in open-world scenarios; it sharpens the model's focus on known target classes but completely blinds it to unknown anomalies.
  • Universal Rejection Anchors: By training a dedicated, task-independent open-set prototype during the meta-learning phase, the model establishes a permanent "rejection zone" in its embedding space that remains stable even during subsequent fine-tuning.
  • Self-Generated Openness: The success of the "Lite" version reveals that you don't need a massive external dataset to maintain open-set awareness during deployment. Simply partitioning the limited target data into pseudo-known and pseudo-unknown sets is enough to keep the model regularized.

Key Results

The proposed method achieved new state-of-the-art (SOTA) performance across both benchmarks, effectively balancing closed-set accuracy (Acc) and open-set detection (measured via AUROC):

  • miniImageNet (5-shot): OAL-OFL achieved 85.49% Acc and 83.13% AUROC, outperforming the previous best method (GEL), which achieved 83.05% Acc and 82.29% AUROC.
  • tieredImageNet (5-shot): OAL-OFL reached 86.75% Acc and 83.36% AUROC.
  • Efficiency: Stage-2 requires only 300 iterations of fine-tuning, which amounts to a mere 1.5% increase in training effort compared to the meta-learning stage alone.
  • Even without access to the base dataset during transfer, OAL-OFL-Lite outperformed or matched previous SOTA methods that relied on full base dataset access.

Limitations and Future Work

  • Static Open-Set Classifiers in Lite Mode: To prevent overfitting, OAL-OFL-Lite freezes the open-set classifier during transfer learning. The authors note that finding ways to safely and dynamically optimize this classifier using pseudo-open data remains an open challenge.
  • Robustness to Noisy Support Sets: In real-world deployments, the few examples provided to the model might be disorganized, mislabeled, or drawn from varying distributions. Future work needs to address how FSOSR transfer learning handles such imperfect data.

Summary updated

BibTeX
@misc{kim2024unlocking,
  author = {Byeonggeun Kim and Juntae Lee and Kyuhong Shim and Simyung Chang},
  title = {{Unlocking Transfer Learning for Open-World Few-Shot Recognition}},
  year = {2024},
  eprint = {2411.09986},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.09986},
}
Figure