Coreset Sampling from Open-Set for Fine-Grained Self-Supervised Learning

Sungnyun Kim, Sangmin Bae, Se-Young Yun · DOI

Abstract

Deep learning in general domains has constantly been extended to domain-specific tasks requiring the recognition of fine-grained characteristics. However, real-world applications for fine-grained tasks suffer from two challenges: a high reliance on expert knowledge for annotation and necessity of a versatile model for various downstream tasks in a specific domain. Fortunately, recent self-supervised learning (SSL) is a promising approach to pretrain a model without annotations, serving as an effective initialization for any downstream tasks. Since SSL does not rely on the presence of annotation, it generally utilizes large-scale unlabeled datasets, referred to as an open-set. In this sense, we introduce a novel Open-Set Self-Supervised Learning problem under the assumption that a large-scale unlabeled open-set is available, as well as the fine-grained target dataset, during a pretraining phase. In our problem setup, it is crucial to consider the distribution mismatch between the open-set and target dataset. Hence, we propose SimCore algorithm to sample a coreset, the subset of an open-set that has a minimum distance to the target dataset in the latent space. We demonstrate that SimCore significantly improves representation learning performance through extensive experimental settings, including eleven fine-grained datasets and seven open-sets in various downstream tasks.

The Challenge of Fine-Grained SSL

Self-supervised learning (SSL) has revolutionized computer vision by allowing models to learn useful representations from unlabeled data. Usually, this involves pretraining on a massive "open-set" like ImageNet before fine-tuning on a specific target task. However, this "more is better" approach hits a wall with fine-grained recognition. If the goal is to distinguish between subtle variants of a specific class (e.g., aircraft models), pretraining on a generic dataset full of unrelated categories can be counterproductive due to distribution mismatch. Features learned from generic images do not always translate to the subtle nuances needed for specialized domains.

The SimCore Framework

To address this, we propose a framework called Open-Set Self-Supervised Learning (OpenSSL) and a selection algorithm named SimCore. The goal is to intelligently select a "coreset"—a relevant subset of a massive unlabeled open-set—to boost performance by reducing distribution mismatch.

Overview of the Open-Set Self-Supervised Learning (OpenSSL) framework and the SimCore coreset selection process.

The SimCore process operates in three main stages:

  1. The Retrieval Model: A simple encoder is trained on the small, fine-grained target dataset to understand the target domain in a latent space.
  2. Coreset Sampling: To ensure scalability, the target data is clustered into $k$ centroids. The algorithm then iteratively selects samples from the massive open-set that are closest to these centroids in the latent space.
  3. Adaptive Stopping Criterion: Instead of a fixed budget, SimCore monitors the similarity of selected samples. Once samples fall below a similarity threshold $\tau$, sampling stops, ensuring only "helpful" data is included.

Experimental Evaluation

SimCore was evaluated across a gauntlet of tests involving 11 fine-grained target datasets (including Aircraft, Stanford Cars, Oxford-IIIT Pets, and CUB Birds) and 7 diverse open-sets (ranging from curated sets like ImageNet-1k to uncurated web-crawled data like WebVision).

Key Insights and Results

The "More is Less" Paradox

Simply merging an entire generic open-set with a fine-grained target set often resulted in lower performance than using the target set alone. This confirms that distribution mismatch acts as an inhibitor for effective representation learning.

Semantic "Easter Eggs"

SimCore demonstrated a remarkable ability to find relevant data in unexpected places. For example, when the target was "Pets," SimCore successfully extracted animal images hidden within the "Places365" dataset, which is primarily focused on landscapes and buildings.

Accuracy improvements across various target domains (Pet, Birds, Action, Indoor) when using different open-sets for coreset sampling.

Performance Gains

SimCore demonstrated consistent, significant gains across various benchmarks:

  • Accuracy Boost: On average, SimCore improved linear evaluation accuracy by +10.5% compared to pretraining on the target dataset alone.
  • Versatility: The method proved effective regardless of the underlying SSL framework (e.g., SimCLR, BYOL, DINO) or model architecture (ResNet, ViT).
  • Downstream Success: The benefits extended beyond classification to complex tasks like object detection and semantic segmentation. For instance, in aircraft detection, SimCore improved mAP from 10.8 (target only) to 29.6.

Conclusion

SimCore provides a scalable and effective solution for fine-grained SSL by curating relevant coresets from massive, unlabeled open-sets. While the initial retrieval phase adds a step to the pipeline, the resulting performance gains across diverse downstream tasks justify the approach. Future work may explore dynamic sampling to update the coreset as the model's feature representations evolve during training.

Summary updated

BibTeX
@misc{kim2023coreset,
  author = {Sungnyun Kim and Sangmin Bae and Se-Young Yun},
  title = {{Coreset Sampling from Open-Set for Fine-Grained Self-Supervised Learning}},
  year = {2023},
  eprint = {2303.11101},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.11101},
}
Figure