WatE: A Wasserstein t-distributed Embedding Method for Information-enriched Graph Visualization

Minjie Cheng, Dixin Luo, Hongteng XuAAAI 2025

Introduction

Visualizing collections of graphs—ranging from molecular structures to social networks—is a fundamental task in data science. Traditionally, this is achieved by "squashing" each graph into a single vector via global pooling and plotting it as a point using techniques like t-SNE. However, this point-based paradigm is inherently lossy; it discards the internal structural hierarchy and node-level diversity that define a graph's unique "texture."

WatE (Wasserstein t-distributed Embedding) addresses this limitation by representing entire graphs as ellipses in a 2D space. By modeling each graph as a distribution of its node embeddings, WatE captures both high-level inter-graph relationships and the internal structural characteristics of individual graphs.

Methodology: From Points to Distributions

The core innovation of WatE lies in its transition from deterministic point embeddings to distributional representations. The framework follows a multi-step pipeline to preserve structural information.

1. GNN-based Embedding and Distributional Modeling

A Graph Neural Network (GNN) first processes the input graph to generate embeddings for every node. Rather than averaging these into a single vector, WatE calculates the empirical mean ($\hat{\mu}$) and covariance ($\hat{\Sigma}$) of the node embeddings. This models the graph as a Gaussian distribution in a latent space.

2. Regularized t-SNE (Rt-SNE)

The authors introduce Rt-SNE to map these high-dimensional distributions into a 2D visualization.

  • Input Similarity: The Fused Gromov-Wasserstein (FGW) distance measures similarity between raw graphs.
  • Embedding Similarity: The Wasserstein distance measures similarity between the Gaussian distributions. Because Gaussians have a closed-form Wasserstein distance, the computation is efficient and differentiable.
The WatE framework: A GNN generates node embeddings, which are modeled as Gaussian distributions. The model is trained by aligning the affinity matrix of these distributions with the original graph affinity matrix using KL divergence.

3. Visualization and Optimization

In the resulting 2D plot, the mean determines the ellipse's center, while the covariance determines its size, stretch, and orientation. The model is optimized using a combination of KL-divergence, a Gromov-Wasserstein clustering loss, and a covariance regularizer to ensure stable and distinct elliptical markers.

Key Results and Insights

WatE was evaluated on several standard benchmarks, including social networks (IMDB-B) and bioinformatics datasets (MUTAG, AIDS).

Quantitative Performance

WatE demonstrated superior clustering accuracy, measured by the Rand Index. On the AIDS dataset, it achieved a score of 93.21%, significantly outperforming kernel-based and standard GNN baselines. Its inductive nature also allows it to visualize new, unseen graphs instantly without retraining.

Qualitative Superiority

The primary advantage of WatE is the "information-enriched" nature of its visualizations. Unlike a simple scatter plot, the ellipses provide visual cues about the graph's internal variance. A long, thin ellipse suggests nodes are distributed along a specific structural axis, while a small circle indicates a homogeneous node distribution.

Qualitative comparison of WatE against baseline methods on IMDB-B, MUTAG, and AIDS datasets. WatE's elliptical representations provide superior cluster separation and internal structural information.

Conclusion and Future Work

WatE bridges the gap between simple scatter plots and detailed structural analysis. By leveraging the Wasserstein distance and Gaussian modeling, it provides a scalable, inductive, and highly informative way to visualize graph data. While currently limited by the Gaussian assumption and sensitivity to noise in affinity matrices, future iterations may explore non-Gaussian distributions and domain-specific applications, such as protein functional block analysis.

Summary updated

BibTeX
@inproceedings{cheng2025wate,
  author = {Minjie Cheng and Dixin Luo and Hongteng Xu},
  title = {{WatE: A Wasserstein t-distributed Embedding Method for Information-enriched Graph Visualization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i15.33758},
}
Figure