FroSSL: Frobenius Norm Minimization for Self-Supervised Learning

Oscar Skean, Aayush Dhakal, Nathan Jacobs, Luis Gonzalo Sanchez GiraldoSubmission to ICLR 2024 · Rejected

TL;DR

FroSSL is a self-supervised learning (SSL) objective that avoids representation collapse by minimizing the log Frobenius norm of normalized embedding covariance matrices alongside a standard mean-squared error invariance loss. By naturally balancing variance and invariance without sensitive trade-off hyperparameters, FroSSL accelerates training dynamics and achieves significantly faster convergence than existing SSL methods while remaining competitive on downstream benchmarks.

What Problem Does This Paper Address?

Self-supervised learning (SSL) trains neural networks to learn meaningful semantic representations without human labels by encouraging augmented views of the same image to have similar representations. A persistent challenge across SSL is informational collapse (mapping every input to a constant representation) and slow convergence (often requiring hundreds or thousands of epochs to learn useful features).

Recent dimension-contrastive methods (such as Barlow Twins and VICReg) avoid collapse without needing negative sample pairs or asymmetrical network tricks (like momentum encoders or stop-gradients). However, they tend to converge slowly due to "stepwise" eigenvalue learning—where eigendirections in representation space are learned one by one. Moreover, many existing objectives require extensive tuning of sensitive weighting hyperparameters to balance feature invariance against variance.

Methods

FroSSL proposes an objective function consisting of two equally weighted components:

  1. Augmentation Invariance: A standard Mean Squared Error (MSE) loss measuring the distance between paired view embeddings ($Z_1$ and $Z_2$).
  2. Variance / Redundancy Reduction: The log of the squared Frobenius norm of the normalized covariance matrices: $$\mathcal{L}_{\text{Fro}} = \log(\|Z_1^T Z_1\|_F^2) + \log(\|Z_2^T Z_2\|_F^2)$$

Key Methodological Innovations:

  • Frobenius Norm Minimization: Since the Frobenius norm is invariant to unitary transformations, minimizing it on normalized embeddings encourages features to spread out equally across all directions in a rotationally invariant manner.
  • Logarithmic Formulation: Applying the logarithm connects the loss to matrix-based collision entropy maximization (minimizing feature coincidence). Mathematically, it makes the gradients self-regulating ($\frac{d \log f(x)}{dx} = \frac{1}{f(x)}\frac{df(x)}{dx}$), eliminating the need for delicate hyperparameter weighting between the variance and invariance terms.
  • Computational Flexibility: Leveraging the duality $\|Z^T Z\|_F = \|ZZ^T\|_F$, one can compute either the feature covariance or the sample Gram matrix depending on whether the batch size $n$ or feature dimension $d$ is smaller. Up to embedding normalization, FroSSL is simultaneously dimension-contrastive and sample-contrastive.

Datasets

The authors evaluate FroSSL using a ResNet-18 backbone across standard computer vision benchmarks:

  • CIFAR-10 and CIFAR-100 (pretrained for 1000 epochs)
  • STL-10 (pretrained for 500 epochs)
  • ImageNet-1K (pretrained for 100 epochs)

No new datasets or benchmarks were introduced in the paper.

Key Insights and Ideas

  • Fixing Stepwise Convergence: Prior work noted that SSL representations learn one principal direction at a time. FroSSL explicitly penalizes $\sum_i \lambda_i^2$ (the sum of squared eigenvalues), pushing all covariance eigenvalues toward equal magnitude simultaneously.
  • Better Optimization Conditioning: In empirical tracking of covariance spectra (STL-10), FroSSL achieved:
  • A lower condition number (1.48 vs. 1.80 for VICReg and 1.96 for Barlow Twins).
  • Higher eigenvalue Shannon entropy (2.42 vs. 2.39–2.40).
  • Faster eigenvalue saturation (the 14th eigenvalue saturated at 450 steps vs. 1250 for Barlow Twins and 1700 for VICReg).
  • Logarithm as a Built-In Balancer: Ablating the logarithm degrades performance substantially (e.g., CIFAR-100 accuracy drops from 70.6% to 62.3%), confirming that the log term dynamically regulates gradient scale without manual weighting coefficients.

Key Results

  • Fast Early Convergence: On ImageNet (ResNet-18), FroSSL outperformed Barlow Twins by 12.2% top-1 accuracy after just 1 epoch. While Barlow Twins eventually caught up later in training, FroSSL maintained a slight edge at epoch 100 (53.4% vs. 52.5% top-1).
  • Early-Epoch STL-10 Performance: During the first 30 epochs of training on STL-10, FroSSL consistently outperformed all tested sample-contrastive, asymmetric, and dimension-contrastive baselines (e.g., reaching 44.8% top-1 at epoch 3 vs. 32.1% for Barlow Twins and 40.7% for SimCLR).
  • Downstream Linear Probing: FroSSL achieved competitive final accuracies across benchmarks:
  • CIFAR-10: 92.8% (close to MoCo v2's 92.9%)
  • CIFAR-100: 70.6% (surpassing SimCLR, SwAV, VICReg, and SimSiam; second only to Barlow Twins' 70.9%)
  • STL-10: 87.3% (outperforming all dimension-contrastive baselines)

Limitations and Future Work

  • Network and Epoch Scale: The empirical evaluation focused on a ResNet-18 architecture trained for up to 100 epochs on ImageNet; broader evaluations across larger backbones (e.g., ResNet-50, Vision Transformers) and standard 800–1000 epoch ImageNet runs were not explored.
  • Diminishing Long-Term Lead: While FroSSL learns significantly faster in early epochs, older methods eventually catch up in the later stages of lengthy training schedules.
  • Future Directions: Combining the FroSSL Frobenius norm penalty with other SSL paradigms and exploring its application to larger multi-modal models.

Summary updated

Abstract

Self-supervised learning (SSL) is an increasingly popular paradigm for representation learning. Recent methods can be classified as sample-contrastive, dimension-contrastive, or asymmetric network-based, with each family having its own approach to avoiding informational collapse. While dimension-contrastive methods converge to similar solutions as sample-contrastive methods, it can be empirically shown that some methods require more epochs of training to converge. Motivated by closing this divide, we present the objective function FroSSL which is both sample- and dimension-contrastive up to embedding normalization. FroSSL works by minimizing covariance Frobenius norms for avoiding collapse and minimizing mean-squared error for augmentation invariance. We show that FroSSL converges more quickly than a variety of other SSL methods and provide theoretical and empirical support that this faster convergence is due to how FroSSL affects the eigenvalues of the embedding covariance matrices. We also show that FroSSL learns competitive representations on linear probe evaluation when used to train a ResNet18 on the CIFAR-10, CIFAR-100, STL-10, and ImageNet datasets.
BibTeX
@inproceedings{skean2024frossl,
  author = {Oscar Skean and Aayush Dhakal and Nathan Jacobs and Luis Gonzalo Sanchez Giraldo},
  title = {{FroSSL: Frobenius Norm Minimization for Self-Supervised Learning}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73024-5\_5},
}
Figure