Few-shot Open-set Recognition Using Background as Unknowns

Nan Song, Chi Zhang, Guosheng Lin · DOI

Introduction

In the landscape of computer vision, most models operate under a "closed-set" assumption: the categories encountered during testing are identical to those seen during training. However, real-world applications often demand Open-set Recognition (OSR), where a model must not only classify known objects but also identify and reject "unknown" categories. This challenge is significantly amplified in Few-shot Open-set Recognition (FSOSR), where the model is provided with only a handful of examples (typically 1 or 5) per known class.

The primary hurdle in FSOSR is the lack of data to represent the "infinite" space of unknown objects. While previous attempts have utilized Generative Adversarial Networks (GANs) to synthesize fake unknown samples, these methods are often computationally heavy and difficult to stabilize. This paper proposes a more elegant solution: repurposing the background of existing training images as a proxy for the unknown world.

Methodology

The core philosophy of this work is that every labeled image contains two distinct types of information: the labeled foreground object and the unlabeled background. By treating the background as a "pseudo-unknown" class, the model can learn to reserve space in its embedding manifold for categories it has never seen.

Progressive Class Activation Mapping (ProCAM)

To effectively use backgrounds, the model must first isolate them. Standard Class Activation Mapping (CAM) typically identifies only the most discriminative part of an object (e.g., the head of a bird). If a model uses a standard CAM to mask the foreground, the remaining "background" might still contain significant parts of the known object, leading the model to incorrectly learn that those parts are "unknown."

To solve this, the authors introduce Progressive Class Activation Mapping (ProCAM). ProCAM works iteratively: it identifies the most discriminative region, masks it, and then re-evaluates the image to find the next most relevant part. By repeating this process, ProCAM generates a comprehensive foreground mask, ensuring that the features extracted for the background are truly representative of the environment and not the object itself.

Reserving Manifold Space

Instead of a standard $N$-way classifier, the architecture is modified to include additional "background" slots (nodes) in the final layer. During training:

  1. Foreground features are pushed toward their respective known class prototypes.
  2. Background features (isolated via ProCAM) are pushed toward the extra background slots.

By explicitly training the model to map non-object features to these dedicated slots, the model "reserves" areas in the mathematical embedding space for things that do not match the known class distributions. At inference time, the model uses cosine similarity to compare query images against both known and background prototypes. If a query image aligns most closely with a background prototype, it is rejected as an unknown.

Experimental Results

The authors evaluated the ProCAM-based approach against three major benchmarks: miniImageNet, tieredImageNet, and the CUB-200-2011 (Birds) dataset. The results demonstrate that the proposed method, specifically the version utilizing softmax-normalized ProCAM (Ours_ProCAMsm), consistently sets new state-of-the-art (SOTA) records.

  • General Performance: On the 1-shot miniImageNet task, the model achieved a 3.14% improvement in AUROC (Area Under the Receiver Operating Characteristic) for unknown detection compared to previous SOTA methods.
  • Fine-Grained Recognition: The most dramatic gains were observed on the CUB dataset. Because bird species often share similar backgrounds (e.g., branches, leaves), distinguishing between species while rejecting unknown birds is notoriously difficult. The ProCAM approach outperformed the baseline by over 10% in both classification accuracy and unknown detection.
  • Efficiency: By avoiding the need for generative models like GANs, this method provides a more computationally efficient and stable pipeline for few-shot tasks.

Discussion and Limitations

While the "background as unknown" strategy is highly effective, it does have limitations. The model's performance can be sensitive to the number of background classes ($N_{bkg}$) defined in the final layer. Furthermore, the strategy is most effective in natural, cluttered scenes; in environments with extremely simple or uniform backgrounds (e.g., studio photography), the background may provide less diverse information to represent the "unknown" world.

Conclusion

This paper demonstrates that the background of an image is a valuable, often overlooked resource in few-shot learning. By using ProCAM to aggressively isolate these backgrounds and treating them as pseudo-unknowns, models can more effectively navigate the boundaries between known and unknown categories. This approach not only improves accuracy but also provides a robust framework for deploying few-shot models in unpredictable, open-world environments.

Summary updated

BibTeX
@inproceedings{song2022few,
  author = {Nan Song and Chi Zhang and Guosheng Lin},
  title = {{Few-shot Open-set Recognition Using Background as Unknowns}},
  booktitle = {ACM Multimedia},
  year = {2022},
  url = {https://openreview.net/forum?id=FezHMynBof},
}
Figure