SimSiam (Simple Siamese) is a self-supervised learning framework that explores the hypothesis that a stop-gradient operation is the critical mechanism preventing representation collapse in contrastive learning. The architecture processes two augmented views of an image through an identical encoder and a predictor MLP on one branch, applying stop-gradient to the other branch to break symmetry.
Glossary
SimSiam

What is SimSiam?
SimSiam is a simple Siamese network architecture that achieves competitive self-supervised representation learning without requiring negative pairs, large batches, or momentum encoders.
By demonstrating that a momentum encoder and negative pairs are unnecessary for avoiding collapse, SimSiam provides a minimalist baseline for Siamese representation learning. The stop-gradient operation creates an implicit Expectation-Maximization-like optimization, where the encoder weights are updated to maximize similarity between the predictor output and the frozen target representation.
Key Features of SimSiam
SimSiam (Simple Siamese) demonstrates that stop-gradient is the essential mechanism preventing collapse in Siamese networks, eliminating the need for negative pairs, momentum encoders, or large batches.
Stop-Gradient Operation
The core innovation of SimSiam. The gradient flow is blocked on one branch of the Siamese network, treating its output as a fixed target. This asymmetric update prevents the encoder from finding a trivial collapsed solution where all outputs are constant. The stop-gradient operation is implemented by detaching the target branch from the computational graph, forcing the online branch to predict a non-differentiable representation without the target network adapting to make the task easier.
Predictor MLP
A small multi-layer perceptron appended only to the online branch, transforming its output before comparing it to the stop-gradient target. The predictor introduces an asymmetry that breaks the symmetry of the twin networks. Without it, the stop-gradient alone is insufficient—the model would still collapse. The predictor is typically a 2-layer MLP with a bottleneck hidden dimension, followed by batch normalization and ReLU activation.
Negative-Free Learning
SimSiam proves that negative pairs are not necessary for contrastive learning. Unlike SimCLR or MoCo, which require explicit negative samples to prevent collapse, SimSiam achieves stable training using only positive pairs (two augmented views of the same image). This dramatically simplifies the training pipeline by eliminating the need for large batch sizes, memory banks, or careful negative mining strategies.
Collapse Prevention Hypothesis
The paper posits that SimSiam implicitly implements an Expectation-Maximization (EM) optimization procedure. The stop-gradient operation introduces a form of alternating optimization between two sets of variables, preventing the representation from degenerating. This hypothesis challenges the prevailing assumption that momentum encoders (as in BYOL) are required for stability, showing that a simple stop-gradient suffices when combined with a predictor.
Batch Size Independence
Unlike SimCLR, which requires batch sizes of 4096 or larger to provide sufficient in-batch negatives, SimSiam trains effectively with batch sizes as small as 64 or 128. This makes the method accessible on hardware with limited GPU memory and removes the engineering complexity of distributed batch normalization or gradient accumulation across multiple devices.
Symmetric Loss Formulation
SimSiam computes a symmetric loss by feeding two augmented views through the network in both directions. View x1 is encoded by the online branch and predicted to match the stop-gradient encoding of view x2, and vice versa. The final loss is the average of both directions. This symmetry ensures the model learns consistent representations regardless of which view serves as the target.
SimSiam vs. Other Self-Supervised Methods
Comparing the core design choices and mechanisms for preventing representation collapse across leading joint-embedding frameworks.
| Feature | SimSiam | SimCLR | MoCo v2 | BYOL |
|---|---|---|---|---|
Negative Pairs Required | ||||
Momentum Encoder | ||||
Stop-Gradient Operation | ||||
Predictor MLP | ||||
Collapse Prevention Mechanism | Stop-gradient breaks symmetry | Large batch size for hard negatives | Momentum queue for consistent negatives | Asymmetric predictor with EMA target |
Minimum Batch Size for SOTA | 256 | 4096+ | 256 | 4096+ |
Memory Bank / Queue |
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.
Frequently Asked Questions
Clear, technical answers to the most common questions about Simple Siamese networks, the stop-gradient operation, and why negative pairs aren't always necessary for self-supervised learning.
SimSiam (Simple Siamese) is a self-supervised representation learning architecture that explores the hypothesis that stop-gradient operations are the critical component for preventing representation collapse, rather than momentum encoders or negative pairs. The architecture consists of two identical encoder networks sharing weights—a classic Siamese configuration. One branch receives a stop-gradient signal, creating an asymmetry that prevents the model from finding a trivial collapsed solution. Specifically, two augmented views of the same image are processed: one through an encoder followed by a prediction MLP, and the other through the same encoder with a stop-gradient applied. The predictor's output is trained to match the stopped-gradient branch's output using negative cosine similarity. This simple design achieves competitive results on ImageNet linear evaluation without requiring large batches, memory banks, or negative samples, demonstrating that the Siamese architecture itself, when combined with stop-gradient, implicitly introduces the necessary asymmetry for meaningful representation learning.
Related Terms
SimSiam's simplicity is best understood in the context of the broader self-supervised learning landscape. These related concepts highlight the architectural choices SimSiam eliminates and the failure mode it solves.
Representation Collapse
The primary failure mode that SimSiam is designed to prevent without negative pairs or momentum encoders. Collapse occurs when the encoder maps all inputs to a constant vector or a low-dimensional subspace, achieving zero loss trivially but destroying all semantic information.
- Complete collapse: All outputs become identical regardless of input
- Dimensional collapse: Outputs span only a few dimensions of the embedding space
- SimSiam proves that a stop-gradient operation alone breaks the symmetry that causes collapse
BYOL
Bootstrap Your Own Latent was the first architecture to demonstrate that negative pairs are not strictly necessary for self-supervised learning. BYOL uses a momentum encoder (exponential moving average of the online network) as a target to prevent collapse.
- Online network predicts target network's output via a predictor MLP
- SimSiam directly challenged BYOL's core assumption by removing the momentum encoder entirely
- The key insight: the predictor and stop-gradient are sufficient; momentum is an optimization aid, not a necessity
Momentum Encoder
A slowly evolving copy of the main encoder updated via exponential moving average (EMA): θ_target ← m·θ_target + (1-m)·θ_online, where m is typically 0.999. Used in MoCo and BYOL to maintain consistent representations.
- SimSiam's core contribution is demonstrating that this component is unnecessary for collapse prevention
- Removing the momentum encoder simplifies the architecture to a single network processing two views
- The stop-gradient operation on one branch provides sufficient asymmetry
Negative Pair
Two data samples from different semantic instances that contrastive models push apart in embedding space. Traditional methods like SimCLR require large batches (4096+) to provide sufficient negatives.
- SimSiam operates without any negative pairs, avoiding the computational burden of large batch sizes
- This eliminates the need for in-batch negatives or memory banks
- The architecture relies purely on maximizing agreement between positive pairs while the stop-gradient prevents degenerate solutions
SimCLR
A Simple Framework for Contrastive Learning of Visual Representations that relies on large batch sizes and strong data augmentation. SimCLR uses NT-Xent loss with in-batch negatives to pull positive pairs together while pushing all other samples apart.
- Requires batch sizes of 4096+ for competitive performance
- SimSiam achieves comparable results with batch size 256 and no negatives
- Both frameworks share the principle of maximizing invariance to data augmentation, but SimSiam strips away the contrastive mechanism
Stop-Gradient
The critical operation that SimSiam identifies as the essential component preventing collapse. Applied to one branch of the Siamese network, it blocks gradient flow: the target encoder receives no update from the loss on that pathway.
- Implemented as
detach()in PyTorch orstop_gradient()in TensorFlow - Creates an asymmetric update rule that prevents the encoder from finding the trivial collapsed solution
- SimSiam's hypothesis: stop-gradient introduces the necessary asymmetry that momentum encoders and negative pairs were indirectly providing

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