RDBLearn: Simple In-Context Prediction Over Relational Databases

Yanlin Zhang, Linjie Xu, Quan Gan, David Wipf, Minjie Wang
2/14/2026
cs.DBcs.AIcs.LG

Official code: HKUSHXLab/rdblearn (19 stars, last commit 2026-04-30).

Abstract

Recent advances in tabular in-context learning (ICL) show that a single pretrained model can adapt to new prediction tasks from a small set of labeled examples, avoiding per-task training and heavy tuning. However, many real-world tasks live in relational databases, where predictive signal is spread across multiple linked tables rather than a single flat table. We show that tabular ICL can be extended to relational prediction with a simple recipe: automatically featurize each target row using relational aggregations over its linked records, materialize the resulting augmented table, and run an off-the-shelf tabular foundation model on it. We package this approach in \textit{RDBLearn} (https://github.com/HKUSHXLab/rdblearn), an easy-to-use toolkit with a scikit-learn-style estimator interface that makes it straightforward to swap different tabular ICL backends; a complementary agent-specific interface is provided as well. Across a broad collection of RelBench and 4DBInfer datasets, RDBLearn is the best-performing foundation model approach we evaluate, at times even outperforming strong supervised baselines trained or fine-tuned on each dataset.

View on arXivView PDF

Code Implementations(1)

HKUSHXLab/rdblearnOfficial100%

Relational Database Learning with Foundation Models

193PythonFeb 12, 20265 months ago

Similar Papers

Cite this paper

@article{zhang2026rdblearn,
  title  = {RDBLearn: Simple In-Context Prediction Over Relational Databases},
  author = {Yanlin Zhang and Linjie Xu and Quan Gan and David Wipf and Minjie Wang},
  year   = {2026},
  eprint = {2602.18495},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.18495v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.18495.svg)](https://codeofpaper.com/paper/2602.18495)

Discussion