LSD-C: Linearly Separable Deep Clusters

Sylvestre-Alvise Rebuffi, Sébastien Ehrhardt, Kai Han, Andrea Vedaldi, Andrew Zisserman · DOI

Introduction

Clustering remains a fundamental challenge in unsupervised learning, particularly when dealing with high-dimensional data like images and text. While classical algorithms such as K-means are effective for simple datasets, they often fail to capture the semantic nuances of complex "raw" data. Deep clustering attempts to bridge this gap by training neural networks to learn meaningful representations (embeddings) while simultaneously grouping data. However, many existing deep clustering methods suffer from "degenerate solutions"—where the model collapses all data into a single cluster—or rely on overly complex constraints.

LSD-C (Linearly Separable Deep Clusters) introduces a robust framework that leverages the inherent structure of self-supervised features. By enforcing linear separation in a feature space initialized via self-supervised learning, LSD-C achieves significant performance improvements over previous state-of-the-art methods, notably increasing CIFAR-10 clustering accuracy from 61.7% to 81.7%.

The LSD-C Framework

The LSD-C pipeline is structured into three distinct stages designed to move from raw data to semantically meaningful, linearly separable clusters.

1. Self-Supervised Pre-training

The process begins with representation learning using a "pretext" task. In this work, the authors utilize RotNet, where the model learns to predict the rotation (0, 90, 180, or 270 degrees) applied to an input image. This stage ensures the feature space is "well-conditioned," meaning semantically similar concepts are already positioned relatively close to one another before any explicit clustering begins.

2. Pairwise Labeling in Feature Space

A critical innovation of LSD-C is its approach to establishing connections between data points. Rather than operating on the final output layer (the prediction space), LSD-C analyzes the penultimate layer (the feature space). Within each mini-batch, the model identifies "positive pairs"—samples that should belong to the same cluster—using similarity metrics such as k-Nearest Neighbors (kNN) or Symmetric SNE.

3. Linear Clustering and Data Composition

The model optimizes a binary cross-entropy loss to pull connected samples together and push unconnected samples apart. This optimization is performed using a simple linear classifier on top of the features, which imposes a powerful inductive bias: the clusters must be linearly separable.

To further enhance robustness, LSD-C incorporates advanced data composition techniques like MixUp and RICAP, which blend multiple images together. Additionally, a Mean Squared Error (MSE) consistency loss is applied to ensure that an image and its augmented version result in the same cluster assignment.

Experimental Results

The authors evaluated LSD-C across five benchmarks, including image datasets (MNIST, CIFAR-10, CIFAR-100-20, STL-10) and a text dataset (Reuters 10K).

Image Benchmarking

LSD-C established a new state-of-the-art across nearly all tested image datasets. The most dramatic improvement was observed on CIFAR-10, where accuracy jumped by 20 percentage points.

Dataset Previous SOTA (IIC/DAC) LSD-C (Ours)
CIFAR-10 61.7% 81.7%
CIFAR-100-20 25.7% 42.3%
STL-10 59.6% 66.4%
MNIST 99.2% 98.6%

Versatility Beyond Vision

On the Reuters 10K text dataset (using tf-idf features), LSD-C achieved 79.0% accuracy. This performance is competitive with specialized text-clustering algorithms like FINCH (81.5%), demonstrating that the linear separability bias is effective across different data modalities.

Key Insights and Analysis

Feature Space vs. Prediction Space

The authors found that establishing pairwise connections in the feature space is significantly more effective than doing so in the prediction space. In experiments on CIFAR-10, labeling in the prediction space resulted in a 16-point drop in accuracy. This suggests that the penultimate layer retains richer structural information necessary for forming accurate clusters.

The Role of Augmentation

Data composition techniques proved essential to the model's success. On CIFAR-10, the inclusion of RICAP improved accuracy by 28% compared to models using no data composition. These techniques prevent the model from overfitting to specific image instances and encourage it to learn more generalized cluster boundaries.

Simplicity and Efficiency

Unlike previous high-performing methods like IIC, which often require complex preprocessing (e.g., Sobel filtering) or extremely large batch sizes, LSD-C operates effectively on raw RGB images with standard batch sizes. This makes the method more accessible and easier to integrate into existing workflows.

Limitations and Future Work

While LSD-C represents a significant step forward, it faces certain limitations:

  • Visual Similarity: The model still struggles to distinguish between highly similar classes, such as cats and dogs. However, when evaluating only the top 60% most "confident" samples, accuracy on CIFAR-10 rises to 94%.
  • Cluster Count: The algorithm currently requires the number of clusters ($K$) to be known in advance, a common constraint in clustering that limits its use in truly exploratory settings.
  • Pre-training Dependency: The quality of the final clusters is inherently tied to the quality of the self-supervised initialization. Future research may explore how different pre-training tasks (beyond RotNet) impact the final clustering performance.

Summary updated

BibTeX
@inproceedings{rebuffi2020lsd,
  author = {Sylvestre-Alvise Rebuffi and Sébastien Ehrhardt and Kai Han and Andrea Vedaldi and Andrew Zisserman},
  title = {{LSD-C: Linearly Separable Deep Clusters}},
  booktitle = {ICCVW},
  year = {2020},
  doi = {10.1109/iccvw54120.2021.00121},
}
Figure