Introduction
Relational databases house approximately 73% of real-world data. While Large Language Models (LLMs) have revolutionized unstructured text processing, applying them to structured relational data remains a significant challenge. Current estimates suggest that by 2025, the token costs for processing global text and structured data could reach $5,000 trillion, highlighting a massive scalability gap. Relational Table Learning (RTL) seeks to address this by enabling models to navigate multiple tables connected via foreign keys. However, the field lacks standardized frameworks and benchmarks, leading to fragmented research.
The rLLM Library
To bridge this gap, the authors introduce rLLM (relationLLM), an open-source PyTorch library designed for fast, modular, and scalable RTL. The library is built on a three-layer architecture that decouples data handling from model logic.
- Data Engine Layer: Manages data loading and storage, efficiently handling both graph structures (nodes/edges) and tabular data (rows/columns).
- Module Layer: Provides "Lego-like" components including Graph Neural Networks (GNNs) for message-passing, LLM modules for prediction and enhancement, and Table Neural Networks (TNNs) for feature encoding.
- Model Layer: Supports various integration strategies such as Combine (sequential), Align (embedding synchronization), and Co-Train (joint optimization).
Using rLLM, the authors developed BRIDGE (Basic RelatIonal table-Data LearninG FramEwork), which simplifies multi-table learning by converting auxiliary tables into dense embeddings that provide context to a target table without excessive complexity.
SJTUTables: New RTL Benchmarks
The paper introduces SJTUTables, a suite of three relational benchmarks derived from classic datasets but enhanced for modern RTL tasks:
- TML1M (Table-MovieLens1M): Predicting user age ranges based on user, movie, and rating data.
- TLF2K (Table-LastFm2K): Music genre classification using artist and user relationships.
- TACM12K (Table-ACM12K): Predicting publication conferences from paper, author, and citation data.
Key Results
Experimental results on SJTUTables demonstrate that the BRIDGE method, implemented via rLLM, significantly outperforms traditional single-table models.
On the TLF2K dataset, BRIDGE achieved an accuracy of 0.422, nearly tripling the performance of standalone models like TabNet (0.134). These results underscore that traditional TNNs fail to leverage the rich relational information inherent in multi-table databases, whereas rLLM-based approaches successfully extract this value.
Conclusion
rLLM provides a much-needed standardized framework for Relational Table Learning. By modularizing the interaction between GNNs, TNNs, and LLMs, it lowers the barrier for researchers to build sophisticated models that understand both tabular features and relational connections. Future work will focus on integrating more advanced RTL methods and optimizing data structures for even greater efficiency.
The project is open-source and available at: https://github.com/rllm-project/rllm
Summary updated