Visualizing Large-scale and High-dimensional Data

Jian Tang, Jingzhou Liu, Ming Zhang, Qiaozhu Mei

Abstract

We study the problem of visualizing large-scale and high-dimensional data in a low-dimensional (typically 2D or 3D) space. Much success has been reported recently by techniques that first compute a similarity structure of the data points and then project them into a low-dimensional space with the structure preserved. These two steps suffer from considerable computational costs, preventing the state-of-the-art methods such as the t-SNE from scaling to large-scale and high-dimensional data (e.g., millions of data points and hundreds of dimensions). We propose the LargeVis, a technique that first constructs an accurately approximated K-nearest neighbor graph from the data and then layouts the graph in the low-dimensional space. Comparing to t-SNE, LargeVis significantly reduces the computational cost of the graph construction step and employs a principled probabilistic model for the visualization step, the objective of which can be effectively optimized through asynchronous stochastic gradient descent with a linear time complexity. The whole procedure thus easily scales to millions of high-dimensional data points. Experimental results on real-world data sets demonstrate that the LargeVis outperforms the state-of-the-art methods in both efficiency and effectiveness. The hyper-parameters of LargeVis are also much more stable over different data sets.

1. Introduction

In the era of big data, researchers across various domains—from natural language processing to social network analysis—frequently encounter high-dimensional information such as word embeddings or image features. Projecting these into a visualizable 2D or 3D space is essential for identifying clusters, patterns, and anomalies. While t-distributed Stochastic Neighbor Embedding (t-SNE) has been the dominant method for years, it faces a significant "scalability wall."

The primary bottlenecks in existing visualization methods are:

  1. Graph Construction: Building a similarity graph for millions of points in high-dimensional space is computationally prohibitive.
  2. Layout Optimization: The process of placing points in a low-dimensional space often has a complexity of $O(N \log N)$ or worse, making it sluggish for massive datasets.
  3. Hyperparameter Sensitivity: Methods like t-SNE are notoriously sensitive to parameters like learning rate and perplexity, often requiring extensive trial-and-error.

2. The LargeVis Framework

LargeVis addresses these challenges by splitting the visualization pipeline into two highly optimized stages: efficient K-nearest neighbor (KNN) graph construction and a probabilistic layout model.

The LargeVis pipeline: (a) High-dimensional feature vectors are processed via (b) K-NNG construction, followed by (c) Graph visualization to produce a 2D layout.

2.1 Efficient KNN Graph Construction

Traditional space-partitioning trees (e.g., vantage-point trees) often degrade in performance as dimensionality increases. LargeVis employs a hybrid approach. It first uses random projection trees to obtain a rough approximation of the nearest neighbors. Subsequently, it applies an iterative "neighbor exploring" technique based on the intuition that "a neighbor of my neighbor is likely my neighbor." By exploring the neighbors of current candidates, the algorithm refines the graph, reaching nearly 100% accuracy much faster than previous methods.

2.2 Probabilistic Layout Model

Once the KNN graph is constructed, LargeVis treats the layout as a probabilistic optimization problem. The model defines probabilities for both "positive edges" (pulling similar points together) and "negative edges" (pushing dissimilar points apart).

  • Negative Sampling: To prevent points from collapsing into a single cluster and to avoid $O(N^2)$ computations, LargeVis uses negative sampling—a technique borrowed from models like Word2Vec. It randomly samples non-existent edges to push dissimilar points apart.
  • Optimization: The objective function is solved using Asynchronous Stochastic Gradient Descent (ASGD). By treating edge weights as sampling probabilities, the authors ensure the gradient remains stable, allowing the model to achieve linear scalability, $O(N)$, with respect to the number of data points.

3. Experimental Evaluation

The authors evaluated LargeVis on several massive, real-world datasets, including MNIST (70k points), WikiWord/WikiDoc (up to 2.8M articles), and LiveJournal (nearly 4M nodes).

3.1 Efficiency and Accuracy

LargeVis demonstrates a significant speedup over state-of-the-art methods. On the WikiDoc dataset, LargeVis was 37 times faster at graph construction than the vantage-point trees typically used in t-SNE implementations.

Comparison of running time (minutes) vs. accuracy for graph construction across four datasets: (a) WikiWord, (b) WikiDoc, (c) LiveJournal, and (d) CSAuthor. LargeVis (red) consistently achieves superior accuracy with minimal running time.

As shown in the performance plots, LargeVis (represented by red circles) consistently occupies the bottom-right corner, indicating high accuracy with very low computational cost compared to methods like RP-Tree, NN-Descent, and VP-Tree.

3.2 Scalability and Robustness

For the final visualization step, LargeVis was approximately 7 times faster than t-SNE on large datasets. It can visualize 3.5 million points with 100 dimensions in just a few hours on a single commodity machine—a task that is practically intractable for standard t-SNE. Furthermore, LargeVis is significantly less sensitive to hyperparameters; default settings were found to work across vastly different data scales.

4. Conclusion

LargeVis represents a major advancement in high-dimensional data visualization. By moving from $O(N \log N)$ to $O(N)$ complexity through negative sampling and ASGD, it enables the visualization of millions of points on standard hardware. Its robustness and efficiency make it a powerful tool for exploratory analysis of massive datasets. Future work may involve adapting the framework for dynamic, streaming data and developing more interactive exploration tools based on these high-quality layouts.

Summary updated

BibTeX
@inproceedings{tang2016visualizing,
  author = {Jian Tang and Jingzhou Liu and Ming Zhang and Qiaozhu Mei},
  title = {{Visualizing Large-scale and High-dimensional Data}},
  booktitle = {The Web Conference},
  year = {2016},
  url = {https://openreview.net/forum?id=BkW0HZW_ZB},
}
Figure