Benchmarking Representation Learning for Natural World Image Collections

Grant Van Horn, Elijah Cole, Sara Beery, Kimberly Wilber, Serge J. Belongie, Oisin Mac Aodha

TL;DR

This paper introduces two new large-scale datasets, iNat2021 and NeWT, to better benchmark self-supervised learning (SSL) for fine-grained natural world image classification. They find that while SSL has advanced, supervised methods still generally outperform SSL on these challenging tasks, though specific task types show promise for SSL.

What Problem Does This Paper Address?

Self-supervised learning (SSL) has made impressive strides in learning rich image representations without explicit labels, often achieving near-supervised performance with minimal fine-tuning. However, most SSL research has focused on standard datasets like ImageNet. The authors argue that fine-grained visual categorization tasks, such as identifying specific species of plants or animals, are a more challenging and informative testbed for SSL. These domains are rich in data (e.g., from citizen science platforms) but labeling is expensive and time-consuming, making SSL particularly relevant. Existing benchmarks for these tasks are either too small or too narrowly focused on species identification. This paper aims to bridge this gap by providing new, larger, and more diverse datasets to rigorously evaluate SSL's ability to generalize to complex natural world visual understanding tasks.

Methods

The core of the paper involves creating new datasets and then evaluating various representation learning methods on them.

  • Dataset Creation:
    • iNat2021: A large-scale dataset comprising 2.7 million images from 10,000 species, sourced from the iNaturalist citizen science platform. It's designed to be significantly larger than previous iNaturalist datasets, with at least 152 images per species in the training set.
  • NeWT (Natural World Tasks): A novel benchmark suite of 164 binary classification tasks. These tasks go beyond simple species identification and include categories like "Appearance - Age," "Appearance - Health," "Behavior," "Context," and "Gestalt," often curated with domain expert input.
  • Representation Learning Evaluation:
    • Feature Extractors: The authors primarily use ResNet50 as the backbone for feature extraction. Some experiments also modify the width multiplier of the network.
  • Pretraining Datasets: Features are pre-trained on ImageNet, iNat2018, iNat2021, and iNat2021 mini.
  • Training Objectives: Both supervised (cross-entropy loss) and several leading SSL objectives (SimCLR, SimCLR v2, SwAV, MoCo v2) are used.
  • Evaluation Protocol: For downstream tasks, a linear classifier (SVM or linear SVM) is trained on top of the extracted features. The performance is measured by the accuracy of this linear classifier. The baseline for comparison is "off-the-shelf" supervised ImageNet features.

Datasets

  • Training/Pretraining Datasets:
    • ImageNet
    • iNat2018
    • iNat2021 (newly introduced, 2.7M images, 10k species)
    • iNat2021 mini (a smaller version of iNat2021)
  • Evaluation Datasets:
    • Flowers102
    • CUB (Caltech-UCSD Birds)
    • CUBExpert (cleaned CUB)
    • NABirds
    • StanfordDogs
    • StanfordCars
    • NeWT (newly introduced benchmark suite of 164 tasks)

Key Insights and Ideas

  • Fine-grained tasks are a tough test for SSL: Despite significant progress, current SSL methods still lag behind supervised methods when evaluated on challenging fine-grained natural world tasks. This suggests that SSL's generalization capabilities are not yet fully on par with supervised learning in these complex domains.
  • ImageNet pretraining is often better for SSL: SSL methods pre-trained on ImageNet tend to perform better on downstream tasks than those pre-trained on iNat2021, even for bird-related datasets where iNaturalist has vastly more species and images. This might be due to SSL's default augmentation strategies being better suited for objects that occupy a larger portion of the image, as is common in ImageNet.
  • Not all tasks are created equal for SSL: While SSL struggles with many fine-grained tasks, it shows promise on "Gestalt" tasks in NeWT (e.g., judging image quality or composition). This indicates that SSL might be better at learning holistic image properties rather than specific object attributes or species.
  • Data scale doesn't always translate to downstream gains for SSL: Increasing the training data size for iNat2021 (from mini to full) significantly boosts performance on the iNat2021 test set, but the improvement on downstream fine-grained datasets and NeWT is much smaller for both supervised and SSL models. This suggests that simply having more data might not be enough to overcome fundamental representation learning challenges for these tasks.
  • Supervised iNaturalist data is powerful: Supervised pretraining on iNaturalist datasets (iNat2018, iNat2021) yields strong performance on NeWT tasks, particularly those related to species appearance and behavior, often outperforming ImageNet supervised features.

Key Results

  • Supervised ImageNet features are a strong baseline: They often outperform SSL features across various fine-grained datasets and NeWT tasks.
  • iNat2021 supervised pretraining excels on NeWT: The supervised iNat2021 model achieved the best average accuracy (0.806) on the NeWT dataset, outperforming ImageNet supervised models (0.744).
  • SSL performance on fine-grained datasets: For most SSL methods, performance is not close to supervised methods. However, SwAV trained on ImageNet is a strong contender, sometimes outperforming supervised methods (e.g., on Stanford Cars).
  • SSL on NeWT: The SwAV model trained on ImageNet achieved the best average accuracy (0.733) among SSL methods on NeWT.
  • Data scaling impact: Increasing iNat2021 training data from mini to full improved iNat2021 test accuracy by ~11 percentage points, but downstream task improvements were much smaller.

Limitations and Future Work

  • SSL vs. Supervised Gap: The paper highlights that a significant gap remains between supervised and self-supervised learning performance on fine-grained natural world tasks.
  • ImageNet Overfitting: The authors suggest that SSL training settings might be overfit to ImageNet, potentially due to hyperparameters or augmentation strategies, which could explain why they don't always transfer well to iNaturalist-based datasets.
  • NeWT Task Specificity: The poor performance on NeWT's "Counting" tasks suggests that current models might struggle with tasks that deviate significantly from standard classification, or that the classifier-based approach is not ideal for these specific problems.
  • Future Work: The paper positions iNat2021 and NeWT as valuable resources for tracking progress in SSL. The authors implicitly suggest that future SSL methods should aim to close the performance gap on these challenging, real-world tasks and potentially adapt their strategies for different data distributions and task types. Further investigation into why ImageNet pretraining is more effective for SSL on natural world tasks is also warranted.

Summary updated

BibTeX
@inproceedings{horn2021benchmarking,
  author = {Grant Van Horn and Elijah Cole and Sara Beery and Kimberly Wilber and Serge J. Belongie and Oisin Mac Aodha},
  title = {{Benchmarking Representation Learning for Natural World Image Collections}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.01269},
}
Figure