Open the Eyes of MPNN: Vision Enhances MPNN in Link Prediction

Yanbin Wei, Xuehao Wang, Zhan Zhuang, Yang Chen, Shuhao Chen, Yulong Zhang 0005, Yu Zhang 0006, James T. Kwok

Abstract

Link prediction is a fundamental task in graph machine learning, traditionally dominated by Message Passing Neural Networks (MPNNs). However, MPNNs are theoretically limited by the 1-dimensional Weisfeiler-Lehman (1-WL) test, often failing to distinguish topologically distinct structures. We present the Graph Vision Network (GVN) framework, which introduces a visual perspective to graph learning. By rendering local subgraphs into images and employing computer vision encoders to extract Visual Structural Features (VSFs), GVN overcomes the structural "blind spots" of standard models. Our optimized variant, Efficient GVN (E-GVN), ensures scalability to large-scale graphs. Experimental results across seven benchmarks demonstrate that GVN consistently achieves state-of-the-art performance, providing significant boosts to existing MPNN architectures.

Introduction

Message Passing Neural Networks (MPNNs) have become the standard for graph-based tasks like link prediction. Despite their success, they process graph topology through local aggregations that can miss complex structural patterns. This limitation is formally described by the 1-WL isomorphism test: certain non-isomorphic graphs appear identical to an MPNN. To bridge this gap, researchers often rely on hand-crafted structural features (SFs), such as common neighbor counts or shortest path distances. However, these heuristics are often insufficient for capturing the full topological richness of a network.

The core intuition behind this work is that humans often understand complex graph structures best through visualization. By leveraging the advanced feature extraction capabilities of modern computer vision (CV) models, we can "open the eyes" of MPNNs, allowing them to perceive structural nuances that are mathematically difficult to aggregate.

The GVN Framework

The Graph Vision Network (GVN) framework integrates visual insights with traditional message passing. The process involves three primary steps: subgraph visualization, feature extraction, and feature integration.

The GVN and E-GVN architectures alongside examples of link-centered and node-centered image illustrations.

Graph Vision Network (GVN)

For a potential link $(u, v)$, GVN extracts a local $k$-hop subgraph. This subgraph is rendered as an image using standard layout algorithms (e.g., Graphviz). A vision encoder, such as ResNet50, processes this image to generate Vision Structural Features (VSFs). These VSFs are then fused with node representations from a base MPNN using mechanisms like cross-attention or simple concatenation.

Efficient GVN (E-GVN)

While GVN is powerful, rendering an image for every potential edge is computationally expensive ($O(|E|)$). To address this, Efficient GVN (E-GVN) shifts the focus to node-centered visualizations ($O(|V|)$). By visualizing the neighborhood of each node once and using a lightweight "Adapter" with a frozen vision encoder, E-GVN maintains high performance while scaling to massive datasets.

Visualization of local $k$-hop subgraphs for varying values of $k$, illustrating the increasing structural complexity captured by the vision encoder.

Key Insights

  • Beyond 1-WL: Vision encoders can easily distinguish between nodes that have identical message-passing signatures but different visual layouts, effectively breaking the 1-WL limit.
  • Implicit Heuristics: VSFs capture a wide array of traditional structural features simultaneously. The vision encoder learns to adaptively prioritize different patterns (e.g., density vs. path length) based on the specific dataset.
  • Style and Consistency: The effectiveness of the model depends on consistent visualization styles. The authors found that "No-label" visualizations—where nodes and edges are drawn without identifiers—force the model to focus purely on topology, leading to better generalization.

Experimental Results

The GVN framework was evaluated on seven diverse benchmarks, including Planetoid citation networks and large-scale Open Graph Benchmark (OGB) datasets.

  • Performance Boost: Adding GVN to a standard Graph Convolutional Network (GCN) resulted in performance improvements of 21% to 38% on citation datasets.
  • State-of-the-Art: When integrated with top-performing models like NCNC, GVN established new state-of-the-art results across all tested benchmarks.
  • Scalability: E-GVN was successfully applied to the ogbl-citation2 dataset, which contains over 30 million edges, demonstrating that the visual approach is viable for real-world, large-scale applications.

Conclusion

By treating graph structure as a visual signal, GVN provides a novel and effective way to enhance the representational power of MPNNs. While there is a computational cost associated with subgraph rendering, the performance gains and the ability to capture complex topological features make it a compelling direction for future research. Potential extensions include 3D graph representations and the use of Multi-modal Large Language Models (MLLMs) for deeper structural interpretation.

Summary updated

BibTeX
@inproceedings{wei2025open,
  author = {Yanbin Wei and Xuehao Wang and Zhan Zhuang and Yang Chen and Shuhao Chen and Yulong Zhang and Yu Zhang and James T. Kwok},
  title = {{Open the Eyes of MPNN: Vision Enhances MPNN in Link Prediction}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=4y8H1sGK4Z},
}
Figure