Meta-Path Learning for Multi-relational Graph Neural Networks

Francesco Ferrini, Antonio Longa, Andrea Passerini, Manfred Jaeger

Abstract: Existing multi-relational graph neural networks use one of two strategies for identifying informative relations: either they reduce this problem to low-level weight learning, or they rely on handcrafted chains of relational dependencies, called meta-paths. However, the former approach faces challenges in the presence of many relations (e.g., knowledge graphs), while the latter requires substantial domain expertise to identify relevant meta-paths. In this work we propose a novel approach to learn meta-paths and meta-path GNNs that are highly accurate based on a small number of informative meta-paths. Key element of our approach is a scoring function for measuring the potential informativeness of a relation in the incremental construction of the meta-path. Our experimental evaluation shows that the approach manages to correctly identify relevant meta-paths even with a large number of relations, and substantially outperforms existing multi-relational GNNs on synthetic and real-world experiments.

Introduction

Most real-world data is naturally represented as a "heterogeneous" graph where nodes and edges have distinct types—for instance, a movie database containing actors, genres, and directors. To extract meaningful patterns from these complex structures, researchers utilize meta-paths: specific sequences of relations (e.g., Actor → Movie → Director) that capture semantic dependencies.

An example heterogeneous graph with actors, movies, and directors, illustrating a target meta-path.

However, identifying the correct meta-paths is a significant challenge. Manual design requires deep domain expertise and is unfeasible for massive knowledge graphs. Conversely, automated "soft" weighting schemes often fail in high-dimensional relation spaces (like Freebase), where the search space becomes too noisy and computationally expensive. MP-GNN addresses this by automatically discovering informative meta-paths through a novel scoring mechanism.

Methodology

The MP-GNN framework operates in two primary stages: Meta-Path Learning and GNN Training.

1. Potential Informativeness Scoring

Instead of training a full GNN to evaluate every possible path, the authors introduce a "potential informativeness" score. Inspired by relational information gain, this function assesses how well a specific relation, combined with the features of the nodes it reaches, can predict a target label. It employs a simple Mean Squared Error (MSE) minimization to assign "pseudo-labels" to neighboring nodes, acting as a fast filter for promising relations.

2. Incremental Construction

The algorithm builds meta-paths greedily using a beam search. Starting with a single relation, it scores all candidates, selects the best performers, and then iteratively searches for the next step in the chain.

The first iteration of the incremental meta-path discovery process, where relations are scored based on their potential informativeness.

3. MP-GNN Architecture

Once the optimal meta-paths are identified, they are integrated into a specialized Graph Neural Network. This architecture is a variant of the Relational Graph Convolutional Network (RGCN), where each layer corresponds to a step in a learned meta-path, ensuring information is aggregated only along relevant semantic "highways."

Experimental Evaluation

The authors evaluated MP-GNN across three tiers of complexity:

  • Synthetic Datasets: Testing the recovery of "ground truth" paths amidst varying numbers of distractor relations.
  • Small Real-World Benchmarks: Standard datasets like IMDB and DBLP with few relations.
  • Large-Scale Knowledge Graph: FB15K-237 (Freebase), featuring 236 relation types across 10 different node-classification tasks.

Key Results

  • Knowledge Graph Superiority: On FB15K-237, MP-GNN significantly outperformed competitors. While models like GTN often struggled to exceed majority-class baselines (F1 scores of 0.10–0.30), MP-GNN achieved F1 scores between 0.80 and 0.96.
  • Robustness: In synthetic tests, MP-GNN consistently recovered correct meta-paths even as distractor relations increased, whereas other models' performance degraded rapidly.
  • The Importance of Node Features: Ablation studies revealed that node features are essential for meta-path mining. For example, knowing a movie's genre is critical to determining if a "Directed by" relation is worth following for a specific task.

Conclusion and Future Work

MP-GNN provides a scalable, interpretable, and highly accurate method for multi-relational graph learning. By filtering relations before GNN training, it manages the complexity of large knowledge graphs while maintaining human-readable results. Future work aims to extend the model to account for quantitative relational data (counts/proportions) and to evolve from linear paths to more complex "meta-trees."

Summary updated

BibTeX
@inproceedings{ferrini2023meta,
  author = {Francesco Ferrini and Antonio Longa and Andrea Passerini and Manfred Jaeger},
  title = {{Meta-Path Learning for Multi-relational Graph Neural Networks}},
  booktitle = {LoG},
  year = {2023},
  url = {https://openreview.net/forum?id=gW9ZmT9hAe},
}
Figure