Skip to main content
QUICK REVIEW

[Paper Review] SpectralNet: Spectral Clustering using Deep Neural Networks

Uri Shaham, Kelly Stanton|arXiv (Cornell University)|Jan 4, 2018
Face and Expression RecognitionComputer Science28 references118 citations
TL;DR

SpectralNet learns a parametric map to the spectral embedding for scalable clustering, enabling out-of-sample extension and improved affinity learning via a Siamese network, achieving competitive results on MNIST and state-of-the-art on Reuters.

ABSTRACT

Spectral clustering is a leading and popular technique in unsupervised data analysis. Two of its major limitations are scalability and generalization of the spectral embedding (i.e., out-of-sample-extension). In this paper we introduce a deep learning approach to spectral clustering that overcomes the above shortcomings. Our network, which we call SpectralNet, learns a map that embeds input data points into the eigenspace of their associated graph Laplacian matrix and subsequently clusters them. We train SpectralNet using a procedure that involves constrained stochastic optimization. Stochastic optimization allows it to scale to large datasets, while the constraints, which are implemented using a special-purpose output layer, allow us to keep the network output orthogonal. Moreover, the map learned by SpectralNet naturally generalizes the spectral embedding to unseen data points. To further improve the quality of the clustering, we replace the standard pairwise Gaussian affinities with affinities leaned from unlabeled data using a Siamese network. Additional improvement can be achieved by applying the network to code representations produced, e.g., by standard autoencoders. Our end-to-end learning procedure is fully unsupervised. In addition, we apply VC dimension theory to derive a lower bound on the size of SpectralNet. State-of-the-art clustering results are reported on the Reuters dataset. Our implementation is publicly available at https://github.com/kstant0725/SpectralNet .

Motivation & Objective

  • Motivate spectral clustering and address its scalability and out-of-sample-extension limitations.
  • Develop a neural network that learns the spectral embedding while enforcing orthogonality under stochastic training.
  • Incorporate learned affinities via a Siamese network to improve clustering quality.
  • Enable end-to-end unsupervised training and evaluate on large-scale datasets.

Proposed method

  • Train a neural network to approximate the spectral embedding by minimizing a pairwise-distance loss weighted by an affinity matrix.
  • Enforce orthogonality of the network outputs via a constrained output layer implemented through a QR-decomposition-based orthogonalization.
  • Use a Siamese network to learn adaptive, data-driven affinities instead of fixed Euclidean distances.
  • Optionally apply the network in a code space produced by autoencoders to improve clustering quality.
  • Perform k-means in the learned embedding space to obtain final cluster assignments.
  • Provide out-of-sample extension by mapping new points through the trained network.

Experimental results

Research questions

  • RQ1Can a neural network learn the spectral embedding of a graph Laplacian in a scalable, end-to-end fashion?
  • RQ2Does constraining the network to yield orthogonal outputs enable faithful approximation of Laplacian eigenvectors?
  • RQ3Can learned (Siamese) affinities improve spectral clustering quality over fixed Euclidean affinities?
  • RQ4How well does SpectralNet generalize to unseen data (out-of-sample extension)?

Key findings

  • SpectralNet with Siamese-based affinities and code-space representations substantially improves MNIST clustering over several baselines and approaches IMSAT in some settings.
  • With Siamese distance in code space, MNIST ACC reaches 0.971 and NMI 0.924; Reuters with code-space Siamese reaches ACC 0.803 and NMI 0.532.
  • In input space with Euclidean distance, MNIST ACC is 0.622 and NMI 0.687; in code space with Euclidean distance, MNIST ACC is 0.800 and NMI 0.814.
  • SpectralNet using Siamese affinities outperforms many deep clustering baselines (DEC, DCN, VaDE, JULE, DEPICT) and is competitive with IMSAT on MNIST.
  • On Reuters, SpectralNet in code space with Siamese affinity achieves the best reported ACC of 0.803 and NMI of 0.532 among the tested variants.
  • Theoretical analysis provides a VC-dimension lower bound showing spectral clustering’s expressive power grows at least linearly with the number of points.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.