DYMAG: Rethinking Message Passing Using Dynamical-systems-based Waveforms

Dhananjay Bhaskar, Xingzhi Sun, Yanlei Zhang, Charles Xu, Arman Afrasiyabi, Siddharth Viswanath, Oluwadamilola Fasina, Guy Wolf, Michael Perlmutter, Smita Krishnaswamy · DOI

Abstract

Standard message-passing neural networks (MPNNs) typically aggregate local neighbors via mean-aggregation, which can be viewed as convolving with a simple rectangular waveform. We present DYMAG, a graph neural network that goes beyond local averaging by convolving node features with sophisticated waveforms generated from dynamical systems such as the heat equation, wave equation, and the chaotic Sprott model. By utilizing snapshots of these dynamics at different time points, DYMAG creates multi-scale waveforms capable of capturing complex topological and geometric structures like cycles and connectivity. Theoretically, we demonstrate that these dynamic waveforms capture salient graph information even without features. Empirically, DYMAG outperforms baseline models on tasks ranging from graph parameter recovery to property prediction for proteins, molecules, and materials.

Introduction: Beyond Rectangular Message Passing

Standard Message Passing Neural Networks (MPNNs) rely on local averaging to update node representations. From a signal processing perspective, this is equivalent to convolving node features with a "rectangular waveform" that is non-zero only for 1-hop neighbors. While effective for many tasks, this approach faces three major bottlenecks: over-smoothing, where repeated averaging makes features indistinguishable; under-reaching, where models fail to capture long-range structures; and heterophily, where local averaging destroys information in graphs where neighbors have different labels.

DYMAG (Dynamical-systems-based Message AGgregation) addresses these limitations by replacing the fixed neighborhood mask with a diverse bank of multi-scale waveforms. By moving beyond "low-pass" averaging, DYMAG extracts high-frequency and multi-band-pass information from the graph's topology.

The DYMAG Framework

The DYMAG architecture operates in two primary phases: Waveform Bank Creation and Multi-scale Aggregation.

Overview of the DYMAG architecture, featuring waveform creation via PDEs and multi-scale aggregation.

1. Waveform Bank Creation

Instead of a fixed mask, DYMAG solves physical equations on the graph to create a bank of basis functions:

  • Heat Equation: Acts as a low-pass filter, capturing smooth, global information.
  • Wave Equation: Acts as a multi-band-pass filter. Because waves "echo" through the graph, they are uniquely suited for detecting cycles and long-range connectivity.
  • Sprott Model: A chaotic dynamical system highly sensitive to minute structural changes, ideal for detecting subtle topological shifts and handling heterophilic data.

2. Multi-scale Aggregation

Node features are convolved with these waveforms at multiple time snapshots ($t_k$). This allows the model to "see" the graph at different effective scales simultaneously. To maintain efficiency, DYMAG uses Chebyshev polynomial approximations and Runge-Kutta methods, ensuring computational complexity remains linear with respect to the number of edges ($O(|E|)$), avoiding the $O(n^3)$ cost of full eigendecomposition.

Theoretical and Empirical Insights

A key contribution of DYMAG is the theoretical link between physics and graph signal processing. The authors prove that the wave equation can recover the eigenspectrum and cycle lengths of a graph from a single node's perspective. This gives DYMAG an "instantaneous" global receptive field, allowing it to sense distant structures without requiring a layer for every hop.

Comparison of standard rectangular message passing with dynamic waveforms like Heat, Wave, and Sprott models.

One of the most surprising findings is the utility of chaos. The chaotic Sprott dynamics perform exceptionally well on heterophilic datasets (e.g., Texas, Wisconsin), where the sensitivity of the system allows the model to distinguish between nodes that standard averaging would blur together.

Experimental Results

DYMAG was evaluated across a wide range of benchmarks:

  • Topological Recovery: DYMAG significantly outperformed standard GNNs in predicting Ollivier-Ricci curvature and Extended Persistence Images, matching specialized topological algorithms.
  • Molecular and Biological Property Prediction: On DrugBank and PROTEINS, DYMAG matched or exceeded the performance of large, domain-specific pretrained models like ProtBERT and MolBERT.
  • Scalability: The model successfully scaled to the ogbn-papers100M dataset (111 million nodes), demonstrating that sophisticated dynamics are applicable to massive real-world graphs.

Conclusion

DYMAG redefines message passing by grounding it in the physics of dynamical systems. By leveraging heat, wave, and chaotic dynamics, it overcomes the fundamental limits of local averaging, providing a robust framework for capturing both local and global graph topology. While the sensitivity of chaotic models and the complexity of hyperparameter tuning for time scales present ongoing challenges, DYMAG represents a significant step toward more expressive and physically-informed graph neural networks.

Summary updated

BibTeX
@inproceedings{bhaskar2023dymag,
  author = {Dhananjay Bhaskar and Xingzhi Sun and Yanlei Zhang and Charles Xu and Arman Afrasiyabi and Siddharth Viswanath and Oluwadamilola Fasina and Guy Wolf and Michael Perlmutter and Smita Krishnaswamy},
  title = {{DYMAG: Rethinking Message Passing Using Dynamical-systems-based Waveforms}},
  booktitle = {TAG-DS SpotlightTalk},
  year = {2023},
  doi = {10.48550/arxiv.2309.09924},
}
Figure