TL;DR
This paper introduces DiRW, a novel directed random walk strategy for learning representations on directed graphs (digraphs), particularly addressing the challenge of heterophily. DiRW improves existing methods by considering edge direction and adaptively adjusting walk parameters for each node, leading to state-of-the-art performance in node classification and link prediction.
What Problem Does This Paper Address?
Graph Neural Networks (GNNs) have become powerful tools for learning from graph-structured data. However, most existing GNNs are designed for undirected graphs and struggle with directed graphs (digraphs), which are prevalent in real-world applications like web traffic analysis and bioinformatics. Digraphs present unique challenges, especially when dealing with heterophily, where connected nodes can have very different features or labels. Current methods for learning on digraphs (DiGNNs) often suffer from complex mechanisms, reliance on high-quality topology, and inefficient or unstable performance. Specifically, spatial-based DiGNNs can lead to over-smoothing and high computational costs, while spectral-based methods are sensitive to topology quality. This paper aims to bridge this gap by proposing a more efficient and effective approach for learning on heterophilous digraphs.
Methods
The core contribution of this paper is the Directed Random Walk (DiRW) strategy. DiRW can be used as a plug-and-play module for existing spatial-based DiGNNs or as a new digraph learning paradigm. Its key components are:
- Direction-Aware Path Sampler: This component intelligently navigates digraphs by considering edge direction. It dynamically adapts to node connectivity, preventing walks from terminating prematurely at sink or source nodes. It uses a direction control parameter
qto balance directional and bidirectional exploration. - Multi-order Walk Probability: DiRW combines topological information (prioritizing nodes with fewer common neighbors) and feature similarity (favoring neighbors with similar features) to determine transition probabilities between nodes. This allows it to capture both high-order and one-order homophily.
- Homophily Entropy-based Personalized Walk Length: Instead of fixed walk lengths, DiRW dynamically determines the length based on "homophily entropy." This metric assesses the feature similarity within a walk sequence, ensuring that longer walks are used for more heterophilous nodes and shorter walks for more homophilous ones.
- Weight-Free Path Encoding: DiRW uses an exponential decay function to assign weights to nodes along a path, giving more importance to nodes closer to the starting node. This efficiently captures sequential information without complex learnable parameters.
- Adaptive Walk Numbers: The number of walks per node is also adaptively determined by assessing the "information richness" of sampled walks, preventing redundant sampling and improving efficiency.
- Node-wise Learnable Path Aggregator: An attention mechanism is employed to learn the importance of different sampled paths for each node, creating nuanced node representations.
Datasets
The paper evaluates DiRW on nine benchmark datasets:
- Directed-Homophily: CoraML, CiteSeer, WikiCS, Amazon-Computers
- UnDirected-Homophily: ogbn-products
- Directed-Heterophily: Chameleon, Actor
- Rating: (Implicitly heterophilous)
These datasets cover a range of characteristics, including directed and undirected graphs with varying degrees of homophily and heterophily.
Key Insights and Ideas
- Edge Direction is Crucial: The paper strongly emphasizes that neglecting edge direction in digraphs leads to significant information loss and limits performance, especially in heterophilous scenarios.
- Adaptive Sampling is Key: A one-size-fits-all approach to walk length and number is suboptimal. Adapting these parameters based on node characteristics (homophily/heterophily) and path quality significantly boosts performance.
- Homophily Entropy as a Quality Metric: Using homophily entropy to guide walk length provides a more nuanced way to capture relevant information compared to fixed lengths.
- Balancing Topology and Features: Combining topological structure with feature similarity in walk probability calculation leads to richer and more informative path sampling.
Key Results
- State-of-the-Art Performance: DiRW achieves state-of-the-art (SOTA) results on node classification, outperforming leading DiGNNs by an average of 3.2%.
- Plug-and-Play Improvement: When used as a plug-and-play strategy with existing PathGNNs (RAWGNN and PathNet), DiRW improves node classification by up to 4.34% and link prediction by 1.25%.
- Link Prediction: DiRW also demonstrates strong performance in link direction prediction, achieving an average gain of 0.82% over the second-best model.
- Efficiency: DiRW shows competitive efficiency, especially compared to complex spatial-based models like ADPA, due to its lightweight learning mechanism and pre-processing strategy.
Limitations and Future Work
- Limitations:
- The sampling stage is identified as the primary computational bottleneck in DiRW's workflow.
- While DiRW generalizes well, integrating its adaptive walk length and number rules with existing PathGNNs that have complex embedding rules can be challenging.
- Future Work:
- Explore more efficient sampling strategies.
- Develop more adaptive sampling methods.
- Design improved learning mechanisms to capture complex relationships in digraphs for even more accurate predictions.
Summary updated