Abstract
Modern self-supervised learning (SSL) often relies on Joint Embedding Architectures (JEA) to learn representations by maximizing similarity between different views of the same data. While these models naturally develop clustering properties, existing frameworks rarely utilize this emergent structure during the training process. We present Representation Self-Assignment (ReSA), a novel SSL framework that leverages the inherent clustering capabilities of the encoder to provide online supervision. By treating mini-batch samples as their own anchors and employing a Sinkhorn-Knopp assignment on the raw encodings, ReSA creates a positive feedback loop that enhances representation quality. Our results demonstrate that ReSA significantly outperforms established methods like SimCLR and MoCoV3 in both accuracy and training efficiency, particularly on fine-grained classification and large-scale benchmarks like ImageNet-1K.
Introduction
Self-supervised learning has become a cornerstone of computer vision, allowing models to learn robust features from unlabeled data. Most contemporary methods utilize Joint Embedding Architectures (JEA), where the model is tasked with making the mathematical representations of two different "views" (augmentations) of the same image similar.
While these models effectively learn to group semantically similar objects—a phenomenon known as clustering—this information is typically a byproduct rather than a driver of the learning process. Furthermore, a persistent debate exists regarding the optimal location for extracting these features: the "encoding" (the raw output of the backbone) or the "embedding" (the output after a non-linear projection head). This paper introduces Representation Self-Assignment (ReSA) to demonstrate that the encoding layer holds superior clustering structures and that these structures can be harnessed to guide the model more effectively.
The ReSA Methodology
1. Online Self-Clustering
Unlike previous methods such as SwAV, which rely on maintaining a fixed or learnable set of "prototypes" (cluster centers), ReSA utilizes the samples within each mini-batch as their own anchors. The framework computes a self-similarity matrix based on the backbone encodings. This approach is more memory-efficient and allows the model to adapt dynamically to the specific distribution of the current batch.
2. Sinkhorn-Knopp Assignment
To convert these similarity scores into actionable supervision, ReSA applies the Sinkhorn-Knopp algorithm to the similarity matrix. This process produces a "doubly stochastic" assignment matrix, effectively creating soft pseudo-labels. These labels identify which images within the batch are semantically related, providing a map of the latent clusters discovered by the encoder.
3. Positive Feedback Loss
These pseudo-labels are then used to guide a cross-entropy loss applied to the final embeddings. This creates a positive feedback loop: the backbone's discovered clusters (encodings) are used to supervise the final output (embeddings), forcing the entire network to align with the semantic structures identified by the encoder.
4. The Role of Weak Augmentation
A critical component of ReSA is the use of "Weak Augmentation" for the clustering branch. While heavy augmentation (color jitter, blur, etc.) is necessary for learning invariance, it can occasionally obscure fine-grained semantic details. By using simpler augmentations—such as basic resizing and flipping—for the branch that generates the cluster assignments, the model captures cleaner semantic relationships, leading to more accurate pseudo-labels.
Experimental Results and Analysis
Performance Benchmarks
ReSA was evaluated across a diverse range of datasets, including CIFAR-10/100, ImageNet-100, and the full ImageNet-1K. On CIFAR-100, ReSA achieved a linear evaluation accuracy of 72.21%, significantly outperforming SimCLR (65.78%) and MoCoV3 (68.83%).
On the ImageNet-1K benchmark, ReSA demonstrated remarkable training efficiency. A ReSA model trained for only 100 epochs reached an accuracy of 71.9%, surpassing SimCLR, SwAV, and SimSiam models that were trained for 800 epochs. This represents an 8x improvement in training throughput for comparable accuracy levels.
Fine-Grained and Downstream Tasks
The semantic depth of ReSA's representations is particularly evident in fine-grained classification. On the CUB-200-2011 (birds) dataset, ReSA improved k-NN accuracy by nearly 23% over several competitors. T-SNE visualizations further confirm that ReSA naturally discovers sub-classes; for instance, it successfully separates different species of birds (e.g., ostriches vs. cassowaries) without ever receiving explicit labels.
Efficiency in Vision Transformers (ViTs)
When applied to Vision Transformers, ReSA proved to be nearly twice as fast as leading methods like DINO and MoCoV3. This speed advantage stems from ReSA's streamlined architecture, which avoids the need for complex normalization layers or specialized architectural "tricks" required by other self-supervised ViT frameworks.
Discussion: Why Encodings Matter
An empirical analysis using metrics such as the Silhouette Coefficient and Adjusted Rand Index reveals that the raw encoding from the backbone is a more stable and accurate source of clustering information than the final embedding. The projection head, while useful for the contrastive task, often "washes out" certain semantic structures to satisfy the specific constraints of the loss function. By anchoring the learning process to the encoding layer, ReSA preserves these vital structures.
Conclusion and Future Work
Representation Self-Assignment (ReSA) demonstrates that the inherent clustering properties of SSL models are a powerful, yet underutilized, resource. By implementing an online self-clustering mechanism that prioritizes the encoding layer and utilizes weak augmentations for cluster discovery, ReSA achieves state-of-the-art efficiency and accuracy.
While the method shows a slightly slower improvement rate in the very early stages of training, its long-term convergence and semantic clarity make it a robust candidate for future visual foundation models. Future research will focus on further reducing the sensitivity to learning rate schedules and exploring the potential of ReSA in entirely augmentation-free self-supervised learning.
Summary updated