GRAPHULY: GRAPH U-Nets-Based Multi-Level Graph LaYout

Kai Yan, Tiejun Zhao, Muyun Yang

Introduction

Graph layout—the process of positioning nodes and edges for visual clarity—is a cornerstone of data visualization. Traditional approaches, such as Force-Directed (FD) or Dimensionality Reduction (DR) techniques, are effective but plagued by two significant issues: high sensitivity to initial placement and heavy computational costs due to their iterative nature. These methods often require hundreds of passes to converge, making them unsuitable for large-scale or real-time applications.

GRAPHULY addresses these challenges by introducing a deep learning framework based on the Graph U-Net architecture. It generates high-quality graph layouts in a single feed-forward pass, achieving the aesthetic standards of traditional iterative methods like FM³ at a fraction of the computational cost.

The GRAPHULY Framework

The core of GRAPHULY is a U-Net-inspired pipeline adapted for graph data, consisting of two primary stages: coarsening and refinement.

The GRAPHULY architecture featuring coarsening and refinement stages with multi-level loss fusion.
  1. Coarsening Stage: The input graph is progressively simplified into "skeleton subgraphs." A critical innovation here is the attention-based edge contraction operator. Unlike standard graph pooling methods that can break connectivity, this operator ensures the graph remains a single connected component even at its coarsest level.
  2. Layout/Refinement Stage: The model predicts node coordinates at the coarsest level and then progressively "unpools" and refines these positions back to the original resolution.

To enhance structural awareness, GRAPHULY utilizes Laplacian Positional Encoding (LPE). By using the eigenvectors of the graph Laplacian as input features, the network receives a mathematical "map" of the graph's topology from the start, significantly accelerating convergence. Furthermore, a Multi-Level Loss Fusion strategy calculates "Stress" loss at every level of the U-Net, ensuring structural integrity across all scales.

Experimental Evaluation

The researchers evaluated GRAPHULY using a diverse set of benchmarks:

  • Synthetic Random Graphs: 9,500 graphs generated via the LFR algorithm, with node counts between 20 and 100.
  • The Rome Dataset: A standard benchmark containing over 11,000 real-world undirected graphs.
  • Topological Special Cases: Specific structures like 3D grids and cluster graphs were used to test visual quality and generalization.

Results and Discussion

GRAPHULY demonstrates significant improvements in both efficiency and quality. By utilizing Graph Attention Networks (GAT) rather than standard Graph Convolutional Networks (GCN), the model achieves stress levels comparable to classic non-deep-learning algorithms while remaining incredibly lightweight; the GAT version uses only 2.9K parameters.

Visual comparison of graph layouts generated by GRAPHULY versus the traditional FM³ algorithm.

Key findings include:

  • Speed: As a feed-forward neural network, GRAPHULY predicts layouts in a single pass, making it orders of magnitude faster than the iterative FM³ algorithm.
  • Visual Quality: Quantitatively, the stress values for GRAPHULY-GAT are nearly identical to FM³ ground truths. Qualitatively, the model maintains clear structures even for complex graphs.
  • Generalization: Despite being trained on small graphs (up to 100 nodes), the model successfully scales to much larger structures, such as the 2000-node "Block_2000" graph, without losing structural clarity.

Conclusion

GRAPHULY proves that Graph U-Nets, combined with attention-based pooling and Laplacian encoding, can bridge the gap between the speed of deep learning and the quality of traditional graph drawing. Future work will focus on incorporating explicit aesthetic constraints (such as edge-crossing minimization) into the loss function and exploring the upper limits of node counts for this architecture.

Summary updated

BibTeX
@article{yan2022graphuly,
  author = {Kai Yan and Tiejun Zhao and Muyun Yang},
  title = {{GRAPHULY: GRAPH U-Nets-Based Multi-Level Graph LaYout}},
  journal = {IEICE Trans. Information and Systems},
  year = {2022},
  doi = {10.1587/transinf.2022edl8050},
}
Figure