SimSiam is a self-supervised learning method that trains a siamese network on two differently augmented views of the same image. Its core innovation is the stop-gradient operation, which prevents a collapse to trivial solutions. The architecture uses a predictor head on one branch to match the output of the other, creating a simple yet effective learning signal from positive pairs alone.
Glossary
SimSiam

What is SimSiam?
SimSiam (Simple Siamese Network) is a foundational self-supervised learning architecture that learns visual representations without negative pairs, momentum encoders, or large batch sizes.
This approach eliminates the need for negative pairs (as in contrastive learning) and the momentum encoder used in methods like BYOL. It demonstrates that architectural asymmetry, via the predictor and stop-gradient, is sufficient for learning useful representations. SimSiam is a key reference in the study of non-contrastive learning and provides a simple baseline for continual self-supervised learning on data streams.
Key Features of SimSiam
SimSiam (Simple Siamese Network) is a minimalist self-supervised learning architecture that achieves competitive representation learning without the complexity of negative pairs, large batch sizes, or momentum encoders. Its core innovation lies in architectural asymmetry and a stop-gradient operation.
Siamese Network Architecture
SimSiam uses a siamese network, a structure with two identical subnetworks (encoders) that process two different augmented views of the same input image. The encoders share weights. The core objective is to make the representations of these two views agree with each other, learning an invariant representation to the applied augmentations. This architecture is the foundation for defining the positive pair without external data.
Predictor Head & Architectural Asymmetry
A critical component preventing representational collapse is the predictor head, a small multi-layer perceptron (MLP) attached to one side of the siamese network. This creates architectural asymmetry: one view passes through the encoder and predictor, while the other passes only through the encoder. The predictor learns to output a projection that matches the target projection from the other view. This asymmetry prevents a trivial, collapsed solution where both networks output constant vectors.
Stop-Gradient Operation
The stop-gradient (stopgrad) operation is the mechanism that makes SimSiam's asymmetric learning stable. In the loss calculation, the gradient is not backpropagated through the target branch's encoder. Formally, the loss is: L = -sim(p(z₁), sg(z₂)), where p() is the predictor, z are projections, and sg() is stopgrad. This treats one side's output as a constant target, akin to a slowly moving teacher in distillation, which empirically prevents collapse without negative samples.
Elimination of Negative Pairs
Unlike contrastive methods like SimCLR or MoCo, SimSiam is a non-contrastive method. It does not require negative pairs—explicit examples of dissimilar data used to push representations apart. This simplifies the training objective and removes the need for large batch sizes or memory banks, which are typically used to provide a rich set of negatives. Learning is driven purely by maximizing similarity between positive views, enabled by the stopgrad and predictor.
Symmetrized Loss
The training loss is symmetrized to ensure both augmented views contribute equally to learning. For a batch of images, two random augmentations are created for each. The loss is computed twice: first with view A predicting view B, then with view B predicting view A. The final loss is the average of these two terms: L = ½ [L(A→B) + L(B→A)]. This ensures the encoder learns a consistent representation regardless of which view serves as the predictor input.
Relation to Continual Learning
SimSiam's simplicity makes it a compelling candidate for continual self-supervised learning. Its lack of a dynamic dictionary or negative queue avoids complications with non-stationary data streams. However, applying it continually introduces challenges:
- Feature Drift: The encoder's representation space can drift over time.
- Predictor Forgetting: The predictor head may become misaligned with the evolving encoder.
- Augmentation Consistency: Maintaining a consistent augmentation strategy across tasks is critical for stable learning. Research explores integrating SimSiam with experience replay or regularization to mitigate catastrophic forgetting.
SimSiam vs. Other Self-Supervised Methods
A technical comparison of SimSiam's design against other prominent self-supervised learning frameworks, highlighting key architectural differences, resource requirements, and training mechanisms.
| Architectural Feature / Requirement | SimSiam | Contrastive (SimCLR, MoCo) | Non-Contrastive (BYOL, Barlow Twins) |
|---|---|---|---|
Requires Negative Pairs | |||
Requires Large Batch Sizes | |||
Uses a Momentum Encoder | |||
Core Asymmetry Mechanism | Stop-Gradient + Predictor | Negative Sample Contrast | Momentum Encoder (BYOL) / Redundancy Reduction (Barlow Twins) |
Primary Loss Function | Cosine Similarity (Negative MSE) | InfoNCE / NT-Xent | MSE (BYOL) / Redundancy Loss (Barlow Twins) |
Typical Batch Size for 100-epoch ImageNet Pretraining | 256 | 4096+ (SimCLR), 256 (MoCo w/ dictionary) | 4096 (BYOL), 2048 (Barlow Twins) |
Key Innovation for Stability | Stop-gradient operation on one branch | Large batch size or dynamic dictionary (MoCo) | Momentum encoder (BYOL), Cross-correlation matrix (Barlow Twins) |
Risk of Model Collapse | Mitigated by stop-gradient & predictor | Mitigated by negative pairs | Mitigated by architectural asymmetry (BYOL) or covariance regularization (Barlow Twins) |
Frequently Asked Questions
Key questions about SimSiam, a foundational architecture for learning representations from unlabeled data without negative pairs or momentum encoders.
SimSiam (Simple Siamese Network) is a self-supervised learning architecture that learns useful visual representations from unlabeled images without requiring negative pairs, large batch sizes, or a momentum encoder. It works by applying two different random augmentations to the same image, creating two views. These views are processed by an identical encoder network (a Siamese architecture). One branch's output passes through a predictor head—a small MLP—which tries to predict the representation of the other branch. Critically, a stop-gradient operation is applied to the target branch, meaning its weights are not updated based on the predictor's loss. This asymmetry prevents a representational collapse where both branches output constant vectors. The model is trained to minimize the negative cosine similarity between the prediction and the target, effectively pulling the representations of the two augmented views together.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
SimSiam is a pivotal architecture in self-supervised learning. Understanding its core components and related methods provides context for its unique contributions to learning representations without negative pairs.
Contrastive Learning
Contrastive learning is a self-supervised technique that trains a model to produce similar embeddings for semantically related data points (positive pairs) and dissimilar embeddings for unrelated points (negative pairs). It relies on a loss function, like InfoNCE, that explicitly compares samples.
- Core Mechanism: Pulls positive pairs together and pushes negative pairs apart in the embedding space.
- Key Challenge: Requires careful construction of negative pairs, often needing large batch sizes or memory banks.
- Example: SimCLR uses two augmented views of the same image as a positive pair and all other images in the batch as negatives.
SimSiam is notable for achieving strong performance without this explicit negative sampling mechanism.
BYOL (Bootstrap Your Own Latent)
BYOL is a pioneering non-contrastive self-supervised method that, like SimSiam, eliminates the need for negative pairs. It uses two neural networks: an online network and a target network.
- Architecture: The online network tries to predict the target network's output of a differently augmented view of the same image.
- Key Innovation: The target network's parameters are an exponential moving average (EMA) of the online network, providing stable, slowly evolving targets.
- Difference from SimSiam: While both avoid negatives, BYOL uses this momentum encoder (EMA) and does not use a stop-gradient operation on one branch. SimSiam simplifies this by using a stop-gradient and a predictor head on a single symmetric network.
Stop-Gradient Operation
The stop-gradient operation is a critical, simple trick in SimSiam that prevents a representational collapse where all outputs become identical. It is applied to one branch of the siamese network during the loss calculation.
- Function: It treats the output from one branch (e.g., from the
view 2encoder) as a constant target. Gradients are not backpropagated through this branch for that part of the loss. - Effect: It creates an asymmetric gradient flow, forcing the other branch (with the predictor) to learn meaningful representations to match the static target.
- Analogy: Acts like a simplified, detached momentum encoder without the need for an EMA update. This is a key factor enabling SimSiam's simplicity and stability.
Non-Contrastive Learning
Non-contrastive learning is a category of self-supervised methods that learn useful representations without directly comparing negative samples. SimSiam, BYOL, Barlow Twins, and VICReg belong to this family.
- Core Principle: Avoid the computational and theoretical complexity of managing negative pairs. Instead, they prevent collapse through architectural asymmetry (e.g., predictor heads, stop-gradient) and regularization terms (e.g., redundancy reduction).
- Common Techniques:
- Predictor Heads: Small MLPs (as in SimSiam/BYOL) that break symmetry.
- Regularization Losses: Terms that enforce variance, covariance, or decorrelation in the embedding dimensions.
- Advantage: Often more memory-efficient and can work with smaller batch sizes than contrastive methods.
Siamese Network
A Siamese network is a neural architecture consisting of two or more identical subnetworks (they share weights) that process different inputs. It's foundational to SimSiam and many contrastive methods.
- Purpose: To process two or more inputs (e.g., different augmented views of an image) and produce comparable output vectors.
- In SimSiam: The network has two identical encoder branches (
f). One branch's output passes through an additional predictor head (h), and its output is compared to the stop-gradient output of the other branch. - Key Feature: Weight sharing ensures the same feature extraction logic is applied to both inputs, which is essential for learning invariant representations.
Representational Collapse
Representational collapse is a failure mode in self-supervised learning where a model learns a trivial solution, such as mapping all inputs to the same constant vector, which minimizes the loss without learning useful features.
- Cause in Siamese Nets: Without a prevention mechanism, symmetric networks can quickly converge to this trivial solution.
- Prevention Methods:
- Contrastive Loss: Uses negative pairs to discourage collapse (e.g., SimCLR).
- Architectural Asymmetry: Introduces a component that breaks symmetry, like SimSiam's predictor head and stop-gradient.
- Regularization: Methods like Barlow Twins add a term to decorrelate embedding dimensions.
SimSiam's primary contribution is demonstrating that simple asymmetry (predictor + stop-gradient) is sufficient to avoid collapse, removing the need for negatives, large batches, or momentum encoders.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us