The Edge of Orthogonality: A Simple View of What Makes BYOL Tick

Pierre H. Richemond, Allison C. Tam, Yunhao Tang, Florian Strub, Bilal Piot, Felix Hill

Abstract

Self-predictive unsupervised learning methods such as BYOL or SimSiam have shown impressive results, and counter-intuitively, do not collapse to trivial representations. In this work, we aim at exploring the simplest possible mathematical arguments towards explaining the underlying mechanisms behind self-predictive unsupervised learning. We start with the observation that those methods crucially rely on the presence of a predictor network (and stop-gradient). With simple linear algebra, we show that when using a linear predictor, the optimal predictor is close to an orthogonal projection, and propose a general framework based on orthonormalization that enables to interpret and give intuition on why BYOL works. In addition, this framework demonstrates the crucial role of the exponential moving average and stop-gradient operator in BYOL as an efficient orthonormalization mechanism. We use these insights to propose four new closed-form predictor variants of BYOL to support our analysis. Our closed-form predictors outperform standard linear trainable predictor BYOL at 100 and 300 epochs (top-1 linear accuracy on ImageNet).

Introduction: The Mystery of Self-Prediction

In Self-Supervised Learning (SSL), the goal is to learn robust image representations without the need for human-annotated labels. This field is largely divided into two paradigms: contrastive methods, which use negative pairs to prevent the model from learning redundant features, and self-predictive methods like BYOL (Bootstrap Your Own Latent) and SimSiam.

For years, self-predictive methods were considered somewhat paradoxical. Without negative examples to provide a "push" away from trivial solutions, why don't these models simply learn to output a constant value for every image? This phenomenon, known as representation collapse, is the primary hurdle in SSL. While previous attempts to explain BYOL's success relied on complex differential equations, this research provides a simpler, "first principles" explanation using basic linear algebra.

The Linear Algebra of Orthogonality

The authors analyze BYOL by focusing on the role of the linear predictor. By making two key simplifying assumptions—using a linear predictor and an unnormalized $L^2$ distance—they uncover the underlying geometry of the system.

They prove that the optimal linear predictor is, in fact, an orthogonal projection. In this view, the predictor acts as a filter that identifies the most significant "directions" (eigenvectors) in the data. As training progresses, the predictor's rank expands, allowing the model to track an increasing number of independent features.

Implicit Orthonormalization

A central insight of the paper is that the "secret sauce" of BYOL is not just the predictor, but the interaction between the predictor, the stop-gradient operator, and the Exponential Moving Average (EMA). This combination acts as a computationally efficient form of Riemannian SGD. Essentially, the architecture itself implicitly enforces the constraints needed to keep features decorrelated and orthonormal, much like how Principal Component Analysis (PCA) prevents collapse by requiring components to be orthogonal.

Proposed Methods: Closed-Form Predictors

To validate their theoretical framework, the authors introduced four new closed-form predictors that replace the standard trainable neural network predictor in BYOL:

  1. Neumann Expansion (NE): Utilizes a Taylor-like expansion to approximate a matrix inverse.
  2. Visser & Newton-Schulz (NS): Iterative methods designed to compute the matrix square root of the feature covariance.
  3. Stiefel Predictor: Projects the predictor directly onto the Stiefel manifold (the space of matrices with orthonormal columns).

These predictors are not just theoretical constructs; they are designed to explicitly perform the orthonormalization that standard BYOL only achieves implicitly.

Experimental Results

The authors evaluated these methods on ImageNet-1k using a standard ResNet-50 backbone. Following the linear evaluation protocol, they trained a simple linear classifier on top of the frozen features to measure representation quality.

  • Performance Gains: At 100 epochs, the Newton-Schulz (NS) and Stiefel predictors achieved 68.8% top-1 accuracy, significantly outperforming the standard trainable BYOL baseline of 67.6%.
  • Long-term Stability: At 300 epochs, these closed-form predictors reached 72.2%, compared to the baseline's 71.5%.
  • Robustness: Unlike standard trainable predictors, which can be sensitive to hyperparameters, the proposed closed-form variants proved stable across a wide range of regularization (ridge) parameters.

Discussion and Future Work

While the core theoretical results assume a linear predictor, the authors argue that this captures the essential mechanics of the system, even when non-linear MLPs are used in practice. The success of these closed-form solutions suggests that the future of SSL may lie in replacing learnable components with fixed, mathematically-derived "retraction" steps that are more sample-efficient.

By demystifying the role of the predictor as an orthogonal projection mechanism, this work provides a clear geometric intuition for why self-predictive learning works and offers a path toward more stable and performant unsupervised models.

Summary updated

Abstract

Self-predictive unsupervised learning methods such as BYOL or SimSiam have shown impressive results, and counter-intuitively, do not collapse to trivial representations. In this work, we aim at exploring the simplest possible mathematical arguments towards explaining the underlying mechanisms behind self-predictive unsupervised learning. We start with the observation that those methods crucially rely on the presence of a predictor network (and stop-gradient). With simple linear algebra, we show that when using a linear predictor, the optimal predictor is close to an orthogonal projection, and propose a general framework based on orthonormalization that enables to interpret and give intuition on why BYOL works. In addition, this framework demonstrates the crucial role of the exponential moving average and stop-gradient operator in BYOL as an efficient orthonormalization mechanism. We use these insights to propose four new \emph{closed-form predictor} variants of BYOL to support our analysis. Our closed-form predictors outperform standard linear trainable predictor BYOL at $100$ and $300$ epochs (top-$1$ linear accuracy on ImageNet).
BibTeX
@inproceedings{richemond2023edge,
  author = {Pierre H. Richemond and Allison C. Tam and Yunhao Tang and Florian Strub and Bilal Piot and Felix Hill},
  title = {{The Edge of Orthogonality: A Simple View of What Makes BYOL Tick}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=GuVJ0hoHOl},
}
Figure