Complex-Path: Effective and Efficient Node Ranking with Paths in Billion-Scale Heterogeneous Graphs

Jinquan Hang, Zhiqing Hong, Xinyue Feng, Guang Wang, Dongjiang Cao, Jiayang Qiao, Haotian Wang, Desheng Zhang

TL;DR

This paper introduces "Complex-Path," a novel framework for ranking nodes in massive, complex graphs by effectively leveraging non-linear paths. By defining a new "Complex-path" schema and an efficient pre-aggregation method, their CompNode framework significantly outperforms existing methods in identifying high-value customers, demonstrating its real-world applicability and scalability.

What Problem Does This Paper Address?

Node ranking is crucial for understanding relationships and importance within graphs, especially in complex, heterogeneous graphs that contain diverse types of entities and connections. Existing methods often struggle to capture the full semantic richness of these graphs. While graph databases can handle flexible path queries, they require manual effort for ranking. Heterogeneous Graph Neural Networks (HGNNs) automate this but are typically limited to linear path types (meta-paths) and face scalability issues when incorporating more complex path structures. This paper addresses the challenge of effectively and efficiently incorporating non-linear, conditional path types into HGNNs for accurate node ranking on billion-scale graphs, specifically for identifying high-value customers.

Methods

The core of the proposed solution is the CompNode framework, which tackles the limitations of existing HGNNs in two main ways:

  1. Complex-path Schema: The authors introduce a new path definition called "Complex-path." This schema extends the traditional meta-path concept to represent non-linear and conditional path types, which are common in real-world business graphs but difficult for standard HGNNs to process. They illustrate this with examples of parallel edges, forking structures, fork-join structures, and conditional constraints.
  2. Efficient Pre-aggregation: To address the scalability and computational efficiency challenges of HGNNs when dealing with many path types, CompNode employs a pre-aggregation method. This stage aggregates information from instances of the same complex-path type before model training. This significantly reduces the memory and sampling time required during the HGNN training phase.

The CompNode framework operates in three stages:

  • Stage 1: Complex-path Pre-aggregation: This involves sampling complex-paths, aggregating their features, and then performing feature aggregation.
  • Stage 2: Node Classification Model Training: A custom HGNN model, "Complex-path Based Message Passing (CompMP)," is trained using the aggregated features. This model incorporates attention mechanisms for intra-path and inter-path message passing to capture complex relationships.
  • Stage 3: Node Ranking: The trained CompMP model is used to predict the probability of target nodes being high-value, enabling efficient ranking.

Datasets

The primary dataset used in this research is derived from a major logistics company. This dataset represents a billion-scale heterogeneous graph with 5 node types and 11 edge types. To address data leakage and ensure realistic evaluation, the authors constructed 12 distinct heterogeneous graphs, each representing data available up to a specific month. They also utilized over 1.5 million labeled customer nodes for training, validation, and testing.

Additionally, the paper mentions experiments on the Microsoft Academic Graph for evaluating complex-paths on a different task (paper category prediction), demonstrating the generalizability of their approach.

Key Insights and Ideas

  • Non-linear paths are crucial: The research strongly validates the importance of non-linear and conditional path types, showing that models incorporating these features (even simple MLPs) can outperform state-of-the-art HGNNs that are limited to linear paths.
  • Scalability is a major hurdle: Standard HGNNs struggle with the computational cost of incorporating many path types, making them impractical for large-scale, complex graphs. The pre-aggregation approach is key to overcoming this.
  • A unified path schema is needed: The "Complex-path" definition provides a generalized way to represent diverse path structures, bridging the gap between flexible graph database queries and structured HGNN inputs.
  • Real-world deployment matters: The successful deployment and significant performance improvement in a real-world logistics company highlight the practical impact and effectiveness of the proposed framework.

Key Results

  • Superior Performance: CompNode achieved a 20% improvement in average precision over state-of-the-art HGNNs and a 252% increase in success rate compared to the previously deployed graph database method in real-world A/B testing.
  • Efficiency Gains: The aggregated complex-path sampling method significantly reduces sampling time and memory consumption, enabling predictions for all target nodes in just 1 day, compared to over 30 days for traditional methods.
  • Ablation Studies: Key components like position embeddings, intra-path, and inter-path message passing were shown to be critical for the model's performance. Removing any of these significantly degraded results.
  • Data Importance: The model's performance improves with more training data and benefits from recent data, emphasizing the need for efficient processing of evolving datasets.

Limitations and Future Work

  • Data Dependency: The model's performance is sensitive to the quality and quantity of training data, and the optimal data length for training was found to be around 90 days.
  • Complex-path Selection: While the paper details a method for selecting useful complex-paths, the initial set of 534 paths was heuristic, and further research could explore more automated or optimized selection strategies.
  • Generalizability: While tested on a second dataset (Microsoft Academic Graph), further validation on diverse real-world heterogeneous graph ranking tasks would be beneficial.
  • Future Work: The authors suggest exploring more sophisticated aggregation functions and attention mechanisms within the CompMP model and extending the Complex-path concept to other graph-based tasks.

Summary updated

BibTeX
@article{hang2024complex,
  author = {Jinquan Hang and Zhiqing Hong and Xinyue Feng and Guang Wang and Dongjiang Cao and Jiayang Qiao and Haotian Wang and Desheng Zhang},
  title = {{Complex-Path: Effective and Efficient Node Ranking with Paths in Billion-Scale Heterogeneous Graphs}},
  journal = {Proc. VLDB Endow.},
  year = {2024},
  doi = {10.14778/3685800.3685820},
}
Figure