NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Relational Deep Learning: Challenges, Foundations and Next-Generation Architectures

Vijay Prakash Dwivedi, Charilaos I. Kanatsoulis, Shenyang Huang, Jure Leskovec

Abstract

Relational databases (RDBs) serve as the backbone of modern data storage, yet the standard machine learning workflow for these systems remains heavily reliant on manual feature engineering. Relational Deep Learning (RDL) emerges as a transformative paradigm that treats multi-table databases as massive, temporal, and heterogeneous graphs. By applying Graph Neural Networks (GNNs) directly to relational entity graphs, RDL automates the extraction of structural and temporal patterns, significantly reducing development time while maintaining or exceeding the performance of traditional methods. This paper explores the foundations, architectural advancements, and future directions of RDL.

Introduction

The vast majority of structured data in the enterprise world is stored in relational databases. Despite the rise of deep learning in fields like computer vision and natural language processing, the application of ML to relational data has traditionally followed a "flatten-then-train" approach. This involves manually writing complex SQL queries to aggregate data from multiple tables into a single flat table, which is then fed into gradient-boosted decision trees (GBDTs) like XGBoost.

However, this manual process is fraught with challenges. It is labor-intensive, often accounting for the majority of a data scientist's workflow, and inherently lossy, as the rich structural relationships defined by primary and foreign keys are often discarded during flattening. Relational Deep Learning (RDL) proposes a shift away from manual feature engineering toward end-to-end representation learning on the database's native structure.

The Relational Entity Graph

The fundamental innovation of RDL is the representation of a database as a Relational Entity Graph. In this framework, every row across all tables in a database is treated as a node, while primary-foreign key (PK-FK) relationships are represented as edges. This transformation preserves the full topology of the data, allowing neural networks to traverse the schema and learn from the interconnected nature of the entities.

Because real-world databases are dynamic, these graphs are inherently temporal. RDL architectures must account for the time-varying nature of records to prevent "data leakage"—where information from the future is inadvertently used to predict the past. Specialized temporal-aware GNNs utilize samplers to ensure time consistency, ensuring that message passing only occurs between nodes that existed at or before the prediction timestamp.

Next-Generation Architectures

Several specialized architectures have been developed to address the unique challenges of relational data:

  • RelGNN: Designed to handle "hub and bridge" schemas, RelGNN uses "atomic routes" to streamline message passing in scenarios where a single table (e.g., a transaction table) connects many disparate entities.
  • Relational Graph Transformer (RelGT): This architecture tokenizes node types, hop distances, and timestamps alongside features, leveraging the global context-capturing capabilities of Transformers for relational structures.
  • TREeLGNN: A hybrid approach that combines the strengths of tabular models for intra-table temporal dynamics with GNNs for inter-table relationships. This model has demonstrated up to a 100x speedup in inference compared to naive GNN implementations.

Furthermore, the integration of Large Language Models (LLMs) into RDL is an emerging frontier. By serializing database snippets into structured text (e.g., JSON), researchers are exploring the ability of LLMs to perform in-context predictions directly on relational data, treating the database as a structured document.

Benchmarking and Evaluation

The advancement of RDL requires rigorous, standardized benchmarks. The RelBench suite has been introduced to fill this gap, providing seven real-world databases across domains such as e-commerce and medicine, encompassing 30 distinct predictive tasks. Other resources, like the CTU Relational Dataset Repository, provide a diverse array of databases for evaluating multi-tabular deep learning. The authors argue that a robust RDL benchmark must feature at least three tables, over 10,000 rows, and real-world temporal records to accurately reflect the complexity of production environments.

The Path Toward Foundation Models

One of the most compelling prospects of RDL is the development of "Relational Foundation Models." Unlike arbitrary graphs (such as social networks), relational databases follow strict, recurring structural patterns defined by PK-FK links. This consistency suggests that models could be pre-trained on a vast array of database schemas to learn universal relational primitives. Such models would ideally be capable of zero-shot generalization, performing predictions on entirely new database schemas without the need for extensive retraining or manual feature engineering. The "Kumo Relational Foundation Model" represents an early step toward this goal.

Conclusion

Relational Deep Learning represents a significant leap forward in the automation of machine learning for structured data. By treating databases as graphs, RDL models can reduce total model development time by over 95% while matching or exceeding the predictive power of human-engineered features. While challenges remain in scaling these models to hundreds of millions of rows and achieving true zero-shot generalization, the transition from manual SQL-based feature engineering to automated relational representation learning offers a scalable path for the future of enterprise AI.

Summary updated

BibTeX
@inproceedings{dwivedi2025relational,
  author = {Vijay Prakash Dwivedi and Charilaos I. Kanatsoulis and Shenyang Huang and Jure Leskovec},
  title = {{Relational Deep Learning: Challenges, Foundations and Next-Generation Architectures}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2025},
}
Figure