On the Effectiveness of Supervision in Asymmetric Non-Contrastive Learning

Jeongheon Oh, Kibok Lee

Abstract

Asymmetric Non-Contrastive Learning (ANCL) frameworks, such as SimSiam and BYOL, have revolutionized self-supervised representation learning by eliminating the need for negative samples. However, the integration of label-based supervision into these frameworks remains largely under-explored. This paper introduces SupSiam and SupBYOL, supervised extensions of popular ANCL methods. By balancing self-supervised signals with label-based supervision through a hybrid loss function, we demonstrate that these models significantly improve representation quality and transferability. Our theoretical analysis reveals a "Goldilocks zone" of supervision that reduces intra-class variance without inducing class collapse, leading to superior performance on a wide range of downstream tasks, particularly in fine-grained classification and object detection.

Introduction

In the field of representation learning, the primary goal is to map similar images to proximal points in a latent space. Historically, Contrastive Learning (CL) achieved this by pulling "positive" pairs (different views of the same image) together while pushing "negative" pairs (different images) apart. While effective, CL is computationally expensive, requiring large batches or complex memory banks to identify informative negative samples.

Asymmetric Non-Contrastive Learning (ANCL) simplified this paradigm. By utilizing asymmetric architectures—where one branch includes a predictor and the other does not—and employing a stop-gradient operation, ANCL methods like SimSiam and BYOL prevent representation collapse without requiring negative pairs. While supervision has been successfully integrated into CL (e.g., SupCon), its role in ANCL has been less clear. This research investigates how labels can be leveraged to enhance ANCL and provides a theoretical framework for understanding the resulting feature space.

Methodology: SupSiam and SupBYOL

We propose a supervised ANCL framework that adapts existing architectures through three primary mechanisms:

1. The Target Pool ($Q$)

To incorporate supervision, the model must access "supervised positives"—different images that share the same label. We maintain a queue-based memory bank (the target pool) that allows the model to sample same-class images even when the current training batch is small. This ensures a consistent stream of supervised signals throughout training.

2. Hybrid Loss Function

The training objective is defined by a convex combination of the standard self-supervised loss ($\ell_{ssl}$) and a new supervised loss ($\ell_{sup}$): $$\ell = \alpha \cdot \ell_{ssl} + (1 - \alpha) \cdot \ell_{sup}$$ The hyperparameter $\alpha$ serves as a critical control mechanism to balance the instance-specific details of self-supervision with the semantic clustering of label-based supervision.

3. Averaging Supervised Targets

Unlike standard supervised contrastive learning, which often treats every same-class pair individually, our framework averages multiple supervised targets from the pool before computing the loss. This averaging process leads to more stable gradients and produces representations that generalize better to unseen data.

Theoretical Insights

The Intra-Class Variance Trade-off

A core contribution of this work is the theoretical proof that supervision in ANCL acts as a mechanism to reduce intra-class variance. In a purely self-supervised setting, features of the same class may vary significantly. Supervision pulls these features together. However, there is a "Goldilocks" zone: if $\alpha$ is too high (no supervision), classes overlap; if $\alpha$ is too low (pure supervision), the model suffers from "class collapse," where it ignores unique image features in favor of label-only information. We find that $\alpha \approx 0.5$ typically provides the optimal balance.

Predictor as a Filter

Our analysis shows that in this supervised setup, the optimal predictor effectively functions as a low-pass filter. It smooths out augmentation noise and reduces class-specific noise by a factor controlled by the $\alpha$ parameter, effectively "cleaning" the latent space for downstream tasks.

Experimental Results

Transferability and Generalization

We pretrained our models on ImageNet-100 and CIFAR-10/100 and evaluated them across 11 downstream datasets. SupBYOL and SupSiam outperformed their self-supervised counterparts and Supervised Contrastive Learning (SupCon) on 9 out of 11 tasks.

Fine-Grained and Object Detection Performance

The benefits of supervised ANCL were most evident in fine-grained classification tasks, where distinguishing between similar sub-categories is essential. For instance, on the Stanford Dogs dataset, SupSiam achieved 64.65% accuracy, a significant jump from SimSiam’s 54.57%. In object detection on PASCAL VOC 2007, SupSiam reached an AP50 of 80.28, surpassing both SimSiam (79.82) and SupCon (79.44).

Conclusion

This study demonstrates that supervision, when applied correctly within an asymmetric non-contrastive framework, significantly enhances the robustness and transferability of learned representations. By navigating the trade-off between instance-specific details and class-level semantics, SupSiam and SupBYOL set a new standard for supervised representation learning. Future work will explore more sophisticated target pool designs, such as learnable class prototypes, and extend the theoretical analysis beyond linear assumptions to fully capture the dynamics of deep non-linear networks.

Summary updated

BibTeX
@inproceedings{oh2024effectiveness,
  author = {Jeongheon Oh and Kibok Lee},
  title = {{On the Effectiveness of Supervision in Asymmetric Non-Contrastive Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=iC8l9DI1ZX},
}
Figure