Neural Collaborative Subspace Clustering

Tong Zhang, Pan Ji, Mehrtash Harandi, Wen-bing Huang, Hongdong Li

Introduction

Neural Collaborative Subspace Clustering (NCSC) is a scalable deep learning framework designed to solve the primary "bottleneck" of traditional subspace clustering: the computationally expensive spectral clustering step. By framing clustering as a collaborative binary classification task between two distinct neural modules, the model achieves state-of-the-art accuracy on large datasets while allowing for highly efficient, $O(n)$ inference.

The Problem: The Spectral Clustering Bottleneck

Subspace clustering is the task of grouping data points that belong to different low-dimensional linear (or non-linear) subspaces. For example, in a dataset of faces, while the images themselves are high-dimensional, the variations of a single person's face usually lie on a much lower-dimensional manifold.

The historical "gold standard" for this task has been Spectral Clustering. However, spectral clustering has a massive scalability problem: it requires constructing and decomposing an affinity matrix, which takes $O(n^2)$ memory and $O(kn^2)$ computation time. This makes it nearly impossible to use on datasets with hundreds of thousands of points. Furthermore, traditional methods struggle with non-linear data. While "Deep Subspace Clustering" (DSC) uses auto-encoders to handle non-linearity, it still relies on that same $O(n^2)$ spectral clustering bottleneck at the end of its pipeline.

Methods: A Neural Collaborative Approach

The authors propose replacing the spectral clustering step entirely with a classification-based strategy. The architecture consists of two main components that "collaborate" during training:

Neural Collaborative Architecture
  1. The Subspace Learning Module: A convolutional auto-encoder with a "self-expressive layer" in the middle. This layer learns to represent a data point as a linear combination of others, effectively capturing the subspace structure to build an affinity matrix ($A_s$).
  2. The Classification Module: A multi-class classifier that predicts cluster labels. From these predictions, it generates its own version of an affinity matrix ($A_c$) based on whether the model thinks two points belong to the same class.

The "Collaborative" Magic: Since there are no ground-truth labels in unsupervised clustering, the two modules supervise each other:

  • Positive Mining: The subspace module ($A_s$) is highly effective at identifying points that definitely belong together (positive pairs). It "teaches" the classifier to group these points.
  • Negative Mining: The classifier ($A_c$) is better at identifying points that definitely do not belong together (negative pairs). It "teaches" the subspace module to refine its representations by correcting false positives.

By the end of training, the classifier has learned the subspace structure so well that the auto-encoder and the affinity matrices can be discarded. To cluster new data, you simply run a highly efficient forward pass through the classifier.

Key Insights

  • Clustering as Classification: The most significant breakthrough is realizing that if you can train a classifier to recognize if two points are in the same subspace, you don't need to perform an expensive global eigen-decomposition.
  • Stochastic Scalability: Because the model uses a classifier and standard cross-entropy losses, it can be trained using mini-batch stochastic gradient descent. This allows it to scale to datasets that would crash traditional spectral clustering algorithms.
  • Mutual Refinement: The self-expressive layer and the classifier have complementary strengths. One is good at "finding friends," and the other is good at "spotting strangers." Using them together prevents the model from collapsing into trivial solutions.

Key Results

The model was evaluated on three benchmarks: MNIST (70,000 digits), Fashion-MNIST (70,000 clothing items), and Stanford Online Products (SOP, a complex real-world dataset).

Clustering Results Table
  • Superior Accuracy: On MNIST, NCSC achieved a remarkable 94.09% accuracy, significantly outperforming the previous deep state-of-the-art methods like $k$-SCN (87.14%) and DSC-Net (65.92%).
  • Robustness on Complex Data: On the difficult SOP dataset, most deep clustering methods (like DEC or DCN) failed to produce meaningful results. NCSC achieved 27.5% accuracy, which, while low in absolute terms, was nearly double the performance of traditional subspace methods.
  • Efficiency: Unlike DSC-Net, which becomes computationally overwhelming for mid-to-large datasets, NCSC handled the full 70,000 samples of Fashion-MNIST gracefully.

Limitations and Future Work

While powerful, NCSC has a few limitations. It relies on thresholding parameters to select "confident" pairs for supervision, which require careful tuning for different datasets. Additionally, the model still requires a pre-training phase for the convolutional auto-encoder to ensure the latent space is "subspace-friendly" before collaborative learning begins. Finally, it requires a "rough guess" for the latent space dimensionality to ensure it is large enough to hold the union of subspaces.

Overall, this paper provides a clever path forward for subspace clustering in the era of "Big Data" by trading global matrix operations for local, collaborative neural learning.

Summary updated

BibTeX
@inproceedings{zhang2019neural,
  author = {Tong Zhang and Pan Ji and Mehrtash Harandi and Wen-bing Huang and Hongdong Li},
  title = {{Neural Collaborative Subspace Clustering}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=FWdmjwNOPc7},
}
Figure