Learnable Subspace Clustering

Jun Li, Hongfu Liu, Zhiqiang Tao, Handong Zhao, Yun Fu

TL;DR

Traditional subspace clustering methods fail on large-scale data because their complexity grows quadratically or cubically with the number of points. This paper introduces Learnable Subspace Clustering (LeaSC), which trains a neural network to "predict" cluster-friendly representations, allowing the algorithm to scale to millions of data points with linear time complexity.

What Problem Does This Paper Address?

Subspace clustering is a powerful unsupervised learning technique based on the idea that high-dimensional data (like images of faces or digits) often lie in a union of low-dimensional subspaces. The "gold standard" methods, such as Sparse Subspace Clustering (SSC) and Low-Rank Representation (LRR), rely on the self-expressiveness (SE) property: every data point can be represented as a linear combination of other points in the same subspace.

The bottleneck is that these methods use the entire dataset as a dictionary to build a massive $N \times N$ similarity matrix. If you have a million data points, you're looking at a trillion-entry matrix and iterative optimization steps (like SVD) that are computationally impossible on standard hardware. Consequently, subspace clustering has historically been confined to small-scale datasets.

Methods

The authors propose a paradigm shift: instead of solving a massive optimization problem for every new data point, why not learn a function that does it for us?

  1. Representative Sampling: They first select a small set of "representative" points from the big dataset (using random sampling or more advanced subset selection like DS3).
  2. Predictive Coding Machine (PCM): They introduce a unified model that jointly optimizes for the "ideal" subspace codes and the parameters of a parametric function (a neural network).
  3. The robust version, RPCM, explicitly accounts for noise and outliers ($X = XZ + E$).
  4. It supports various regularization norms, including $\ell_1$ (for sparsity), nuclear norm (for low-rankness), and Frobenius norm.
  5. Optimization: They use a "quasi-convex" strategy, alternating between the Alternating Direction Method of Multipliers (ADMM) to find the codes and Gradient Descent to train the neural network.
  6. Fast Inference: Once the network is trained, clustering the remaining millions of points is a simple forward pass. The final clustering is performed using landmark-based spectral clustering, which is much faster than standard spectral clustering.

Datasets

The authors evaluate their method on a mix of classic benchmarks and massive "million-scale" datasets:

  • Small-scale: Extended-YaleB (faces) and AR (faces).
  • Medium-scale: NORB (3D objects) and MNIST (handwritten digits).
  • Million-scale: MNIST8M-1M (1 million synthetic digits) and YouTube8M-1M (1 million video-level features from 100 classes).

Key Insights and Ideas

  • From Optimization to Learning: The core "aha moment" is treating subspace representation as a supervised learning task where the "labels" (the codes) are discovered during the training process. This turns an $O(N^3)$ problem into an $O(N)$ inference problem.
  • Bounded Contraction Analysis: The authors provide a theoretical proof that the learned parametric function is "contractive." This means that if a new data point is near a representative in the high-dimensional space, the network will reliably map it to a representation near that representative’s code.
  • Robustness over Autoencoders: Unlike standard Deep Autoencoders (DAE) which try to reconstruct the input, RPCM focuses on reconstructing the subspace structure while explicitly separating out sparse noise ($E$). This makes it more resilient to the corruptions often found in real-world big data.

Key Results

  • Efficiency: On the Extended-YaleB dataset, the coding inference for LeaSC was 50 times faster than classical methods.
  • Scalability: LeaSC successfully clustered 1 million points on a single machine—a feat that traditional SSC or LRR simply cannot perform due to memory and time constraints.
  • Accuracy: On the MNIST8M-1M dataset, the RPCM variant achieved ~96% accuracy, significantly outperforming other scalable baselines like sampling-based SSC (selSSC) or landmark-based spectral clustering (LbSC) without the learnable component.
  • Linear Complexity: The experiments confirm that the total time for LeaSC scales linearly with the number of data points, making it truly "large-scale."

Limitations and Future Work

  • Representative Dependency: The quality of the clustering depends heavily on the initial set of representatives. If the sampling misses a specific subspace entirely, the network won't learn to map it correctly.
  • Linear Subspace Assumption: While the mapping function (the neural net) is non-linear, the underlying model still assumes the data lies in a union of linear or affine subspaces. Extending this to more complex, non-linear manifolds remains a challenge.
  • Hyperparameter Tuning: The model introduces several parameters ($\alpha, \beta, \gamma$) and architectural choices (number of layers/units) that may require careful tuning for different types of data.

Summary updated

BibTeX
@article{li2022learnable,
  author = {Jun Li and Hongfu Liu and Zhiqiang Tao and Handong Zhao and Yun Fu},
  title = {{Learnable Subspace Clustering}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2022},
  doi = {10.1109/tnnls.2020.3040379},
}
Figure