Self-supervised learning (SSL) has revolutionized representation learning by training models to produce similar embeddings for different views of the same image without relying on labeled data. However, a major hurdle in Joint-Embedding SSL is collapse.
Collapse typically occurs in two forms:
- Complete Collapse: The model takes the easy way out and outputs the exact same vector for every single input.
- Dimensional Collapse: A more subtle failure where embeddings only occupy a low-dimensional subspace, leading to highly correlated features and poor generalization.
To combat this, T-REGS introduces a novel regularization framework that uses the length of a Minimum Spanning Tree (MST) to organize the embedding space. By maximizing the MST length while constraining embeddings to a sphere, the method provably prevents dimensional collapse and ensures that learned representations are spread uniformly.
The T-REGS Method
The core idea behind T-REGS is geometric: if you want points to be spread out uniformly, you should maximize the distance between neighbors. The T-REG loss consists of two main components:
- MST Length Maximization ($L_E$): The algorithm constructs a Minimum Spanning Tree—the shortest set of edges connecting all points in a batch. By trying to increase the total length of this tree, the model exerts a "repulsive force" that pushes nearby points away from each other.
- Soft Sphere Constraint ($L_S$): Without a boundary, maximizing MST length would just push points to infinity. This term keeps the embeddings near the surface of a unit hypersphere.
T-REGS applies this loss to both branches of an SSL architecture. It can function as a standalone regularizer (combined with a simple Mean Squared Error for view-invariance) or as an auxiliary boost for existing methods like BYOL or Barlow Twins.
Key Insights and Visualizing the Spread
The paper provides a strong theoretical link between MST length and Renyi Entropy. Maximizing the MST length is mathematically equivalent to maximizing the entropy of the embedding distribution, which naturally drives the representations toward uniformity.
Furthermore, unlike methods like VICReg that rely on second-order statistics (covariance matrices) and might miss local clusters, T-REGS considers local connectivity via the graph structure. This allows it to detect and fix non-uniformity that second-order methods simply cannot see.
For small batches in high dimensions (a common scenario in SSL), the authors prove that T-REG naturally pushes points toward the vertices of a regular simplex, which is the most efficient way to spread points in that space.
Key Results
The researchers validated T-REGS across synthetic data, standard vision benchmarks, and multi-modal retrieval tasks, yielding impressive results:
- Competitive Performance: On ImageNet-1k, T-REGS matches or exceeds the performance of state-of-the-art methods like VICReg and SimCLR.
- Standalone Success: A simple model using only MSE (for invariance) and T-REGS (for regularization) achieved 91.3% on CIFAR-10, proving that MST length alone is a powerful enough signal to organize a latent space.
- Improving CLIP: When used to fine-tune CLIP for image-text retrieval, T-REGS improved the Top-1 Recall on Flickr30k from 81.2% to 83.2%, suggesting it helps close the "modality gap" between text and image embeddings.
- Efficiency: Despite the graph-based calculation, GPU-parallelized MST algorithms keep T-REGS's training time (0.20s/step) highly competitive with methods like VICReg (0.23s/step).
Limitations and Future Work
While powerful, T-REGS does have limitations. The balance between the MST length and the sphere constraint is crucial; maintaining a specific hyperparameter ratio is essential to prevent collapse. Additionally, like many SSL methods, T-REGS relies on batch-level statistics. If the batch size is extremely small, the MST might not accurately reflect the global distribution of the entire dataset.
Future work will likely explore applying T-REGS in other domains where uniformity is highly prized, such as generative modeling or reinforcement learning.
Summary updated