Multi-Label Self-Supervised Learning with Scene Images

Ke Zhu, Minghao Fu, Jianxin Wu · DOI

Abstract

Traditional self-supervised learning (SSL) frameworks, such as MoCo and SimCLR, are primarily designed for object-centric datasets like ImageNet, where each image is dominated by a single semantic category. When applied to complex scene-level images (e.g., MS-COCO), these methods struggle with the inherent multi-label nature of the data. This paper introduces Multi-Label Self-supervised learning (MLS), a streamlined approach that treats scene-image representation as a multi-label classification task rather than a instance-level matching problem. By leveraging dual dictionaries and a Binary Cross Entropy (BCE) loss, MLS achieves state-of-the-art results on downstream detection and segmentation tasks while remaining significantly simpler to implement than existing dense-matching or object-discovery methods.

Introduction

Most popular SSL methods rely on a contrastive approach: they take two augmented views of the same image and attempt to pull them together in a latent feature space while pushing them away from all other images in a batch or dictionary. This "one-versus-all" strategy, often implemented via the InfoNCE loss, assumes that each query has exactly one correct match.

However, real-world scene images are complex and typically contain multiple distinct objects (e.g., a person, a horse, and a bus). For these images, the mutual exclusivity enforced by standard contrastive losses creates a semantic mismatch. To address this, previous scene-centric SSL methods have relied on "dense matching" (comparing every pixel or patch) or "unsupervised object discovery" (using expensive algorithms like Selective Search to find object boxes). While effective, these methods are computationally heavy and difficult to scale. MLS asks a fundamental question: Can we learn high-quality scene representations by simply treating the problem as multi-label classification?

Methodology

The MLS framework is built upon the MoCo-v2 architecture but introduces three critical innovations to handle multi-label data:

1. Dual Dictionaries

The system maintains two separate queues (dictionaries) of features from previous training batches:

  • $Q_g$: Contains features directly from the backbone encoder.
  • $Q_z$: Contains features after they have passed through an MLP projector.

2. Pseudo-Labeling via Retrieval

For a given image patch, the model extracts its backbone features ($g_1$) and identifies the top-$k$ nearest neighbors within the dictionary $Q_g$. These $k$ neighbors are treated as "pseudo-positives"—images that likely share at least one semantic concept with the query. This mechanism allows the model to discover semantic relationships across the dataset without human supervision.

3. Multi-Label Classification Loss

Instead of the standard softmax-based contrastive loss, MLS utilizes a Binary Cross Entropy (BCE) loss. In this setup, the features stored in $Q_z$ act as a set of dynamic classifiers. The model attempts to predict which items in the dictionary are the retrieved pseudo-positives. Because BCE does not force classes to be mutually exclusive, it naturally allows a single image patch to be associated with multiple different semantic concepts simultaneously.

4. Hybrid Optimization

To maintain training stability, the authors combine the new multi-label BCE loss with the traditional InfoNCE loss. This hybrid approach ensures the model benefits from both instance-level discrimination and multi-label semantic discovery.

Experimental Results

Pretraining and Benchmarks

The authors pretrained the model on the MS-COCO (train2017) dataset. Notably, they did not use ImageNet for pretraining, focusing exclusively on scene-level data to demonstrate the method's efficacy in complex environments.

Object Detection and Segmentation

After 800 epochs of pretraining on COCO, MLS achieved impressive results on downstream benchmarks:

  • MS-COCO: Reached 40.5% $AP^{bbox}$ and 39.1% $AP^{seg}$, outperforming more complex specialized methods like DenseCL and SoCo.
  • VOC0712: On the Pascal VOC detection task, MLS improved upon the MoCo-v2 baseline by 5.3% mAP.

Classification and Transfer Learning

MLS demonstrated strong generalization across a suite of eight datasets. It showed a particular advantage in multi-label scenarios (VOC2007) and fine-grained classification tasks, such as a 3.0% accuracy boost on the Indoor67 dataset compared to standard contrastive baselines.

Discussion and Key Insights

The Advantage of BCE

The primary insight of this work is that the mutual exclusivity of standard SSL losses is a limitation for scene-level data. By using BCE, the model can acknowledge that a patch may contain multiple objects (e.g., a "person" and a "car") without the concepts competing for probability mass.

Feature Stability

The authors observed that backbone features ($g$) are more stable and effective for finding semantic neighbors (pseudo-labeling), whereas the MLP-projected features ($z$) are better suited for the classification task itself. This separation of concerns within the dual-dictionary system is vital for the framework's performance.

Automatic Semantic Discovery

Qualitative visualizations of the top-$k$ retrieval mechanism confirm that the model successfully finds images containing similar objects (e.g., donuts, tennis players, or vehicles) across the unlabeled dataset, effectively performing unsupervised category discovery.

Conclusion and Future Work

MLS provides a simple, single-stage process for scene-image SSL that is easier to deploy than multi-stage or box-dependent methods. While the current implementation requires a hybrid loss for stability, it opens the door for further research into non-exclusive losses in self-supervised learning. Future work may explore whether this multi-concept approach can also benefit traditional single-label datasets like ImageNet by capturing the secondary objects and backgrounds often ignored by standard contrastive methods.

Summary updated

BibTeX
@misc{zhu2023multi,
  author = {Ke Zhu and Minghao Fu and Jianxin Wu},
  title = {{Multi-Label Self-Supervised Learning with Scene Images}},
  year = {2023},
  eprint = {2308.03286},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.03286},
}
Figure