Large-scale manifold learning

Ameet Talwalkar, Sanjiv Kumar, Henry A. RowleyCVPR 2008

Abstract

This paper examines the problem of extracting low-dimensional manifold structure given millions of high-dimensional face images. Specifically, we address the computational challenges of nonlinear dimensionality reduction via Isomap and Laplacian Eigenmaps, using a graph containing about 18 million nodes and 65 million edges. Since most manifold learning techniques rely on spectral decomposition, we first analyze two approximate spectral decomposition techniques for large dense matrices (Nystrom and column-sampling), providing the first direct theoretical and empirical comparison between these techniques. We next show extensive experiments on learning low-dimensional embeddings for two large face datasets: CMU-PIE (35 thousand faces) and a web dataset (18 million faces). Our comparisons show that the Nystrom approximation is superior to the column-sampling method. Furthermore, approximate Isomap tends to perform better than Laplacian Eigenmaps on both clustering and classification with the labeled CMU-PIE dataset.

Introduction

Manifold learning—the art of finding low-dimensional structure in high-dimensional data—is a staple of machine learning. Many real-world datasets, like face images, are high-dimensional (thousands of pixels) but actually lie on a low-dimensional "manifold" defined by variables like pose, expression, and lighting. Algorithms like Isomap and Laplacian Eigenmaps aim to "unfold" this structure.

However, these algorithms historically hit a brick wall when faced with "Big Data." For 18 million points, the required $n \times n$ matrix would consume roughly 1,600 Terabytes of storage—far beyond the RAM of any single machine. This study demonstrates how to scale these techniques to a staggering 18 million images using approximation and distributed computing.

Methods

The authors address two main computational bottlenecks: neighborhood graph construction and spectral decomposition.

Approximate Spectral Decomposition

To avoid decomposing the full $18M \times 18M$ matrix, two sampling-based approximations are compared:

  • Nyström Method: Approximates the matrix using a small subset of $l$ columns and the intersection submatrix.
  • Column-sampling: Approximates the eigendecomposition by performing Singular Value Decomposition (SVD) directly on the sampled columns.
Comparison of eigenvalue approximation error between Nyström and Column-sampling methods across different sample sizes $l$.

Approximate Nearest Neighbors (ANN) and Distributed Isomap

To build the neighborhood graph, the authors use a combination of random projections and spill trees, finding the top 5 neighbors for 18 million points in about two days on a distributed cluster. They also implement a distributed version of Isomap, computing geodesic distances only between "landmark" points and the rest of the data to reduce the $O(n^2 \log n)$ bottleneck of Dijkstra’s algorithm.

Key Insights

A critical finding is that while Column-sampling can be more accurate for general matrix approximation, the Nyström method is superior for manifold learning. This is because similarity matrices in Isomap are not always Positive Semi-Definite (PSD). Nyström allows for identifying and discarding negative eigenvalues, whereas Column-sampling (via SVD) effectively takes the absolute value of eigenvalues, introducing noise into the embedding.

Furthermore, Isomap (dense similarity via geodesic distances) consistently outperformed Laplacian Eigenmaps (sparse graph Laplacian) on face pose tasks. Laplacian Eigenmaps tended to collapse data into compact regions, hindering clustering.

Results

The methods were tested on the CMU-PIE dataset (35,247 labeled faces) and the Webfaces-18M dataset (18.2 million unlabeled faces).

  • Clustering and Classification: On the PIE-10K subset, Nyström-approximated Isomap achieved 59.1% purity, nearly identical to "Exact" Isomap (58.4%) and significantly better than Laplacian Eigenmaps (35.8%). Isomap variants also achieved lower error rates (~10-11%) in pose classification.
  • Scalability: Generating the low-dimensional embedding for 18 million faces took only 1.5 hours using the Nyström method on a distributed cluster, compared to 6 hours for the Column-sampling approach.
  • Visual Continuity: The embeddings show smooth transitions in pose and identity along the manifold, proving the approximation successfully captured the underlying global structure.
Sequence of face images illustrating the smooth transitions in pose captured by the learned manifold.

Conclusion

This work proves that nonlinear manifold learning can scale to tens of millions of points. While challenges remain regarding "short-circuit" edges in massive graphs and the need for better data preprocessing (like face alignment), the success of the Nyström-approximated Isomap on 18 million faces sets a new benchmark for large-scale structural discovery in high-dimensional data.

Summary updated

BibTeX
@inproceedings{talwalkar2008large,
  author = {Ameet Talwalkar and Sanjiv Kumar and Henry A. Rowley},
  title = {{Large-scale manifold learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2008},
  url = {https://openreview.net/forum?id=H1Wl9aZObH},
}
Figure