[Paper Review] The Mechanism of Prediction Head in Non-contrastive Self-supervised Learning
This paper uncovers the mechanism by which a trainable prediction head prevents dimensional collapse in non-contrastive self-supervised learning. Through empirical and theoretical analysis, it identifies two key effects—substitution and acceleration—where the prediction head enables neural networks to learn diverse features by allowing stronger features to substitute for weaker ones and accelerating their learning, thereby avoiding trivial collapsed solutions despite their existence in the loss landscape.
Recently the surprising discovery of the Bootstrap Your Own Latent (BYOL) method by Grill et al. shows the negative term in contrastive loss can be removed if we add the so-called prediction head to the network. This initiated the research of non-contrastive self-supervised learning. It is mysterious why even when there exist trivial collapsed global optimal solutions, neural networks trained by (stochastic) gradient descent can still learn competitive representations. This phenomenon is a typical example of implicit bias in deep learning and remains little understood. In this work, we present our empirical and theoretical discoveries on non-contrastive self-supervised learning. Empirically, we find that when the prediction head is initialized as an identity matrix with only its off-diagonal entries being trainable, the network can learn competitive representations even though the trivial optima still exist in the training objective. Theoretically, we present a framework to understand the behavior of the trainable, but identity-initialized prediction head. Under a simple setting, we characterized the substitution effect and acceleration effect of the prediction head. The substitution effect happens when learning the stronger features in some neurons can substitute for learning these features in other neurons through updating the prediction head. And the acceleration effect happens when the substituted features can accelerate the learning of other weaker features to prevent them from being ignored. These two effects enable the neural networks to learn all the features rather than focus only on learning the stronger features, which is likely the cause of the dimensional collapse phenomenon. To the best of our knowledge, this is also the first end-to-end optimization guarantee for non-contrastive methods using nonlinear neural networks with a trainable prediction head and normalization.
Motivation & Objective
- To understand why neural networks trained with stochastic gradient descent avoid trivial collapsed solutions in non-contrastive self-supervised learning, despite such solutions being globally optimal.
- To investigate the role of the prediction head in breaking symmetry and enabling learning of diverse, non-collapsed representations.
- To provide a theoretical framework explaining the implicit bias introduced by the prediction head in non-contrastive contrastive-like training.
- To characterize the dynamics of feature learning in the presence of an identity-initialized prediction head, particularly the rise and fall of off-diagonal entries.
Proposed method
- Empirically study the training dynamics of a prediction head initialized as an identity matrix with only off-diagonal entries updated.
- Theoretically model the training process in four phases: learning stronger features, substitution effect, acceleration effect, and convergence.
- Define and analyze the substitution effect, where learning in one neuron enables the prediction head to substitute for learning in another neuron.
- Define and analyze the acceleration effect, where substituted features accelerate learning of weaker features, preventing them from being ignored.
- Use a simplified linear model to derive optimization guarantees for nonlinear neural networks with a trainable prediction head and batch normalization.
- Leverage tensor power method bounds to analyze gradient updates and convergence under varying learning rates and initialization conditions.
Experimental results
Research questions
- RQ1Why do neural networks trained via SGD avoid dimensional collapse in non-contrastive self-supervised learning, even when collapsed solutions are globally optimal?
- RQ2How does the prediction head enable learning of diverse features when it could otherwise learn an identity mapping and render itself ineffective?
- RQ3What is the role of the off-diagonal entries in the prediction head during training, and why do they follow a consistent rise and fall trajectory?
- RQ4How do the substitution and acceleration effects of the prediction head jointly prevent feature forgetting and enable full representation learning?
- RQ5Can we provide an end-to-end optimization guarantee for non-contrastive self-supervised learning with a trainable prediction head and normalization?
Key findings
- When the prediction head is initialized as an identity matrix with only off-diagonal entries trained, the network still learns competitive representations, demonstrating that the head's structure—not just its parameters—matters.
- A consistent rise and fall trajectory of off-diagonal entries in the prediction head is observed during training, suggesting dynamic feature substitution.
- The substitution effect occurs when stronger features in one neuron can be used to substitute for learning in another neuron via updates to the prediction head.
- The acceleration effect occurs when substituted features speed up the learning of weaker features, preventing them from being ignored during optimization.
- Together, the substitution and acceleration effects allow the network to learn all features rather than focusing only on the strongest, which explains the avoidance of dimensional collapse.
- The paper provides the first end-to-end optimization guarantee for nonlinear neural networks with a trainable prediction head and normalization in non-contrastive self-supervised learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.