cs.LGMar 4, 2026

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

Authors: Yanbo Wang, Jiaxuan You, Chuan Shi, Muhan Zhang

Organizations: Institute for Artificial Intelligence, Peking University · University of Illinois at Urbana-Champaign · Institute of Computing Technology, Beijing University of Post and Telecommunication · State Key Laboratory of General Artificial Intelligence

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. 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.

Figures & tables

Appendix figures & tables35 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. PluRel-to-RDB-PFN: Schema-Guided Synthetic Relational Pretraining

    Jul 31, 2026Mohammad Sadeq Abolhasani, Viswanath GanapathyRelational Foundation ModelsSynthetic Data Pretraining

  2. Curriculum Matters: Data-Efficient Relational PFN Pretraining with Synthetic Data

    Jul 31, 2026Mohammad Sadeq Abolhasani, Viswanath GanapathySynthetic Data PretrainingSynthetic Data Generation

  3. RT-J: Large-Scale Pretraining of Relational Transformers for Context-Efficient Predictions

    Oct 13, 2026Rishabh Ranjan, Vignesh Kothapalli, Harshvardhan Agarwal +5Relational Foundation ModelsRelational Deep Learning