Manuscript Offprint

arXiv:2610.03057

When Does Synthetic Relational Data Teach Models to Use Relations? Tracing Predictive Structure from Pretraining Data to Model Behavior

Shivam Dubey, Mohamed Bouadi, Nassim Bouarour, Varun Kulkarni, Aditya Tanna, Vinay Kumar Sankarapu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Relational foundation models are increasingly pretrained on synthetic databases, yet downstream benchmarks reveal little about why one synthetic corpus produces a better model than another. In particular, strong performance may arise from realistic row-level statistics without the model ever learning to use relational structure. We study this as a data-attribution problem: which property of synthetic pretraining data induces relational computation? Using four Relational Transformer checkpoints trained with the same architecture, initialization, objective, and compute budget on corpora produced by four relational data generators, we trace a measurable property of the data to learned computation and downstream behavior. We hypothesize that relational mechanisms emerge when cross-table information is predictively necessary for the masked-cell pretraining objective. RelDiff exhibits by far the largest predictive gain from foreign-key-linked parents, and its corresponding model is uniquely sensitive to foreign-key interventions on unseen databases. This dependence survives a random-initialization control, grows monotonically with the fraction of corrupted links, and localizes to a serial cross-table pathway. Finally, disrupting the same mechanism during downstream inference removes RelDiff's advantage on relational tasks while leaving structure-insensitive models nearly unchanged. These results connect a property of synthetic training data to a learned mechanism and, through intervention, to downstream behavior

Keywords: Relational Foundation Models; Synthetic Pretraining; Data Attribution; Mechanistic Interpretability; Relational Learning

Lexsi.ai

1 Introduction

Relational databases encode information at two levels: in the attributes of individual rows and in the relationships that connect entities across tables. A customer's properties, for example, may be informative on their own, but many prediction problems additionally depend on related transactions, products, accounts, or organizations. Recent work has therefore moved beyond single-table prediction [1, 2, 3, 4, 5] toward relational deep learning and relational foundation models (RFMs), including Relational Deep Learning [6], RelBench [7], Griffin [8], KumoRFM [9], and the Relational Transformer (RT) [10]. A central goal of these models is to transfer across databases and prediction tasks while exploiting foreign-key (FK) structure, rather than requiring a separately trained model and manually engineered joins or aggregations for every task.

Pretraining such models creates a fundamental data problem. Large and diverse collections of real relational databases are difficult to obtain, frequently proprietary, and heterogeneous in both schema and semantics. This has motivated the use of synthetic data for foundation-model pretraining. In the single-table setting, O'PRIOR [11] shows that the design of the synthetic pretraining distribution itself can be a first-order determinant of downstream accuracy and robustness,

When Does Synthetic Relational Data Teach Models to Use Relations? Tracing Predictive Structure from Pretraining Data to Model Behavior

even when model architecture and training budget are held fixed. This question becomes especially important in the relational setting, where a synthetic generator must determine not only feature distributions but also schemas, cardinalities, foreign-key structure, and statistical dependencies across related tables. RelDiff [12] and graph-conditional relational diffusion models (GRDM) [13] generate data conditioned on real database structure, whereas PluRel [14] and RDB-PFN [15] construct relational pretraining distributions without requiring a reference database. These approaches differ substantially in how schemas, cardinalities, attribute distributions, and dependencies between related tables are generated.

A natural way to compare such generators is to pretrain the same model on each resulting corpus and evaluate the checkpoints on downstream tasks. This establishes which synthetic pretraining distribution produces the strongest model, but it does not establish why. A generator may improve downstream performance because it better reproduces single-column marginals, because it produces more diverse schemas, because its rows contain more predictable within-table structure, because its foreign-key relationships carry useful signal, or because of some combination of these factors. A benchmark score alone cannot identify which property of the synthetic data produced a particular learned capability. Our central question is therefore not simply which generator performs best?, but rather:

What property of a synthetic relational pretraining distribution causes a model to learn to use relations?

We view this as a problem of data attribution. Classical influence functions [16], TracIn [17], datamodels [18], and TRAK [19] attribute predictions or model behaviors to individual training examples or subsets. Our attribution target is different: a synthetic generator induces an entire distribution over relational databases. Attributing a capability directly to generator identity is therefore too coarse. We instead seek an intermediate property of the generated distribution that explains why a particular computation becomes useful during pretraining.

Our hypothesis is motivated by RT’s masked-cell reconstruction objective. If a masked value is already predictable from information in its own row, a model can reduce pretraining loss without making meaningful use of related tables. If FK-linked rows contain additional predictive information unavailable locally, however, exploiting relational context becomes useful for solving the objective. We refer to this property as relational predictive necessity. Importantly, this distinguishes architectural capacity from learned reliance: providing a model with cross-table computational pathways does not imply that pretraining will make those pathways functionally important. Section 2 formalizes this hypothesis and describes the relevant RT mechanisms.

We test this idea by tracing a sequence from the training data to model behavior. First, we measure relational predictive signal directly in the generated corpora, without using RT. We then test whether the corresponding pretrained checkpoints functionally depend on FK structure during masked reconstruction. Next, we intervene on RT's internal cross-table computation to localize the mechanism responsible for this dependence. Finally, we perturb the same relational information during downstream RelBench inference to determine whether the identified mechanism is responsible for the observed downstream behavior.

Our contributions are threefold:

  1. A data-side measure of relational predictive necessity. We quantify the predictive gain provided by FK-linked information beyond features available in the target row, giving a model-independent measure of whether a synthetic pretraining corpus rewards cross-table computation.

  2. A mechanistic analysis of relational reliance. Using structural corruption, a random-initialization control, graded interventions, and pathway-specific ablations, we show that the RT checkpoint pretrained on the corpus with the strongest parent-linked predictive signal develops substantially stronger functional reliance on relational structure. We further localize this dependence to a specific serial cross-table computation.

  3. A causal connection between mechanism and downstream behavior. We rerun downstream inference while disrupting FK structure or the corresponding internal computation. On a task where relational structure provides a large advantage, disrupting the identified mechanism removes that advantage, whereas checkpoints that do not rely on relational structure remain nearly unchanged. We also identify cases in which disrupting relational information improves performance, showing that learned relational priors can help or hurt depending on how well they match the downstream database.

The causal scope of these results is important. Our inference-time interventions establish a causal link between the identified relational computation and model behavior while holding the trained checkpoint fixed. The synthetic pretraining corpora themselves, however, are not produced by independently randomizing relational predictive necessity while holding every other property constant. We therefore treat the relationship between corpus predictive structure and the learned mechanism as evidence for our hypothesis, rather than as a universal causal law. A stronger data-side causal

When Does Synthetic Relational Data Teach Models to Use Relations? Tracing Predictive Structure from Pretraining Data to Model Behavior

test would selectively alter cross-table predictive dependencies while preserving other corpus statistics and retrain from the same initialization.

References (19)