NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Directional Graph Networks

Dominique Beaini, Saro Passaro, Vincent Létourneau, William L. Hamilton, Gabriele Corso, Pietro Lió

Graph Neural Networks (GNNs) have become the standard for learning on graph-structured data, but they traditionally suffer from a lack of directionality. Directional Graph Networks (DGN) introduce anisotropic kernels to GNNs by using vector fields—specifically the gradients of Laplacian eigenvectors—to guide message passing. This allows GNNs to distinguish between directions in a graph, much like Convolutional Neural Networks (CNNs) do with pixels, effectively overcoming the "over-smoothing" problem and outperforming standard models on molecular and image-based benchmarks.

The Problem with Isotropic GNNs

Most standard GNNs are isotropic, meaning they treat all of a node's neighbors equally. When a node aggregates information, it doesn't care if a neighbor is "to the left" or "to the right" because, in a general graph, those concepts don't traditionally exist.

This lack of directionality leads to two major issues:

  1. Low Expressivity: Isotropic GNNs are limited by the Weisfeiler-Lehman (1-WL) graph isomorphism test, meaning they cannot distinguish between certain non-isomorphic graph structures.
  2. Over-smoothing and Over-squashing: As more layers are added, node features tend to converge to a mean value (blurring out). This makes it hard to preserve high-frequency signals or propagate information across long distances without losing detail.

In contrast, CNNs thrive because they operate on a fixed grid where "up, down, left, right" are well-defined, allowing for directional filters that capture edges and textures.

Defining Direction on a Graph

To solve this, the authors propose a framework to define globally consistent directional flows across any graph.

  • The "Compass" (Laplacian Eigenvectors): To find directions, the model looks at the low-frequency eigenvectors of the graph Laplacian. These eigenvectors capture the global "shape" of the graph. For example, in a grid, the first two eigenvectors correspond perfectly to the x and y axes.
  • Vector Fields: By computing the gradient of these eigenvectors across the edges, the authors create a vector field that tells each node which way is "forward" or "backward" relative to the global structure.
  • New Aggregators: The framework introduces two specific types of directional aggregators:
  • Directional Smoothing ($B_{av}$): A low-pass filter that smooths features along the vector field.
  • Directional Derivative ($B_{dx}$): A high-pass filter that computes the difference between features in the "forward" vs. "backward" direction.
  • Sign Invariance: Because eigenvectors can have arbitrary signs (positive or negative), the model uses the absolute value of the directional aggregators to ensure results remain consistent regardless of the eigenvector's orientation.

Key Insights: The Power of Derivatives

A major "aha" moment in the paper is that most of the performance gain comes from the directional derivative ($B_{dx}$). This suggests that being able to see "edges" or changes in signals across a graph is far more important than just smoothing them out.

Accuracy of different aggregators (mean, dx, av) under rotation and distortion.

Furthermore, the paper mathematically proves that DGNs can reproduce any convolutional kernel on a grid, effectively bridging the gap between GNNs and CNNs. While previous works used Laplacian eigenvectors merely as extra "positional encodings" concatenated to node features, DGN uses them to fundamentally change the structure of the message-passing itself. Because these directions are derived purely from the graph topology, the network learns to use the graph's own shape to guide its reasoning without needing manual directional labels.

Benchmark Results

The authors evaluated DGN on several standard benchmarks, including ZINC (molecular solubility), CIFAR10 (images converted to graphs), PATTERN (community detection), and MolHIV/MolPCBA (large-scale molecular property prediction).

Performance and computational cost of various aggregator combinations on ZINC and PATTERN datasets.
  • ZINC: DGN achieved a massive 11% to 32% reduction in error (MAE) compared to state-of-the-art models like PNA and GatedGCN.
  • CIFAR10: A relative error reduction of 8%, showing that DGN successfully exploits the underlying grid structure of the image-graph.
  • MolPCBA: A 1.6% increase in precision, a significant bump for this highly competitive large-scale benchmark.
  • Expressivity: The authors proved that DGN is strictly more powerful than the 1-WL test, confirming it can distinguish graph structures that standard GNNs cannot.

Limitations and Future Work

While highly effective, the method currently relies on the $k$-lowest non-trivial eigenvectors. While these work well for global structure, they might not be the optimal "directions" for every specific task. Additionally, pre-computing eigenvectors adds a step to the pipeline, though it is only done once per graph and remains efficient for most real-world sizes.

Future work could explore more sophisticated ways to handle the arbitrary sign of eigenvectors, as taking the absolute value might discard some useful orientation information. Finally, implementing "zero-padding" at the boundaries of graphs could help DGNs better mimic traditional CNN behavior.

Summary updated

BibTeX
@inproceedings{beaini2021directional,
  author = {Dominique Beaini and Saro Passaro and Vincent Létourneau and William L. Hamilton and Gabriele Corso and Pietro Lió},
  title = {{Directional Graph Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
}
Figure