cs.LGNov 25, 2026

Pretraining for Forecasting in Relational Databases

Authors: Ziyue Lin, Sebastian Regalado Lozano, Michael Guerzhoy, Ricardo Baptista, George Stein

Organizations: Layer 6 AI · University of Toronto

Abstract

Real-world forecasting increasingly relies on asynchronous transaction logs in relational databases rather than uniformly sampled arrays. While relational deep learning (RDL) models can forecast from these complex histories, they are typically trained separately for each specific target and root entity type. We introduce Query-Conditioned Relational pretraining (QCRP), a self-supervised framework that enables a standard RDL backbone to act as a universal forecaster across a database. QCRP generates diverse forecasting objectives using a structured temporal query grammar and interleaves them through a shared conditional predictor. This produces a robust, frozen encoder reusable for downstream tasks via lightweight predictors or a zero-shot interface. Evaluated on large-scale RelBench databases, QCRP learns frozen representations that support competitive forecasting across tasks and entity types. Furthermore, a single unified QCRP model checkpoint is competitive with isolated, entity-specific specialists. We demonstrate promising results for reusing the learned representations from standard RDL backbones for forecasting tasks in relational databases.

Figures & tables

Appendix figures & tables18 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

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

    Mar 4, 2026Yanbo Wang, Jiaxuan You, Chuan Shi +1Relational ICLRelational Foundation Models

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

    Oct 13, 2026Rishabh Ranjan, Vignesh Kothapalli, Harshvardhan Agarwal +5Relational ICLRelational Foundation Models

  3. RelAgent: LLM Agents as Data Scientists for Relational Learning

    May 8, 2026Xingyue Huang, Louis Tichelman, Jinwoo Kim +2Interpretable MLLLM Agents