Self-Supervised Classification Network

Elad Amrani, Leonid Karlinsky, Alexander M. Bronstein

Introduction

Self-supervised learning (SSL) aims to extract meaningful features from unlabeled data. Currently, contrastive learning dominates the field by employing instance discrimination, where every image is treated as a unique class. While effective for feature learning, this paradigm is inherently at odds with classification tasks, as it penalizes the model for grouping semantically similar images (e.g., two different dogs) together.

Existing unsupervised classification methods attempt to bridge this gap through clustering, but they often involve complex multi-stage pipelines, memory banks, or specialized optimizations like Sinkhorn-Knopp to avoid degenerate solutions where all images are assigned to a single category. The Self-Classifier approach addresses these challenges by proposing a single-stage, end-to-end framework that learns labels and features simultaneously using standard backpropagation.

Methods

The Self-Classifier architecture processes two augmented views ($x_1, x_2$) of an image $x$ through a shared network consisting of a ResNet-50 backbone, a projection MLP, and a linear classifier.

The Self-Classifier architecture uses shared backbone and classifier components to process augmented views, optimized via cross-entropy with a uniform prior.

The core innovation lies in the loss function, which is designed to prevent model collapse without explicit negative sampling. By assuming a uniform class prior (classes are used equally) and a uniform sample prior (images in a batch are equally likely), the authors derive a cross-entropy variant that performs "double normalization." This involves a row-wise softmax for class probabilities and a column-wise softmax to ensure class distribution across the batch, effectively partitioning the data into $C$ distinct groups.

Furthermore, the authors utilize an "over-clustering" strategy, employing multiple classification heads with varying numbers of classes (e.g., 1K to 8K) to encourage the learning of more invariant and hierarchically aligned representations.

Key Results

The model was evaluated on ImageNet-1K, BREEDS, and transfer learning tasks (PASCAL VOC, COCO). Self-Classifier demonstrates superior performance compared to both representation learning and traditional clustering-based methods.

Comparison of Self-Classifier against state-of-the-art representation learning and clustering-based methods on ImageNet.

On ImageNet, Self-Classifier achieved a 41.1% top-1 unsupervised classification accuracy, a significant improvement over the previous state-of-the-art (SCAN). In linear evaluation, it reached 74.2%, remaining competitive with established SSL methods like SwAV and MoCo-v2. Notably, the method is highly efficient; 200 epochs of Self-Classifier training outperform the 925-epoch multi-stage pipeline of SCAN.

Transfer learning results on COCO showed a ~2% AP improvement over other SSL methods, suggesting that the "semantic" features learned through this classification-centric approach are particularly beneficial for downstream localization tasks.

Discussion and Limitations

Self-Classifier simplifies the SSL pipeline by removing the need for momentum networks, memory banks, or complex multi-stage training. It also provides quantitative evidence that self-supervised labels align well with human taxonomies (e.g., WordNet).

However, some limitations remain. The method requires a predefined number of classes ($C$), which may not be known in real-world unsupervised scenarios. Additionally, the model occasionally merges semantically close classes (e.g., different cat breeds), suggesting a need for further regularization. Finally, the robustness of the "uniform prior" assumption on highly imbalanced datasets remains an area for future investigation.

Summary updated

BibTeX
@inproceedings{amrani2022self,
  author = {Elad Amrani and Leonid Karlinsky and Alexander M. Bronstein},
  title = {{Self-Supervised Classification Network}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19821-2\_7},
}
Figure