Abstract
Contrastive learning is a self-supervised representation learning framework, where two positive views generated through data augmentation are made similar by an attraction force in a data representation space, while a repulsive force makes them far from negative examples. Non-contrastive learning, represented by BYOL and SimSiam, further gets rid of negative examples and improves computational efficiency. While learned representations may collapse into a single point due to the lack of the repulsive force at first sight, Tian et al. (2021) revealed through the learning dynamics analysis that the representations can avoid collapse if data augmentation is sufficiently stronger than regularization. However, their analysis does not take into account commonly-used feature normalization, a normalizer before measuring the similarity of representations, and hence excessively strong regularization may collapse the dynamics, which is an unnatural behavior under the presence of feature normalization. Therefore, we extend the previous theory based on the L2 loss by considering the cosine loss, which involves feature normalization. We show that the cosine loss induces sixth-order dynamics (while the L2 loss induces a third-order one), in which a stable equilibrium dynamically emerges even if there are only collapsed solutions with given initial parameters. Thus, we offer a new understanding that feature normalization plays an important role in robustly preventing the dynamics collapse.
Introduction
In self-supervised representation learning, "contrastive" methods prevent the model from taking the easy way out—mapping every image to the same constant vector, known as complete collapse—by using negative samples to push different images apart. However, "non-contrastive" methods like BYOL and SimSiam somehow avoid collapse using only positive pairs (different views of the same image).
Previous theoretical work suggested that a balance between data augmentation and regularization prevents collapse. However, that theory relied on L2 loss and predicted that if regularization (weight decay) is too strong, the model must collapse. In practice, researchers use feature normalization and cosine similarity, and these models seem much more robust. This paper aims to bridge that gap: how does normalization fundamentally change the math to prevent collapse?
Methods
This research utilizes gradient flow analysis—treating neural network training as a continuous physical system—to derive the "eigenvalue dynamics" of the model's parameters.
Cosine Loss Analysis
Unlike previous studies that simplified the math using L2 loss, this work tackles the highly non-linear cosine loss, which explicitly includes feature normalization ($ \Phi x / \|\Phi x\|_2 $). To make the mathematics tractable, the model is analyzed in the high-dimensional limit (where input dimension $d$ and hidden dimension $h$ both go to infinity), allowing the use of concentration inequalities where random vectors behave predictably like points on a sphere.
Validation
The theory is validated using both a simplified synthetic linear model (standard multivariate normal distribution) and a full ResNet-18 architecture trained on the CIFAR-10 dataset.
Theoretical Insights: The Power of Sixth-Order Dynamics
The most striking finding is that while L2 loss induces a third-order dynamic, feature normalization (cosine loss) induces a sixth-order dynamic. This higher complexity allows for the emergence of stable equilibria that simply do not exist in simpler models. The learning dynamics can be categorized into three distinct regimes based on the norms of the weights:
- Collapse Regime: Only the zero solution is stable.
- Acute Regime: New non-trivial equilibria begin to emerge.
- Stable Regime: The model robustly converges to a non-collapsed solution.
Even if a model starts in a state that looks like it will collapse, the shrinking of weight norms during training can trigger a "saddle-node bifurcation," moving the system from the Collapse regime into the Stable regime. This "dynamic escape" mechanism explains why normalization acts as a safeguard that bends the dynamics back toward a non-trivial solution.
Empirical Results
Numerical simulations confirm that the leading eigenvalues of the projection head follow the predicted paths, escaping the collapse region and stabilizing exactly where the sixth-order theory predicts.
As shown in the pilot study, SimSiam maintains high accuracy even when weight decay ($\rho$) is increased by 1000x over the default. This directly contradicts previous L2-based theories which predicted collapse under such conditions, but aligns perfectly with the proposed sixth-order dynamics theory.
Discussion and Future Work
While this paper explains why the model doesn't collapse, it doesn't fully explain the semantic quality of the learned features—i.e., why the resulting representations are actually good for downstream tasks. Furthermore, while much of the core mathematical proof relies on a linear encoder, empirical evidence suggests these findings generalize to non-linear encoders like ResNets. Future work may focus on a full non-linear theory and providing closed-form solutions for the entire training trajectory.
Summary updated