No Need to Train Your RDB Foundation Model
About
Relational databases (RDBs) contain vast amounts of heterogeneous tabular information that can be exploited for predictive modeling purposes. But since the space of potential targets is vast across enterprise settings, how can we avoid retraining a new model each time we wish to predict a new quantity of interest? Foundation models based on in-context learning (ICL) offer a convenient option, but so far are largely restricted to single-table operability. In generalizing to multiple interrelated tables, it is essential to compress variably-sized RDB neighborhoods into fixed-length ICL samples for consumption by the decoder. However, the details here are critical: unlike existing supervised learning RDB pipelines, we provide theoretical and empirical evidence that ICL-specific compression should be constrained within high-dimensional RDB columns where all entities share units and roles, not across columns where the relevance of heterogeneous data types cannot be determined without extensive label information. Conditioned on this restriction, we then demonstrate that encoder expressiveness is actually not compromised by excluding trainable parameters. Hence we arrive at a principled family of RDB encoders that can be seamlessly paired with already-existing single-table ICL foundation models, whereby no training or fine-tuning is required. From a practical standpoint, we develop scalable SQL primitives to implement the encoder stage, resulting in the easy-to-use open-source RDBLearn foundation model capable of robust performance on unseen datasets out of the box.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Entity Classification | RelBench rel-avito user-visits | AUC65.49 | 49 | |
| Entity Regression | RelBench v1.0 (test) | CTR (Avito Ad)3.4 | 45 | |
| Entity Classification | RelBench rel-stack user-badge | AUC85.26 | 40 | |
| Binary Classification | RelBench 1.0 (test) | Relational Amazon User Churn71.58 | 26 | |
| Entity Regression | RelBench V1 | Avito CTR Error (MAE)0.038 | 26 | |
| Entity Classification | RELBENCH rel-amazon item-churn (test) | AUROC82.07 | 23 | |
| Entity Classification | RelBench rel-stack user-engage | AUC89.39 | 21 | |
| Binary Classification | 4DBInfer (test) | AUROC (AB Churn)0.7742 | 20 | |
| Binary Classification | RelBench V1 | Avito Click AUROC61.58 | 20 | |
| Entity Classification | RelBench rel-avito user-clicks | AUC69.04 | 12 |