Rethinking Link Prediction for Directed Graphs

Mingguo He, Yuhe Guo, Yanping Zheng, Zhewei Wei, Stephan Günnemann, Xiaokui XiaoarXiv 2025 · DOI

TL;DR

This paper tackles the challenge of link prediction in directed graphs by introducing a unified framework to evaluate existing methods and a new benchmark, DirLinkBench. They propose SDGAE, a novel spectral graph auto-encoder, which achieves state-of-the-art results, highlighting the importance of dual embeddings and decoder design.

What Problem Does This Paper Address?

Link prediction, the task of predicting future or missing connections in a network, is crucial for many real-world applications like social network analysis and recommendation systems. While directed graphs (where connections have a direction, like "following" someone) are common, existing methods for link prediction in these graphs often lack rigorous evaluation. Researchers struggle to compare different approaches fairly due to inconsistent benchmarks, missing baselines, and issues like label leakage. This paper aims to provide a standardized way to assess these methods and introduce a more robust benchmark to drive progress in the field.

Methods

The authors propose a unified framework to assess the expressiveness of directed link prediction methods. This framework separates the encoder (which learns node representations) from the decoder (which uses these representations to predict links). They categorize methods based on their embedding types: single real-valued, source-target, complex-valued, and gravity-inspired.

A key contribution is the introduction of DirLinkBench, a new benchmark designed to address the limitations of existing setups. It offers:

  • Comprehensive coverage: Seven diverse datasets, 16 baselines, and seven evaluation metrics.
  • Standardized evaluation: Unified dataset splits, feature inputs, and task setups for fair comparison.
  • Modular extensibility: Built on PyTorch Geometric, allowing easy integration of new components.

The paper also introduces SDGAE (Spectral Directed Graph Auto-Encoder). Inspired by the theoretical analysis of DiGAE (a previous directed graph auto-encoder), SDGAE uses a polynomial approximation to learn arbitrary spectral filters for directed graphs. This allows it to better capture complex structural patterns.

Datasets

The paper introduces DirLinkBench, a new benchmark comprising seven real-world directed graphs:

  • Citation Networks: Cora-ML, CiteSeer
  • Co-purchasing Networks: Photo, Computers
  • Weblink Network: WikiCS
  • Social Networks: Slashdot, Epinions

These datasets span diverse domains, scales, and structural properties, and are pre-processed to ensure fair evaluation.

Key Insights and Ideas

  • Dual Embeddings Matter: Methods using "dual" embeddings (like source-target, complex-valued, or gravity-inspired) are generally more expressive for directed link prediction than "single" real-valued embeddings. This is because they can inherently capture the asymmetry of directed relationships.
  • Decoder Design is Crucial: The choice of decoder significantly impacts performance, even for simple embedding methods. This aspect has been historically overlooked in favor of encoder design.
  • Existing Benchmarks are Flawed: Current experimental setups suffer from issues like missing baselines (e.g., MLP), label leakage, class imbalance, and inconsistent evaluation metrics, hindering reliable comparisons.
  • MLP is a Strong Baseline: Surprisingly, a simple Multi-Layer Perceptron (MLP) often performs competitively with, and sometimes even outperforms, more complex GNNs on certain tasks, highlighting the need for thorough baseline evaluations.
  • Spectral Filters for Directed Graphs: SDGAE's approach of using polynomial approximations to learn spectral filters for directed graphs is a novel and effective way to capture richer structural information.

Key Results

  • SDGAE Achieves SOTA: The proposed SDGAE model achieves state-of-the-art average performance on the DirLinkBench benchmark, outperforming existing methods on four out of seven datasets for the Hits@100 metric.
  • DiGAE's Convolutional Equivalence: The paper theoretically shows that DiGAE's graph convolution is equivalent to GCN applied to an undirected bipartite graph, providing a deeper understanding of its mechanism.
  • DirLinkBench Highlights Method Weaknesses: Experiments on DirLinkBench reveal that many current methods struggle to achieve consistent performance across diverse datasets, underscoring the need for robust benchmarks.
  • Feature Input and Loss Function Impact: The choice of feature inputs (original features vs. in/out degrees) and loss functions (BCE generally preferred over CE for link prediction) significantly affects GNN performance.

Limitations and Future Work

  • Scalability of Complex Methods: Some newer directed GNNs face scalability challenges or exhibit weaker performance, suggesting room for improvement in efficiency and effectiveness.
  • Preserving Degree Distributions: While SDGAE shows promise, effectively preserving the in- and out-degree distributions of directed graphs remains an underexplored challenge for GNNs.
  • Developing More Expressive Decoders: The paper poses the question of how to develop more expressive decoders, particularly for complex-valued methods.
  • Enhancing GNN Architectures: Future work could focus on GNN architectures that better capture and preserve the asymmetry inherent in directed graphs.

Summary updated

BibTeX
@misc{he2025rethinking,
  author = {Mingguo He and Yuhe Guo and Yanping Zheng and Zhewei Wei and Stephan Günnemann and Xiaokui Xiao},
  title = {{Rethinking Link Prediction for Directed Graphs}},
  year = {2025},
  eprint = {2502.05724},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.05724},
}
Figure