Doubly Stochastic Subspace Clustering

Derek Lim, René Vidal, Benjamin D. HaeffelearXiv 2020

Abstract

Many state-of-the-art subspace clustering methods follow a two-step process by first constructing an affinity matrix between data points and then applying spectral clustering to this affinity. Most of the research into these methods focuses on the first step of generating the affinity, which often exploits the self-expressive property of linear subspaces, with little consideration typically given to the spectral clustering step that produces the final clustering. Moreover, existing methods often obtain the final affinity that is used in the spectral clustering step by applying ad-hoc or arbitrarily chosen postprocessing steps to the affinity generated by a self-expressive clustering formulation, which can have a significant impact on the overall clustering performance. In this work, we unify these two steps by learning both a self-expressive representation of the data and an affinity matrix that is well-normalized for spectral clustering. In our proposed models, we constrain the affinity matrix to be doubly stochastic, which results in a principled method for affinity matrix normalization while also exploiting known benefits of doubly stochastic normalization in spectral clustering. We develop a general framework and derive two models: one that jointly learns the self-expressive representation along with the doubly stochastic affinity, and one that sequentially solves for one then the other. Furthermore, we leverage sparsity in the problem to develop a fast active-set method for the sequential solver that enables efficient computation on large datasets. Experiments show that our method achieves state-of-the-art subspace clustering performance on many common datasets in computer vision.

Introduction

Subspace clustering is a fundamental task in unsupervised learning, particularly within computer vision. The objective is to group high-dimensional data points based on the low-dimensional linear subspaces they inhabit—conceptually similar to identifying the underlying "planes" or "lines" that define different categories, such as distinct faces or objects.

The traditional pipeline for subspace clustering typically involves three distinct stages:

  1. Self-Expression: Solving an optimization problem to represent each data point as a linear combination of others ($X \approx XC$).
  2. Post-Processing: Applying various heuristics—such as thresholding, symmetrization, or column normalization—to transform the representation $C$ into an affinity matrix $A$.
  3. Spectral Clustering: Utilizing $A$ within a spectral clustering algorithm to produce final clusters.

A significant weakness in this approach is the post-processing step. These heuristics are often arbitrary, introduce hidden hyperparameters, and are poorly understood theoretically. Furthermore, spectral clustering is highly sensitive to affinity matrix normalization; improper normalization can lead to clustering failure.

Methodology

To address these limitations, the proposed Doubly Stochastic Subspace Clustering (DSSC) framework unifies the learning of data representations and affinity matrices.

Comparison of traditional subspace clustering pipelines versus the proposed DSSC framework.

The Doubly Stochastic Constraint

The core innovation of DSSC is the requirement that the affinity matrix $A$ belongs to the set of doubly stochastic matrices ($\Omega_n$). This constraint ensures that all entries are non-negative and that every row and column sums to exactly one. This provides a principled normalization that is naturally invariant to common Laplacian normalization schemes, eliminating the need for practitioner guesswork.

Model Variants: J-DSSC and A-DSSC

The authors introduce two primary models:

  • J-DSSC (Joint Model): This model jointly optimizes for the self-expressive representation $C$ and the affinity $A$. To handle non-convexity, $C$ is split into two non-negative matrices and solved using a Linearized Alternating Direction Method of Multipliers (ADMM) algorithm.
  • A-DSSC (Approximate/Sequential Model): Designed for scalability, A-DSSC first solves for $C$ using standard methods (e.g., Least Squares Regression) and then projects the result onto the set of doubly stochastic matrices.

Scalability via Active-Set Methods

For massive datasets, computing an $n \times n$ matrix is computationally prohibitive. The authors developed a dual-based active-set method that iteratively updates a sparse "support" of the matrix. This allows the framework to handle datasets as large as MNIST ($n=70,000$) by leveraging the inherent sparsity of subspace data.

Experimental Evaluation

The DSSC models were evaluated on several standard computer vision benchmarks, including face datasets (Extended Yale-B, UMIST, ORL), object datasets (COIL-40, COIL-100), and digit/letter datasets (MNIST, EMNIST).

Performance comparison of DSSC against various state-of-the-art methods across multiple computer vision benchmarks.

As shown in the results, DSSC achieves state-of-the-art performance across multiple metrics. Notably, it achieved perfect (1.00) accuracy on COIL-40 and near-perfect results on COIL-100, outperforming both traditional shallow methods and complex deep learning-based approaches like DSC-Net. The models also demonstrated superior "Subspace-Preserving Error" (SPE), indicating that the affinity mass is correctly concentrated within the appropriate subspaces.

In terms of efficiency, the GPU-accelerated active-set method allowed for clustering the full MNIST dataset in under 30 seconds with 99% accuracy, highlighting the framework's practical scalability.

Discussion and Conclusion

DSSC offers several key advantages over existing methods. The doubly stochastic constraint ensures guaranteed connectivity, preventing data points from becoming "orphans" in the affinity graph. Furthermore, solving the projection in the dual space proved to be orders of magnitude faster than traditional primal-space methods.

Despite its simplicity compared to neural network-based trackers, DSSC often yields superior results, particularly when paired with scattered features. While the J-DSSC model faces scaling challenges at $O(dn^2)$, the sequential A-DSSC approximation provides a robust and efficient alternative for large-scale applications.

Summary updated

BibTeX
@misc{lim2020doubly,
  author = {Derek Lim and René Vidal and Benjamin D. Haeffele},
  title = {{Doubly Stochastic Subspace Clustering}},
  year = {2020},
  eprint = {2011.14859},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.14859},
}
Figure