Toward Effective Digraph Representation Learning: A Magnetic Adaptive Propagation based Approach

Xunkai Li, Daohan Su, Zhengyu Wu, Guang Zeng, Hongchao Qin, Rong-Hua Li, Guoren Wang

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:

  1. 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).
  2. 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.
Conceptual overview of digraph processing, node semantic context extraction, and adaptive graph propagation.

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.
Case studies showing how test accuracy varies with training epochs across different levels of node degree and homophily for various q values.

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 papers100M dataset, 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

BibTeX
@inproceedings{li2025toward,
  author = {Xunkai Li and Daohan Su and Zhengyu Wu and Guang Zeng and Hongchao Qin and Rong-Hua Li and Guoren Wang},
  title = {{Toward Effective Digraph Representation Learning: A Magnetic Adaptive Propagation based Approach}},
  booktitle = {The Web Conference},
  year = {2025},
}
Figure