Abstract
We present ShapeVis, a scalable visualization technique for point cloud data inspired from topological data analysis. Our method captures the underlying geometric and topological structure of the data in a compressed graphical representation. Much success has been reported by the data visualization technique Mapper, that discreetly approximates the Reeb graph of a filter function on the data. However, when using standard dimensionality reduction algorithms as the filter function, Mapper suffers from considerable computational cost. This makes it difficult to scale to high-dimensional data. Our proposed technique relies on finding a subset of points called landmarks along the data manifold to construct a weighted witness-graph over it. This graph captures the structural characteristics of the point cloud, and its weights are determined using a Finite Markov Chain. We further compress this graph by applying induced maps from standard community detection algorithms. Using techniques borrowed from manifold tearing, we prune and reinstate edges in the induced graph based on their modularity to summarize the shape of data. We empirically demonstrate how our technique captures the structural characteristics of real and synthetic data sets. Further, we compare our approach with Mapper using various filter functions like t-SNE, UMAP, LargeVis and show that our algorithm scales to millions of data points while preserving the quality of data visualization.
Introduction
Visualizing high-dimensional data, such as word embeddings or genomic sequences, typically relies on dimensionality reduction techniques like t-SNE or UMAP. While effective for identifying local clusters, these methods often struggle with scalability and the preservation of global topology. As datasets grow into the millions, traditional algorithms become computationally expensive and frequently produce "hairball" visualizations where global relationships are obscured. Topological Data Analysis (TDA) tools like Mapper offer a structural alternative by representing data as a graph, but they are often difficult to tune and computationally heavy. ShapeVis addresses these limitations by providing a scalable topological visualization technique that transforms massive datasets into concise, readable graphs by capturing global geometric structures far more efficiently than existing methods.
Methods
ShapeVis follows a multi-stage pipeline to distill a point cloud into a representative graph:
- Manifold Landmarking: The algorithm selects a subset of "landmarks" to represent the data manifold, building a 1-witness complex where edges are added if non-landmark points witness the proximity of two landmarks.
- Random-Walk Weighting: To determine connection strength, a Finite Markov Chain simulates random walks across the graph. Higher edge weights are assigned to connections frequently traversed during these walks.
- Community Detection: Standard algorithms like Louvain or Leiden partition the landmark graph into communities, each of which becomes a single node in the final visualization.
- Modularity-based Manifold Tearing: To ensure readability, ShapeVis uses a "tearing" procedure. It builds a spanning subgraph based on edge modularity, selectively reintroducing edges that form "essential loops" (representing real holes in the data) while pruning redundant noise.
Results and Discussion
The authors evaluated ShapeVis on standard benchmarks (MNIST, Fashion-MNIST) and massive real-world datasets, including the 3-million-point GoogleNews Word Vectors and the 4-million-node LiveJournal dataset.
Scalability and Performance
ShapeVis demonstrated superior scalability compared to traditional TDA tools. On the LiveJournal dataset, ShapeVis completed its visualization in 3,351 seconds, whereas Mapper (using LargeVis) required 13,804 seconds. Notably, UMAP encountered memory overflow errors on the full dataset, highlighting the efficiency of the ShapeVis landmarking approach.
Qualitative and Quantitative Accuracy
ShapeVis excels at preserving the "why" behind data relationships. In Fashion-MNIST, ShapeVis captures the visual similarity between categories by connecting "T-shirt" nodes to "Dress" nodes—a relationship often lost in the isolated clusters produced by t-SNE. Quantitatively, for the GoogleNews dataset, ShapeVis achieved an average cosine similarity of 0.224 within its segments, outperforming Mapper-UMAP (0.186) and Mapper-LargeVis (0.132), indicating higher semantic coherence.
Conclusion
ShapeVis provides a robust, scalable framework for summarizing the shape of high-dimensional data without the projection losses typical of 2D coordinate-based methods. While the current implementation offers a powerful high-level summary, future work will focus on hierarchical exploration—allowing users to investigate the internal structure of individual nodes—and reducing the sensitivity of the algorithm to initial hyperparameters.
Summary updated