Relational In-Context Learning via Synthetic Pre-training with Structural Prior

Yanbo Wang, Jiaxuan You, Chuan Shi, Muhan Zhang
3/4/2026
18 citations
cs.LGcs.AIcs.DB

Official code: MuLabPKU/RDBPFN (14 stars, Python, last commit 2026-10-19).

Abstract

Relational Databases (RDBs) are the backbone of modern business, yet they lack foundation models comparable to those in text or vision. A key obstacle is that high-quality RDBs are private, scarce, and structurally heterogeneous, making internet-scale pre-training infeasible.

Show full abstract

To overcome this data scarcity, we introduce RDB-PFN, the first relational foundation model trained purely via synthetic data. Inspired by Prior-Data Fitted Networks (PFNs), where synthetic data generated from Structural Causal Models (SCMs) enables reasoning on single tables, we design a Relational Prior Generator to create an infinite stream of diverse RDBs from scratch. Pre-training on over 2 million synthetic single-table and relational tasks, RDB-PFN learns to adapt to any new database instantly via genuine in-context learning. Experiments show that RDB-PFN achieves strong few-shot performance on 19 real-world relational prediction tasks, outperforming state-of-the-art tabular foundation models evaluated on the same DFS-linearized inputs, while using a lightweight architecture and fast inference. The code is available at https://github.com/MuLabPKU/RDBPFN.

View on arXivView PDF

Code Implementations(1)

MuLabPKU/RDBPFNOfficial100%

This is the official implementation of "Relational In-Context Learning via Synthetic Pre-training with Structural Prior"

141Python, ShellFeb 27, 20261 months ago

Similar Papers

Cite this paper

@article{wang2026relational,
  title  = {Relational In-Context Learning via Synthetic Pre-training with Structural Prior},
  author = {Yanbo Wang and Jiaxuan You and Chuan Shi and Muhan Zhang},
  year   = {2026},
  eprint = {2603.03805},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.03805v5}
}

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/2603.03805.svg)](https://codeofpaper.com/paper/2603.03805)

Discussion