Abstract
We present GraphTSNE, a novel visualization technique for graph-structured data based on t-SNE. The growing interest in graph-structured data increases the importance of gaining human insight into such datasets by means of visualization. Among the most popular visualization techniques, classical t-SNE is not suitable on such datasets because it has no mechanism to make use of information from the graph structure. On the other hand, visualization techniques which operate on graphs, such as Laplacian Eigenmaps and tsNET, have no mechanism to make use of information from node features. Our proposed method GraphTSNE produces visualizations which account for both graph structure and node features. It is based on scalable and unsupervised training of a graph convolutional network on a modified t-SNE loss. By assembling a suite of evaluation metrics, we demonstrate that our method produces desirable visualizations on three benchmark datasets.
Introduction
Visualizing high-dimensional data is a cornerstone of exploratory data analysis. Industry-standard tools like t-SNE and UMAP excel at finding clusters in feature space but are inherently "graph-blind" — they do not account for explicit relationships between data points, such as citations in a document network or social ties. Conversely, graph layout algorithms like Laplacian Eigenmaps focus entirely on connectivity, often ignoring the rich attribute data associated with each node.
GraphTSNE addresses this gap by providing a unified framework that treats node features and graph structure as equal contributors to the final visualization.
Methodology
The core of GraphTSNE is a parametric version of t-SNE implemented via a deep learning backbone. Instead of optimizing point coordinates directly, the method trains a model to learn the mapping from high-dimensional space to a 2D or 3D embedding.
Architecture
The authors utilize a two-layer Residual Gated Graph Convolutional Network (GCN). GCNs are particularly suited for this task as they naturally aggregate information from a node's neighborhood, ensuring that the resulting visualization is spatially smooth relative to the graph topology.
Dual Loss Function
The innovation lies in a composite loss function $C_T$ that balances feature-based and graph-based information: $$C_T = \alpha C_G + (1 - \alpha) C_X$$ - $C_X$ (Feature Clustering Loss): A standard t-SNE loss using Euclidean distances between node features. - $C_G$ (Graph Clustering Loss): A modified t-SNE loss utilizing graph-theoretic shortest-path distances (geodesics) between nodes.
A hyperparameter $\alpha \in [0, 1]$ allows users to tune the visualization's sensitivity. Setting $\alpha=0$ recovers classical t-SNE behavior, while $\alpha=1$ results in a pure graph-based layout.
Experimental Evaluation
The researchers evaluated GraphTSNE on three benchmark citation networks: Cora, CiteSeer, and PubMed. In these datasets, nodes represent documents (word-frequency vectors) and edges represent citations.
As shown in the qualitative comparison above, GraphTSNE produces cleaner cluster separation than classical t-SNE. It avoids the "hairball" effect common in pure graph layouts while maintaining better organization than feature-only methods.
Results and Discussion
The authors found that intermediate values of $\alpha$ (typically between 0.4 and 0.5) yielded the most informative visualizations. This "sweet spot" balances the preservation of local feature neighborhoods with global graph connectivity.
Quantitatively, GraphTSNE consistently outperformed baseline methods. On the Cora dataset, it achieved a 1-Nearest Neighbor (1-NN) generalization accuracy of approximately 85%, compared to roughly 75% for pure feature-based t-SNE. High scores in both "Graph Trustworthiness" and "Feature Trustworthiness" metrics confirm that the method successfully preserves the latent structure of both domains.
Conclusion and Future Work
GraphTSNE offers a robust solution for visualizing complex graph-structured data. While the current $O(N^2)$ complexity for distance matrix precomputation limits it to medium-sized graphs, future work involving tree-based approximations could scale the method to millions of nodes. Additionally, because GraphTSNE uses a neural network backbone, it holds potential for inductive visualization — mapping new nodes into an existing layout without full retraining.
Summary updated