Search papers, labs, and topics across Lattice.
This paper introduces MetaSieve, a novel metapath selection layer that optimizes the training of graph neural networks (GNNs) on relational databases by pruning uninformative metapaths based on SQL-based statistics. By leveraging the join and aggregation capabilities of relational database systems, MetaSieve significantly reduces the size of sampled subgraphs, which in turn accelerates training times without sacrificing accuracy. Evaluation on the RelBench benchmark demonstrates that MetaSieve achieves substantial reductions in per-epoch training time while maintaining or enhancing model performance across various GNN architectures.
Pruning uninformative metapaths can cut GNN training time dramatically while boosting accuracy, transforming how we approach relational deep learning.
Relational Deep Learning (RDL) is an effective approach to machine learning over multi-table relational databases. In RDL, a database is modeled as a graph in which each row is a node and each foreign-key relation is an edge, and a graph neural network (GNN) is trained on this graph. Training a GNN requires sampling a subgraph around every seed node in the training set, and the cost of training is largely determined by the size of these subgraphs. This paper aims to reduce subgraph size by leveraging the join and aggregation capabilities of relational database systems. We observe that sampled subgraphs are obtained by following metapaths composed of foreign-key links, and that many of these metapaths can be pruned without loss of accuracy. We present MetaSieve, a metapath selection layer that determines which metapaths to retain and which to prune. For each candidate metapath extension, MetaSieve computes statistics via SQL join and aggregation queries and evaluates the extension based on a novel scoring function that prefers lightweight but informative candidates. Metapaths whose scores fall below a threshold are deemed uninformative and pruned. Metapath selection in MetaSieve is lightweight since it relies only on database statistics and task labels, and it is independent of GNN parameters, so it integrates with diverse GNN architectures for classification and regression. Our evaluation on the RelBench benchmark with multiple GNN backbones shows that MetaSieve consistently reduces per-epoch training time by large margins while maintaining and often improving accuracy.