RelBench: A Benchmark for Deep Learning on Relational Databases
Joshua Robinson, Rishabh Ranjan, Weihua Hu, Kexin Huang, Jiaqi Han, Alejandro Dobles, Matthias Fey, Jan E. Lenssen, Yiwen Yuan, Zecheng Zhang, Xinwei He, Jure Leskovec
TL;DR
RelBench addresses the underutilization of relational structure in predictive modeling by introducing a public benchmark and an end-to-end relational deep learning framework ($RDL$). It represents databases as heterogeneous temporal graphs where nodes are entities and edges encode primary-foreign key relationships, enabling joint learning across tables with temporal awareness. The paper provides seven real-world datasets, 30 predictive tasks across three task types, and an open-source implementation with a public leaderboard, demonstrating that $RDL$ can match or surpass a skilled data-scientist baseline while dramatically reducing human effort (averaging a 96% reduction in hours and a 94% reduction in lines of code). This work showcases the practical viability of end-to-end $RDL$ for complex multi-tabular data and sets the stage for extensive future research in graph-based relational learning, multi-task pre-training, and scalable training strategies, potentially transforming predictive modeling over relational databases. $RDL$ leverages a temporal graph with PK-FK edges, a deep tabular encoder, and graph neural networks to exploit relational signals that traditional feature engineering often misses, thereby enabling more powerful and efficient real-world decision-making.
Abstract
We present RelBench, a public benchmark for solving predictive tasks over relational databases with graph neural networks. RelBench provides databases and tasks spanning diverse domains and scales, and is intended to be a foundational infrastructure for future research. We use RelBench to conduct the first comprehensive study of Relational Deep Learning (RDL) (Fey et al., 2024), which combines graph neural network predictive models with (deep) tabular models that extract initial entity-level representations from raw tables. End-to-end learned RDL models fully exploit the predictive signal encoded in primary-foreign key links, marking a significant shift away from the dominant paradigm of manual feature engineering combined with tabular models. To thoroughly evaluate RDL against this prior gold-standard, we conduct an in-depth user study where an experienced data scientist manually engineers features for each task. In this study, RDL learns better models whilst reducing human work needed by more than an order of magnitude. This demonstrates the power of deep learning for solving predictive tasks over relational databases, opening up many new research opportunities enabled by RelBench.
