DRew: Dynamically Rewired Message Passing with Delay

Benjamin Gutteridge, Xiaowen Dong, Michael M. Bronstein, Francesco Di Giovanni

Introduction

Graph Neural Networks (GNNs), specifically Message Passing Neural Networks (MPNNs), are foundational to graph deep learning. However, they struggle with long-range dependencies due to a phenomenon known as "over-squashing." DRew (Dynamically Rewired Message Passing) introduces a novel framework that solves this by gradually adding long-range connections as the network deepens. By combining dynamic rewiring with a tunable delay mechanism, DRew allows distant nodes to communicate effectively without losing the graph's original structural inductive bias, outperforming both standard message-passing models and complex Graph Transformers on long-range tasks.

The Problem: Over-Squashing and Inductive Bias

In standard MPNNs, information moves only one hop per layer. To capture interactions between nodes 10 hops apart, a 10-layer network is required. As the network deepens to capture these interactions, the receptive field grows exponentially. This forces massive amounts of neighborhood information to be "squashed" into fixed-size vectors, leading to significant information loss.

While some researchers utilize Graph Transformers to bypass this bottleneck—allowing all nodes to communicate instantly—this approach often discards the graph's inherent topology, or its "inductive bias." The core challenge is enabling long-range communication without succumbing to over-squashing or losing the underlying graph structure.

The DRew Framework

To address this, the authors introduce the $\nu$DRew framework, which is architecture-agnostic (tested with GCN, GIN, and GatedGCN) and built on two primary mechanisms:

1. Dynamic Rewiring

Instead of relying on a static graph, connectivity evolves at each layer. At layer $\ell=0$, nodes communicate only with immediate (1-hop) neighbors. As the network deepens to layer $\ell$, a node aggregates information from all neighbors up to distance $\ell+1$. This "gradual densification" ensures that closer nodes interact earlier in the architecture, preserving structural awareness.

2. Delay Mechanism ($\nu$)

The framework's standout feature is a parameter $\nu$ that controls the "latency" of incoming information. When node $i$ connects to a distant neighbor $j$ at distance $k$, it does not necessarily access $j$'s current state. Instead, it retrieves $j$'s state from previous layers:

  • If $\nu = \infty$, there is no delay (instant communication).
  • If $\nu = 1$, the node sees the state of its $k$-hop neighbor as it was $k-1$ layers ago.

This delay acts as a geometric skip connection, preserving unsmoothed historical features while facilitating long-range signal flow.

Key Insights and Results

DRew was rigorously evaluated on benchmarks designed to test long-range dependencies, including the Long Range Graph Benchmark (LRGB), QM9 (molecular property regression), and RingTransfer (a synthetic task testing signal movement across a chordless cycle).

  • Superiority on Long-Range Tasks: DRew variants significantly outperformed classical MPNNs across all LRGB tasks. Notably, DRew-GCN and DRew-GIN surpassed sophisticated Graph Transformers like SAN and GraphGPS on the Peptides-func and PCQM-Contact tasks.
  • Bypassing the Bottleneck: Theoretical analysis in the paper demonstrates that DRew reduces the exponential decay of sensitivity between distant nodes. By providing direct paths that do not rely on powers of the adjacency matrix, the over-squashing bottleneck is effectively bypassed.
  • Perfect Accuracy on RingTransfer: On the synthetic RingTransfer task, standard GCNs failed after just 10 layers. In contrast, the delayed version ($\nu_1$DRew-GCN) maintained 100% accuracy even as graph diameter and network depth scaled beyond 30 layers.
  • Delay as a Regularizer: The delay mechanism naturally prevents over-smoothing—where node features become indistinguishable in deep networks—by granting the model access to earlier, more distinct node representations.

Limitations and Future Directions

While highly effective for long-range tasks, DRew's added complexity may be unnecessary for highly homophilic tasks, where nodes primarily resemble their immediate neighbors. Additionally, storing delayed representations increases space complexity linearly with the number of layers ($L$).

Currently, the implementation uses different weights for different hop distances. Future research directions include exploring more efficient weight-sharing schemes to reduce parameter counts in exceptionally deep models.

Summary updated

BibTeX
@inproceedings{gutteridge2023drew,
  author = {Benjamin Gutteridge and Xiaowen Dong and Michael M. Bronstein and Francesco Di Giovanni},
  title = {{DRew: Dynamically Rewired Message Passing with Delay}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=I8wSSUw2vY},
}
Figure