Boosting Relational Deep Learning with Pretrained Tabular Models
Veronica Lachi, Antonio Longa, Beatrice Bevilacqua, Bruno Lepri, Andrea Passerini, Bruno Ribeiro
TL;DR
This paper tackles the challenge of making efficient, accurate predictions over temporal-relational data in relational databases. It introduces LightRdl, a hybrid framework that combines a reduced, timestamped relational graph with embeddings distilled from a pretrained tabular model to power a Relational Graph Neural Network (R-GNN). By using a Snapshotted Relational Graph and a tabular-model distillation pipeline, LightRdl achieves substantial speedups (up to $526\times$ inference and $72\times$ training) while maintaining or improving predictive accuracy on RelBench tasks. The approach leverages existing strong tabular features and demonstrates practical impact for real-time relational-database applications, with flexibility to swap in different tabular backends. Overall, LightRdl offers a scalable, efficient alternative to fully end-to-end R-GNNs for temporal-relational prediction in industry-scale databases.
Abstract
Relational databases, organized into tables connected by primary-foreign key relationships, are a common format for organizing data. Making predictions on relational data often involves transforming them into a flat tabular format through table joins and feature engineering, which serve as input to tabular methods. However, designing features that fully capture complex relational patterns remains challenging. Graph Neural Networks (GNNs) offer a compelling alternative by inherently modeling these relationships, but their time overhead during inference limits their applicability for real-time scenarios. In this work, we aim to bridge this gap by leveraging existing feature engineering efforts to enhance the efficiency of GNNs in relational databases. Specifically, we use GNNs to capture complex relationships within relational databases, patterns that are difficult to featurize, while employing engineered features to encode temporal information, thereby avoiding the need to retain the entire historical graph and enabling the use of smaller, more efficient graphs. Our \textsc{LightRDL} approach not only improves efficiency, but also outperforms existing models. Experimental results on the RelBench benchmark demonstrate that our framework achieves up to $33\%$ performance improvement and a $526\times$ inference speedup compared to GNNs, making it highly suitable for real-time inference.
