Abstract
Directed graphs (digraphs) are essential for representing asymmetric relationships in real-world data, such as social follows and citation networks. Traditional Graph Neural Networks often struggle with directionality, and while the Magnetic Laplacian ($L_q$) provides a complex-valued encoding for edge direction, it typically relies on a globally fixed parameter $q$. This paper introduces Magnetic Adaptive Propagation (MAP) and its learnable extension, MAP++, which allow for edge-wise and node-wise adaptation of directional strength. By tailoring the magnetic phase to local topology and feature similarity, our methods achieve state-of-the-art performance and exceptional scalability, effectively handling web-scale graphs with over 100 million nodes.
Introduction
Most Graph Neural Networks (GNNs) are designed for undirected graphs, where connections are symmetric. However, many real-world networks—including Twitter follow graphs, website hyperlinks, and citation networks—are directed. To capture this asymmetry, researchers have turned to the Magnetic Laplacian ($L_q$), which uses complex numbers where the phase (angle) encodes direction. A significant limitation of current $L_q$-based models is their reliance on a single, hand-crafted $q$ parameter for the entire graph. This "one-size-fits-all" approach ignores the local nuances of the graph, such as high-degree "hubs" or regions with low homophily, where a uniform directional strength may lead to "feature confusion" or loss of node identity.
Methods
The proposed solutions move away from static parameters toward local adaptation:
- Magnetic Adaptive Propagation (MAP): This is a weight-free, "plug-and-play" strategy. Instead of a global $q$, MAP computes a unique $q$ for every edge by considering both topology (global and local centrality) and feature similarity (the semantic relationship between connected nodes).
- MAP++: This framework extends MAP by making the adaptation process learnable. It employs a lightweight neural network to tune edge-wise propagation and a node-wise aggregation mechanism to balance information from different "hops" in the graph.
A key architectural choice in MAP++ is its decoupled nature: graph propagation is separated from neural network training. This separation ensures the model is both fast and memory-efficient, enabling it to scale to massive datasets that typically cause out-of-memory errors for coupled models.
Key Insights and Ideas
The effectiveness of adaptive propagation stems from several critical observations:
- The Hub Problem: High-degree nodes (hubs) receive information from many neighbors. Assigning them higher directional strength ($q$) helps the model distinguish between incoming signals and prevents the smoothing of unique features.
- Homophily Dynamics: In regions where neighbors are dissimilar (low homophily), a higher $q$ is necessary to maintain node identity. Conversely, in high-homophily regions, a lower $q$ (approaching an undirected representation) often suffices.
Key Results
The authors evaluated MAP and MAP++ across 12 diverse digraph datasets, including the massive ogbn-papers100M (111 million nodes).
- Universal Gains: Integrating the MAP module into existing models like MagNet or MGC resulted in accuracy improvements ranging from 2.39% to 5.12%.
- Scalability and Robustness: MAP++ achieved state-of-the-art results across multiple tasks, including node and link classification. Notably, it successfully processed the 111M-node
papers100Mdataset, a feat many complex-domain models could not achieve due to memory constraints. It also demonstrated superior resilience to missing features and edge sparsity.
Conclusion
By making the Magnetic Laplacian adaptive, MAP and MAP++ overcome the limitations of fixed-parameter digraph models. While the use of complex numbers increases memory requirements for embeddings, the decoupled architecture and local adaptation provide a powerful, scalable framework for learning from directed networks at any scale. Future research may extend these concepts to dynamic graphs or more complex structural motifs.
Summary updated