How Does SimSiam Avoid Collapse Without Negative Samples? A Unified Understanding with Self-supervised Contrastive Learning

Chaoning Zhang, Kang Zhang, Chenshuang Zhang, Trung X. Pham, Chang D. Yoo, In So Kweon

In the rapidly evolving field of self-supervised learning (SSL), teaching models to understand images without human-labeled data is a primary goal. A common approach is to train a model so that two different "views" (e.g., crops or color shifts) of the same image yield similar mathematical representations. However, Siamese networks—the two-branch architectures typically used for this—often suffer from a critical failure mode known as collapse. In a collapsed state, the model finds a trivial "cheating" solution: it outputs the exact same constant vector for every single image, perfectly satisfying the similarity requirement while learning absolutely nothing useful.

To prevent this, traditional contrastive learning methods rely heavily on "negative samples"—forcing the representations of different images to be far apart. But a recent breakthrough method called SimSiam achieved competitive performance without using negative samples at all. It relied solely on positive pairs, a predictor network, and a "stop-gradient" operation. While the original SimSiam paper offered hypotheses for why this worked, a new study argues those explanations were flawed and provides a rigorous, unified understanding of how SimSiam avoids collapse.

The Mystery of SimSiam

The original SimSiam paper suggested that its success was due to "Alternating Optimization" and "Expectation over Augmentations." However, the authors of this new study refute these claims, demonstrating that they are logically flawed because they ignore the crucial directionality of the gradient flow during training.

Standard SimSiam Architecture

To truly understand SimSiam, we must look at its asymmetric architecture. One branch processes an image through an encoder and a predictor, while the other branch uses a stop-gradient operation to prevent weights from updating based on that pathway.

A New Lens: Vector Decomposition

To demystify the mechanics at play, the authors introduce a novel analytical framework based on Vector Decomposition. They break down the $l_2$-normalized representation vector ($Z$) into two distinct components:

  1. Center Vector ($o$): The average representation across the entire dataset (the "global mean").
  2. Residual Vector ($r$): The unique features that distinguish an individual sample from that global mean.

By analyzing the gradients of the loss function, the authors identify an "Extra Gradient" component introduced specifically by SimSiam’s asymmetric architecture (the combination of the predictor and the stop-gradient).

The Twin Pillars: De-centering and De-correlation

This extra gradient performs two implicit, critical operations that prevent collapse:

  • The "De-centering" Effect: One part of the extra gradient actively pushes the representation away from the global mean ($o$). This prevents the model from converging to a single, constant point in the representation space.
  • The "De-correlation" Effect: Another part of the extra gradient reduces the redundancy between different dimensions of the residual vector ($r$). This ensures the model utilizes its full representational "capacity" rather than collapsing all useful information into a single dimension.

Crucially, the authors prove mathematically that standard contrastive loss (InfoNCE)—which uses negative samples—and SimSiam are fundamentally doing the exact same thing. Negative samples explicitly provide these de-centering and de-correlation gradients, whereas SimSiam’s unique architecture provides them implicitly.

Experimental Proof: Testing the Architecture

To validate their theory, the authors conducted several "proof-of-concept" experiments on CIFAR-100, manipulating the SimSiam architecture to see if it would fail as predicted.

Mirror SimSiam: What happens if you swap which branch gets the stop-gradient?

Mirror SimSiam Architecture

By reversing the asymmetry (Mirror SimSiam), the model immediately collapses, resulting in a near-zero accuracy of ~1%. This proves that the specific directionality of SimSiam's asymmetry is non-negotiable for the extra gradient to function correctly.

Predictor Simplification: The authors also stripped down the complex multi-layer perceptron (MLP) predictor to isolate the minimal requirements for success:

  • Bias Layer Success: A predictor consisting of only a single bias layer achieved 49.82% Top-1 accuracy. Remarkably, the learned bias vector had a 0.99 cosine similarity with the actual center vector of the representations, confirming it functions directly as a de-centering mechanism.
  • FC Layer Performance: A single fully-connected (FC) layer achieved 64.82% accuracy, nearly matching the 66.9% of the original complex MLP predictor, proving its role in dimensional de-correlation.

Conclusion and Future Directions

This paper successfully bridges the gap between SimSiam and traditional contrastive learning. By proving that SimSiam implicitly performs de-centering and de-correlation—the exact same functions explicitly handled by negative samples in other methods—the authors provide a unified theory of SSL collapse prevention.

While the simplified predictors (like the single bias layer) successfully prevent collapse, they do not perfectly match the accuracy of the full MLP predictor, suggesting the MLP performs more complex de-correlation not fully captured by the simplest models. Furthermore, this analysis focuses heavily on $l_2$-normalized vectors. Nonetheless, this unified perspective paves the way for designing simpler, more efficient SSL objectives that explicitly target de-centering and de-correlation without relying on complex Siamese architectures or massive batches of negative samples.

Summary updated

BibTeX
@inproceedings{zhang2022how,
  author = {Chaoning Zhang and Kang Zhang and Chenshuang Zhang and Trung X. Pham and Chang D. Yoo and In So Kweon},
  title = {{How Does SimSiam Avoid Collapse Without Negative Samples? A Unified Understanding with Self-supervised Contrastive Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=bwq6O4Cwdl},
}
Figure