Towards Dynamic Message Passing on Graphs

Junshu Sun, Chenxue Yang, Xiangyang Ji, Qingming Huang, Shuhui Wang

Introduction

Standard Graph Neural Networks (GNNs) are inherently topology-dependent, passing messages primarily between nodes that are physically connected in the input graph. While intuitive, this approach creates two significant challenges: over-smoothing, where node features converge and become indistinguishable over multiple layers, and over-squashing, where information from large neighborhoods is bottlenecked into a single node.

Existing solutions often fall into two categories: Global Attention (e.g., Graph Transformers), which is computationally expensive ($O(n^2)$), or Static Virtual Nodes, which often fail to provide the necessary flexibility by connecting to all nodes with equal weight. The N² framework seeks a middle ground: a method that is globally aware and flexible like attention, but computationally efficient and selective in how it routes information.

The N² Framework

The N² (Nodes and pseudo Nodes) model introduces a dynamic message-passing mechanism that decouples GNNs from fixed input topologies. By projecting graph nodes and a set of learnable "pseudo nodes" into a shared, evolving "Common State Space," N² creates flexible communication "highways" that scale linearly ($O(n)$).

Overview of the N² framework showing the projection of graph nodes into a common state space for dynamic message passing.

Methodology and Components

  • Common State Space: Both actual graph nodes and learnable pseudo nodes are embedded into the same latent space. Their relative "coordinates" in this space determine how they interact.
  • Proximity Measurement: Instead of fixed edges, connection strength is calculated using a piece-wise weighted inner product. This allows the model to approximate complex, non-linear relationships without the computational burden of path integrals.
  • Dynamic Pathways: Unlike static virtual nodes, pseudo nodes are mobile. As the model runs through recursive steps, the nodes' positions in the state space shift, meaning the communication pathways evolve to find the most informative routes.
Comparison between static pathways (uniform connectivity) and the proposed dynamic pathways (weighted connectivity) mediated by pseudo nodes.

Experimental Evaluation

The authors put N² through a gauntlet of 18 benchmarks, including biochemical datasets (OGB-molpcba), social networks (COLLAB), and various node classification tasks on both homophilic and heterophilic graphs.

Key Results

  • State-of-the-Art Performance: On the massive OGB-molpcba dataset, N² achieved an Average Precision of 33.90%, outperforming the heavy-duty Graphormer (31.39%) despite having ~230x fewer parameters (516K vs. 119M).
  • Scalability: Empirical tests confirmed that N² scales linearly with the number of graph nodes. While dense attention models often encounter Out-of-Memory (OOM) errors on large graphs, N² handles them efficiently.
  • Alleviating Over-smoothing: Using Dirichlet energy as a metric, the authors showed that N² maintains feature diversity across recursive steps, whereas simpler models quickly flatline into over-smoothed states.

Key Insights and Discussion

Visualization via t-SNE shows that pseudo nodes naturally cluster toward specific groups of graph nodes, effectively learning the community structure of the graph on the fly. Furthermore, in "Trees Match" experiments—a classic test for over-squashing—N² maintained high accuracy even as tree depth increased, proving that dynamic weighting is the key to bypassing information bottlenecks.

Limitations and Future Work

While N² is a significant step forward, the authors note that performance can dip if the number of recursive steps becomes too high. Future research directions include developing more sophisticated update mechanisms for deep recursions, comprehensively bridging all neurons and graph nodes, and exploring step-dependent parameters to improve precision in position optimization.

Summary updated

BibTeX
@inproceedings{sun2024towards,
  author = {Junshu Sun and Chenxue Yang and Xiangyang Ji and Qingming Huang and Shuhui Wang},
  title = {{Towards Dynamic Message Passing on Graphs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=4BWlUJF0E9},
}
Figure