NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

EnSiam: Self-Supervised Learning With Ensemble Representations

Kyoungmin Han, Minsik LeearXiv 2023 · DOI

Introduction

Self-supervised learning (SSL) has transformed computer vision by enabling models to learn robust features from unlabeled data. Among the various SSL frameworks, SimSiam stands out for its simplicity, as it avoids the need for negative samples or momentum encoders. However, SimSiam often suffers from training instability and high sensitivity to hyperparameters and augmentation strategies. This paper introduces EnSiam (Ensemble Siamese), a framework that stabilizes SimSiam by leveraging ensemble representations from multiple augmented views. By averaging these representations to create a stable "pseudo-label," EnSiam reduces gradient variance and achieves state-of-the-art performance across multiple benchmarks.

The Problem: Instability in Siamese Networks

SimSiam's core mechanism involves a Siamese network where one branch (the "student") predicts the output of another branch (the "teacher") for different augmentations of the same image. The authors identify that the instability in SimSiam arises from the teacher branch providing noisy targets. If the target representation is inconsistent or of low quality, the student branch learns sub-optimal features, potentially leading to training collapse. This sensitivity makes SimSiam difficult to tune, especially when dealing with small batch sizes or aggressive data augmentations.

Methodology: Ensemble Representations

EnSiam addresses these limitations by drawing inspiration from ensemble techniques in knowledge distillation. The process involves four key steps:

  1. Multi-view Generation: Instead of the standard two views, EnSiam generates $K$ augmented views (e.g., $K=4$) from a single image $x$.
  2. Ensemble Representation: All $K$ views are processed by the shared encoder. The framework then calculates the average of these feature vectors to produce a single, stable ensemble representation ($\bar{f}$).
  3. Learning Objective: Each individual view's prediction is trained to match this ensemble average, which serves as a stable "pseudo-label."
  4. Stop-Gradient: Crucially, a stop-gradient operation is applied to the ensemble target to prevent the model from collapsing to trivial solutions.
Comparison of SimSiam, SimSiam K-aug, and EnSiam architectures.

The mathematical foundation of EnSiam is rooted in variance reduction analysis. The authors prove that using the mean of multiple views as a target strictly reduces the variance of the gradients compared to the standard pairwise approach used in SimSiam. This reduction in noise leads to more stable and efficient training.

Experimental Results

EnSiam was evaluated on standard benchmarks including CIFAR-10/100, STL-10, Tiny-ImageNet, and ImageNet-1k.

Performance on ImageNet-1k

On the ImageNet-1k dataset, the gold standard for image classification, EnSiam achieved a Top-1 accuracy of 71.2% over 200 epochs. This performance surpasses the original SimSiam (70.0%) and even more complex methods like BYOL (70.6%) and SwAV (69.1%).

Linear classification results on ImageNet-1k.

Key Insights

  • Averaging vs. Augmentation: The authors compared EnSiam to "SimSiam K-aug," a version that uses more augmentations without averaging them. EnSiam performed significantly better, proving that the ensemble averaging—not just seeing more data—is the primary driver of improvement.
  • Robustness to Small Batches: One of the most impressive findings is EnSiam's performance with tiny batch sizes. While most SSL methods degrade sharply as batch size drops, EnSiam remains highly effective even with a batch size as small as 8.
  • Robustness to Strong Augmentation: Standard SimSiam often fails when data augmentations are too aggressive. EnSiam maintains much higher accuracy under these "very strong" settings because the ensemble average filters out the noise introduced by extreme transformations.

Conclusion

EnSiam provides a robust and stable alternative to standard Siamese SSL frameworks. By incorporating ensemble representations, it mitigates the noise inherent in single-view targets, leading to better feature learning and increased resilience to hyperparameter choices. While it introduces some computational overhead due to processing multiple views, its stability and performance gains—especially in resource-constrained settings—make it a significant advancement in self-supervised learning.

Summary updated

BibTeX
@misc{han2023ensiam,
  author = {Kyoungmin Han and Minsik Lee},
  title = {{EnSiam: Self-Supervised Learning With Ensemble Representations}},
  year = {2023},
  eprint = {2305.13391},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.13391},
}
Figure