NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Graph visualization with latent variable models

Juuso A. Parkkinen, Kristian Nybo, Jaakko Peltonen, Samuel Kaski

Abstract

Traditional graph visualization methods often prioritize local connections, frequently failing to reveal the broader structural patterns of complex networks. This paper introduces a model-based framework that utilizes latent variable models (SSN-LDA) to capture global community structures and a neighbor-retrieval framework (NeRV) to project these patterns into clear 2D visualizations. By focusing on link distributions rather than raw edges, this approach successfully uncovers functional similarities in disassortative networks that standard algorithms miss.

Introduction

The primary goal of graph visualization is to represent relationships between nodes intuitively. Most popular algorithms, such as force-directed layouts, rely on a "local-first" heuristic: nodes with direct edges are pulled together, while those without are pushed apart. While effective for simple assortative networks, this approach struggles with disassortative networks where similar nodes (e.g., nouns in a word-adjacency graph) rarely connect directly but share similar patterns of connection to other nodes (e.g., adjectives). To address this, the authors propose that nodes should be placed nearby if they share similar structural roles, regardless of direct connectivity.

Methodology

The proposed pipeline shifts graph drawing from a heuristic task to a statistical modeling problem through three key steps:

  1. Generative Modeling (SSN-LDA): The graph is fitted to a "Simple Social Network Latent Dirichlet Allocation" model. This treats the network as a collection of overlapping latent communities, assigning each node a probability distribution (a "structural signature") over these components.
  2. Measuring Similarity: Node similarity is calculated using the Hellinger distance between their latent distributions, providing a rigorous metric for functional similarity.
  3. Rigorous Projection (NeRV): The high-dimensional signatures are projected into 2D using the Neighbor Retrieval Visualizer (NeRV). NeRV treats visualization as an information retrieval problem, allowing users to balance precision (avoiding false neighbors) and recall (maintaining actual neighbors).

Experimental Evaluation

The framework was evaluated on three distinct network types:

  • Football Graph: An assortative network of US college football teams where edges represent games played.
  • Adjective-Noun Graph: A disassortative network from Dickens' David Copperfield where nouns link to adjectives but rarely to other nouns.
  • Jane Austen Graph: A complex word-adjacency network (879 nodes, 2,284 links) constructed from seven novels, categorized by parts of speech.

Results and Discussion

The model-based approach demonstrates significant qualitative and quantitative improvements over traditional methods like Walshaw, SDE, and LinLog.

Comparison of graph layouts: Rows A-C show traditional methods (Walshaw, SDE, LinLog), while Row D shows the proposed latent variable model approach for the Jane Austen (left) and Adjective-Noun (right) datasets.

Qualitatively, traditional methods often produce "hairballs" in word-adjacency tests, failing to distinguish between different parts of speech. In contrast, the proposed method (Row D in the figure above) clearly separates nodes into interpretable clusters based on their functional roles. Quantitatively, on the Jane Austen dataset, a K-Nearest Neighbor (KNN) classifier using the 2D coordinates achieved 78% accuracy in predicting parts of speech, significantly outperforming Walshaw (53%), SDE (57.7%), and LinLog (49%). Furthermore, the approach naturally results in "edge bundling," making the global flow of the graph more legible.

Conclusion

By treating visualization as an act of hypothesis testing through generative modeling, this framework avoids the "assortative bias" inherent in traditional tools. While the computational cost is higher—requiring tens of minutes for the studied graphs—the resulting visualizations offer a much more accurate representation of the underlying network structure. Future work will focus on optimizing these algorithms for larger scales and incorporating additional node metadata into the modeling process.

Summary updated

BibTeX
@inproceedings{parkkinen2010graph,
  author = {Juuso A. Parkkinen and Kristian Nybo and Jaakko Peltonen and Samuel Kaski},
  title = {{Graph visualization with latent variable models}},
  booktitle = {MLG @ KDD},
  year = {2010},
  doi = {10.1145/1830252.1830265},
}
Figure