NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Semi-supervised learning made simple with self-supervised clustering

Enrico Fini, Pietro Astolfi, Karteek Alahari, Xavier Alameda-Pineda, Julien Mairal, Moin Nabi, Elisa Ricci

Abstract

This paper introduces a simple yet powerful framework for semi-supervised learning (Semi-SL) by adapting clustering-based self-supervised methods like SwAV and DINO. By aligning model cluster centroids with actual class prototypes through a shared cross-entropy loss, the proposed methods, Suave and Daino, achieve state-of-the-art results on ImageNet and CIFAR100. The approach requires minimal architectural changes and demonstrates significant efficiency and robustness compared to existing complex Semi-SL pipelines.

Introduction

In computer vision, Self-Supervised Learning (Self-SL) has become the standard for learning from large unlabeled datasets. However, bridging the gap to Semi-Supervised Learning (Semi-SL)—where a small amount of labeled data is available—often involves "fiddly" pipelines with confidence thresholds and multiple loss functions. This paper addresses this by leveraging clustering-based Self-SL methods, which naturally discretize feature space. By unifying these with supervised objectives, the authors create a streamlined framework that treats labeled and unlabeled data almost identically.

Methodology: Suave and Daino

The authors propose a multi-task framework based on clustering-based Self-SL methods like SwAV (optimal transport) and DINO (centering and sharpening).

Aligning Clusters with Classes

The key innovation is replacing arbitrary cluster centroids with class prototypes in a shared linear layer. In pure Self-SL, clusters might capture spurious correlations. By introducing labels, the model is forced to align its clusters with semantic categories, creating a positive feedback loop where labeled data guides the clustering of unlabeled data.

Conceptual comparison showing how Suave/Daino aligns cluster prototypes with class prototypes.

Unified Training Objective

The framework uses a single cross-entropy loss for both tasks. For labeled samples, the target is the ground-truth label. For unlabeled samples, the target is a "pseudo-label" generated by the clustering algorithm. This results in two implementations: Suave (Semi-supervised SwAV) and Daino (Semi-supervised DINO).

Architecture and pseudo-code for the Suave and Daino training step.

Experiments and Results

The researchers evaluated Suave and Daino on CIFAR100 and ImageNet-1k using standard ResNet50 and ViT-S/16 backbones.

Performance Benchmarks

  • CIFAR100: Suave outperformed the previous best (CCSSL) by +2.4% in the 400-label setting, reaching 64.6% accuracy.
  • ImageNet (10% labels): Suave achieved 75.0% top-1 accuracy, matching or beating many complex hybrid methods and fine-tuned self-supervised models.

Efficiency and Robustness

Suave and Daino are robust to batch size and reach high performance much faster than competitors. For instance, Suave achieves results in 100 epochs that typically require 400+ epochs in other frameworks.

Key Insights

The "aha moment" of this work is realizing that clustering-based Self-SL is essentially "supervised learning without labels." By providing a few real labels, the existing clustering mechanism is given a "compass," ensuring that discretization follows semantic boundaries rather than arbitrary features.

Limitations and Future Work

The current experiments assume the number of clusters equals the number of known classes. Future work could investigate "novel class discovery" where unlabeled data contains unknown categories. Additionally, scaling to larger Vision Transformers and testing on specialized domains like medical imaging are promising directions.

Summary updated

BibTeX
@inproceedings{fini2023semi,
  author = {Enrico Fini and Pietro Astolfi and Karteek Alahari and Xavier Alameda-Pineda and Julien Mairal and Moin Nabi and Elisa Ricci},
  title = {{Semi-supervised learning made simple with self-supervised clustering}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure