Abstract
Stochastic neighbor embedding (SNE) and related nonlinear manifold learning algorithms achieve high-quality low-dimensional representations of similarity data, but are notoriously slow to train. We propose a generic formulation of embedding algorithms that includes SNE and other existing algorithms, and study their relation with spectral methods and graph Laplacians. This allows us to define several partial-Hessian optimization strategies, characterize their global and local convergence, and evaluate them empirically. We achieve up to two orders of magnitude speedup over existing training methods with a strategy (which we call the spectral direction) that adds nearly no overhead to the gradient and yet is simple, scalable and applicable to several existing and future embedding algorithms.
Introduction
Nonlinear dimensionality reduction (NLDR) is a cornerstone of data visualization, enabling the projection of high-dimensional datasets into intuitive 2D or 3D spaces. Algorithms like Stochastic Neighbor Embedding (SNE), t-SNE, and Elastic Embedding (EE) are prized for their ability to preserve local structures by balancing attractive forces (keeping similar points together) and repulsive forces (pushing dissimilar points apart).
However, these algorithms face a significant computational hurdle. Their objective functions are non-convex and typically ill-conditioned, making standard optimization techniques like Gradient Descent (GD) prohibitively slow. While spectral methods such as Laplacian Eigenmaps offer rapid solutions via eigenvalue problems, they often lack the visualization quality of their non-convex counterparts. This research bridges that gap, introducing an optimization strategy that brings spectral-level speed to high-quality nonlinear embeddings.
The Spectral Direction Strategy
The authors propose a unified framework for NLDR objectives: $E(X) = E^+(X) + \lambda E^-(X)$, where $E^+$ represents the attractive term and $E^-$ the repulsive term. The core innovation, the Spectral Direction (SD), leverages the specific mathematical structure of these problems.
Partial Hessian and the Laplacian Connection
Instead of the full, computationally expensive Hessian, SD utilizes only the Hessian of the attractive term ($\nabla^2 E^+$). In many prominent models, this partial Hessian corresponds to a graph Laplacian. This matrix is positive semi-definite, sparse, and—critically—often remains constant throughout the optimization process.
By pre-computing the Cholesky factorization of this constant partial Hessian, each optimization step is reduced to two "back-solves." This approach "bends" the exact gradient using the fixed curvature of a simpler spectral embedding, providing a search direction far superior to a simple gradient step with minimal overhead. To ensure scalability, $k$-nearest neighbor graphs are employed to maintain extreme sparsity in the partial Hessian matrix.
Experimental Evaluation
The effectiveness of the Spectral Direction was evaluated on datasets including COIL-20 (720 images) and MNIST (20,000 images).
Key Results
- Significant Speedups: The SD method achieved up to a 100x speedup over standard Gradient Descent. As shown in the performance table, SD and its variants consistently outperform traditional methods like Conjugate Gradient (CG) and L-BFGS in both function evaluations and total runtime.
- Scalability on MNIST: On the 20,000-point MNIST dataset, SD converged in approximately 15 minutes. Off-the-shelf optimizers like L-BFGS failed to significantly reduce error within an hour, while Gradient Descent remained stagnant at the starting point.
- Improved Visualization Quality: The speed of SD enables more thorough optimization, such as the use of homotopy methods. This results in superior cluster separation and clearer visualizations compared to previous state-of-the-art fixed-point iterations.
Discussion and Future Directions
While the Spectral Direction drastically reduces the cost of calculating search directions, the $N^2$ complexity of calculating the gradient and objective function remains a bottleneck for datasets with millions of points. Future work may integrate "fast multipole methods" or N-body simulation techniques to address this. Additionally, while SD currently ignores the curvature of the repulsive term for simplicity and stability, further refinements could explore hybrid approaches. Nonetheless, by exploiting problem-specific structure rather than treating optimization as a "black box," SD represents a major leap in the practical utility of nonlinear embeddings.
Summary updated