Overview
This paper introduces Clustering InfoNCE (Cl-InfoNCE), a two-stage framework that leverages "weak" auxiliary information (like hashtags or image attributes) to improve representation learning. By grouping data into clusters based on this auxiliary info and then applying a novel contrastive loss, the authors bridge the performance gap between purely self-supervised and fully supervised models.
The Problem: Bridging the Supervision Gap
Self-supervised learning (SSL) has revolutionized AI by allowing models to learn from unlabeled data. However, standard SSL methods (like SimCLR) often treat every single data point as its own unique "class," ignoring the fact that many images are semantically related. On the other end of the spectrum, fully supervised learning requires expensive, high-quality labels.
There is a massive middle ground: weakly-supervised data. Think of Instagram hashtags or automatically extracted attributes. This information is abundant but noisy. The challenge is how to effectively "squeeze" the useful structural information out of these noisy auxiliary signals to learn better representations without the cost of manual labeling.
Methodology: Clustering InfoNCE
The authors propose a two-stage approach to leverage this weak supervision:
- Cluster Construction: Instead of using raw auxiliary data directly, they use it to form data clusters. For discrete attributes, they rank attributes by entropy to select the most informative ones (the "top-$k$") and group images that share these attributes.
- Cl-InfoNCE Objective: They introduce a new objective function that generalizes the popular InfoNCE loss. While standard contrastive learning pulls two augmented views of the same image together, Cl-InfoNCE pulls together augmented views of any images belonging to the same cluster.
Mathematically, Cl-InfoNCE acts as an interpolator. If every cluster has only one image, it’s standard self-supervised learning. If clusters perfectly match ground-truth labels, it’s supervised contrastive learning. This flexibility allows the model to adapt to whatever level of supervision is available.
Datasets
The model was evaluated on several computer vision benchmarks with varying types of auxiliary information:
- UT-zappos50K: Shoe images with 7 discrete attributes (e.g., "heel height," "closure").
- Wider Attribute: Scene images with 14 binary attributes.
- CUB-200-2011: Fine-grained bird species with 200 binary attributes.
- ImageNet-100: A subset of the classic ImageNet, used here to test the method in a purely unsupervised setting (using K-means to generate clusters).
Key Insights and Ideas
- The Information Theory Connection: The authors show that the quality of learned representations is tied to the Mutual Information ($I$) and Conditional Entropy ($H$) between the clusters and the actual downstream labels.
- The "Goldilocks" Zone for Attributes: Adding more attributes to define clusters isn't always better. While more attributes increase the relevance to labels ($I$), they also increase noise and redundancy ($H$). The best performance occurs at the intersection where $I$ is high and $H$ is relatively low.
- Predicting Success Without Training: Because the performance is tied to these information-theoretic metrics, researchers can estimate how well a specific clustering strategy will work before running the expensive representation learning stage.
- Strong Unsupervised Baseline: Even when no auxiliary info is available, using K-means to find latent structures and then applying Cl-InfoNCE outperforms other specialized clustering-based SSL methods like Prototypical Contrastive Learning (PCL).
Key Results
- Bridging the Gap: On UT-zappos50K, the method achieved 84.6% top-1 accuracy, significantly higher than the self-supervised SimCLR (77.8%) and moving much closer to the fully supervised SupCon (89.0%).
- Outperforming Baselines: Cl-InfoNCE consistently beat other weak-supervision baselines, such as treating auxiliary info as a separate "view" (CMC) or simply predicting cluster assignments with cross-entropy.
- Unsupervised Superiority: On ImageNet-100, the "K-means + Cl-InfoNCE" combo reached 77.9% accuracy, outperforming PCL (68.9%) and MoCo (59.4%).
Limitations and Future Work
- Clustering Overhead: The method requires an explicit clustering step. In the unsupervised version (K-means), this must be done iteratively, which adds computational complexity and time.
- Precision Loss: The authors note that clustering based on auxiliary info can sometimes lead to a loss in precision if the auxiliary data is too coarse or unrelated to the final task.
- Future Directions: The authors suggest exploring more complex types of auxiliary information beyond discrete attributes and hierarchies, and finding more efficient ways to perform the clustering step at scale.
Summary updated