Simplicial Embeddings in Self-Supervised Learning and Downstream Classification

Samuel Lavoie, Christos Tsirigotis, Max Schwarzer, Ankit Vani, Michael Noukhovitch, Kenji Kawaguchi, Aaron Courville

Self-supervised learning (SSL) has revolutionized how we train models without labels, but the representations it produces are often dense and difficult to interpret. In their paper, "Simplicial Embeddings in Self-Supervised Learning and Downstream Classification," researchers introduce a surprisingly simple architectural tweak called Simplicial Embeddings (SEM). By forcing representations into a structured, sparse, and "overcomplete" space, they achieve better accuracy, improved robustness, and a fascinating level of emergent semantic interpretability.

TL;DR

The authors propose Simplicial Embeddings (SEM), a simple module that projects SSL representations into multiple "simplices" using a softmax operation. This "soft" discretization acts as a powerful inductive bias, leading to a 2-4% accuracy boost on CIFAR-100 and improved robustness on ImageNet, all while making the learned features naturally align with semantic categories.

What Problem Does This Paper Address?

Standard SSL methods (like BYOL or SimCLR) typically learn dense, unconstrained feature vectors. While effective, these representations lack the benefits of sparse overcomplete representations—where the number of basis vectors is much larger than the input dimensionality.

Historically, sparse coding has been shown to increase noise stability and interpretability. However, implementing it in deep learning often involves "hard" discretization (like Vector Quantization or Gumbel-Softmax), which can be unstable to train due to high-variance gradient estimators. The authors tackle the challenge of imparting a discrete, sparse inductive bias into SSL without the training headaches of hard bottlenecks.

Methods: The SEM Module

The core idea is the SEM module. Instead of outputting a single flat vector, the encoder’s output is reshaped into $L$ vectors, each of dimension $V$. A softmax operation is then applied to each of these $L$ vectors (the "simplices").

The Simplicial Embedding (SEM) module acts as a drop-in component within standard self-supervised learning architectures.
  • The Simplex: Because of the softmax, each of the $L$ vectors sums to 1 and contains non-negative values, effectively placing the representation on a mathematical simplex.
  • Sparsity via Temperature: By adjusting the softmax temperature ($\tau$), the authors can control how "peaky" or sparse the representation is. A low temperature pushes the model toward one-hot vectors (discrete-like), while a high temperature keeps it dense.
  • Overcompleteness: By choosing a large $L$, the total dimensionality ($L \times V$) can be much larger than the original encoder output, creating an overcomplete representation.

Crucially, this module is a "drop-in" component: in a method like BYOL, you simply insert the SEM between the encoder and the projector.

Key Insights and Ideas

Soft is Better than Hard

Unlike Gumbel-Softmax or Vector Quantization (VQ), which try to force hard discrete choices during training, SEM uses a "soft" softmax. This allows gradients to flow smoothly while still providing the inductive bias of a discrete space. The results show SEM significantly outperforms these hard discretization methods.

Overcompleteness Drives Performance

A key finding is that increasing $L$ (making the representation more overcomplete) monotonically improves downstream accuracy. This suggests that "spreading out" information across many simplices helps the model capture more nuances in the data.

Top-1 accuracy improves monotonically as the embedding size (overcompleteness) increases for BYOL+SEM, unlike standard BYOL.

Emergent Semantic Coherence

Perhaps the most striking insight is that SEM features are "semantically coherent." When looking at which features are predictive of certain classes, the model naturally groups related concepts. For example, one group of features might be exclusively predictive of different types of flowers, while another groups aquatic mammals. This happens without any explicit supervision or clustering loss.

Theoretical Justification

The authors provide a theoretical bound showing that the softmax normalization reduces the "expressivity" of the input in a way that shrinks the generalization gap, leading to lower expected error on downstream tasks.

Key Results

  • Accuracy Boost: Adding SEM to seven different SSL methods (including MoCo, BYOL, and VicReg) consistently improved top-1 accuracy on CIFAR-100 by 2% to 4%.
  • ImageNet Scaling: On ImageNet-1K with a ResNet-50, BYOL+SEM outperformed standard BYOL across various FLOP counts. It also showed superior performance in semi-supervised settings (training on only 1% or 10% of labels).
  • Robustness: SEM-trained models were significantly more robust. On ImageNet-R (renderings), BYOL+SEM achieved 22.1% accuracy compared to the baseline's 18.8%.
  • Efficiency: While SEM adds parameters, the authors demonstrate a "sparse matrix" version of the module that reduces memory overhead while maintaining most of the accuracy gains.

Limitations and Future Work

  • Memory Overhead: In its naive form, a very large overcomplete representation ($L \times V$) requires large weight matrices in the subsequent layers, increasing VRAM usage. While the authors propose a block-diagonal sparse version to mitigate this, it remains a trade-off.
  • Hyperparameter Tuning: The performance is sensitive to the softmax temperature ($\tau$). The optimal temperature for pre-training might not be the same as the one for downstream tasks, requiring some validation.
  • Scaling Laws: While tested on ResNet-50, it remains to be seen how SEM behaves in massive Vision Transformers (ViTs) or large language models, where the "vocabulary" of the simplices could potentially be scaled even further.

In summary, SEM offers a compelling path toward more interpretable and robust self-supervised models by simply rethinking the geometry of the representation space.

Summary updated

BibTeX
@inproceedings{lavoie2023simplicial,
  author = {Samuel Lavoie and Christos Tsirigotis and Max Schwarzer and Ankit Vani and Michael Noukhovitch and Kenji Kawaguchi and Aaron Courville},
  title = {{Simplicial Embeddings in Self-Supervised Learning and Downstream Classification}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=RWtGreRpovS},
}

Loading related content...

Figure