Manuscript Offprint
arXiv:2610.28855Speedrunning Relational Foundation Model Pretraining
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Progress on foundation model pretraining is gated by who can afford a trial, and relational pretraining is no exception. Recipes are developed inside individual labs, reported under private protocols, and do not accumulate. Speedrun leaderboards remove that barrier by decentralizing the search rather than the training run. The problem is fixed, the stack is open, entries are ranked by wall-clock time to a quality target, and one GPU is enough to hold the record. We introduce modded-nanoRT, the first such leaderboard for Relational Transformers. Which database to hold out decides whether the benchmark can resolve improvements at all, so we fix it by calibration, ranking six candidates by how sharply a 45-minute learning curve separates improvement from seed noise. We open the leaderboard with typed trilinear attention, a relational operator that conditions attention scores and values on the foreign key traversed, together with Muon and SIGReg. The recipe reaches the target in 305.63 seconds on one NVIDIA H200, faster than the reference implementation, and wins 13 of 15 pairs outside the development database. We will release the benchmark, its frozen artifacts, and the record runs. Our code is available at https://github.com/kunumi/nanoRT.
1 Introduction
Most machine learning data sits in relational databases, split across tables linked by primary–foreign key relationships. Standard pipelines flatten those links into a task-specific table, so data preparation repeats for every new database and prediction problem. Relational foundation models learn from the schema itself. RelBench standardized this setting across databases and predictive tasks [Robinson et al., 2024], and the Relational Transformer (RT) showed that one schema-aware model applies to unseen tasks without task-specific parameters or in-context examples [Ranjan et al., 2026a].
An architectural, optimizer, or regularization change takes hours to evaluate even at small scale, and the labs that can run such trials at volume are the labs with clusters, so recipe knowledge accumulates where the compute is and everyone else is priced out of the loop that produces it. Community speedruns answer this by pooling a different resource. Fixing the model family, the data, the hardware, and the target, and ranking submissions by time to reach it, turned recipe search for language model pretraining into a leaderboard that dozens of contributors each advanced by seconds [Jordan et al., 2024a]; modded-nanoTabPFN did the same for tabular models [Pfefferle et al., 2025, Ozturk et al., 2026]. What is decentralized here is not the training run but the search over it. Contributors hold one GPU each, work independently on disjoint parts of the design space, and their findings compose because every entry is measured on the same clock.
No such artifact exists for relational foundation models, and the format does not transfer mechanically. Language and tabular speedruns train on one fixed corpus. Relational pretraining mixes databases
40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: CODEC-FM.
with different schemas, and the quantity of interest is zero-shot transfer to a database the model has never seen, so the mixture and an entire held-out database must be fixed in advance.
We introduce modded-nanoRT, an open speedrun for pretraining a nano-scale Relational Transformer on a single GPU and evaluating it zero-shot on a held-out database. Table 1 lists what is fixed; the training stack is open, and submissions are ranked by wall-clock time to the target. Choosing the held-out database is the design problem the relational setting adds, and we settle it by calibration. All six candidates run for 45 minutes over multiple seeds, ranked by how sharply their learning curves separate improvements from seed noise.
We open the leaderboard with three changes to the RT recipe. We introduce typed trilinear attention. RT uses the schema only as an attention mask, so every foreign key shares one compatibility function; we make the relation a third multiplicative factor in the attention score and the message, so neighbors reached by different foreign keys are no longer scored alike. We add SIGReg as a representation-level regularizer over relational columns [Balestriero and LeCun, 2025], following tabular work that reports faster convergence under it [Merchant et al., 2026]. Muon orthogonalizes the matrix-valued updates of the backbone, carried over from the language model speedruns [Jordan et al., 2024b].
The record reaches the target in 305.63 seconds on one NVIDIA H200, faster than the reference implementation. Matched three-seed comparisons attribute the gain to Muon, and to typed attention only in combination with it; leave-one-database-out runs win 13 of 15 pairs outside development. Verification consumes 59.9% of the record, so the next entry should look at the evaluation path.
Time-to-quality benchmarks. DAWNBench introduced time-to-accuracy as a joint criterion for algorithmic and systems improvements [Coleman et al., 2018], MLPerf Training formalized quality targets under stochastic time to solution [Mattson et al., 2020], and Cramming audits a language model pipeline under a one-GPU, one-day budget [Geiping and Goldstein, 2022]. Speedrun leaderboards inherit this criterion and add an open submission process, so contributors accumulate improvements between benchmark rounds. modded-nanoRT carries that to relational pretraining, where the database mixture and the held-out database create their own validity constraints.
Typed and higher-order attention. Typed edges are handled elsewhere by relation-specific message transformations [Schlichtkrull et al., 2017], and trilinear scores appear in the 2-simplicial Transformer [Clift et al., 2019, Roy et al., 2025]. Our third factor is the database relation on a query–neighbor edge rather than a second neighbor, so typed trilinear attention is relation-conditioned message passing rather than a simplicial architecture.
3 The modded-nanoRT challenge
A full run fits on one accelerator. Table 1 lists the fixed quantities; the architecture, optimizer, regularization, context sampling algorithm, precision, and systems implementation remain open.
Training mixture. RelBench v1 provides seven databases. We keep only binary classification tasks, so that one metric applies across every database, and exclude rel-Event for confirmed temporal leakage. Six remain as candidates, with seed counts differing by orders of magnitude: rel-Amazon, rel-HM, rel-Stack, rel-Avito, rel-Trial, and rel-F1. One of the six is held out and excluded from the mixture, which therefore spans five. Sampling in proportion to those counts lets the largest database dominate the gradient and turns multi-database pretraining into single-database training; sampling uniformly over-weights the small schemas. We therefore temper the mixture, in the convention used for multilingual pretraining [Xue et al., 2021], , where is the seed count of database d and the weights are normalized to sum to one, halfway between proportional ( )
| Pretraining tasks | RelBench v1 binary classification tasks, minus rel-Avito and rel-Event |
|---|---|
| Mixture | temperature sampling, |
| Held-out database | rel-Avito |
| Metric | pooled AUROC on rel-Avito |
| Target | 0.81621 |
| Reference model | RT, 12 blocks, width 256, 8 heads |
| Trainable parameters | 19.3M |
| Hardware | 1× NVIDIA H200 |
| Clock | start to first evaluation reaching target |
Table 1: The modded-nanoRT protocol.
and uniform . Tempering is applied when the training artifact is built, by subsampling each database's seed list until its share of the seeds equals . The mixture is frozen as part of the protocol, because changing it changes what the metric measures.
Held-out database. Evaluation is zero-shot on a database excluded from the mixture, and which database plays that role decides whether the benchmark can resolve improvements at all. A database that saturates early, stalls at the noise floor, or is dominated by seed variance cannot rank entries. We settled it empirically, running a 45-minute leave-one-out calibration for each of six candidates over multiple seeds and ranking them by
where AUROC is the gain from initialization to 45 minutes, s is the regression slope of the AUROC curve over the final 20% of wall-clock time, and is the standard deviation across seeds. rel-Avito ranked first. The target, 0.81621, is the best pooled AUROC its calibration run reached inside the 45-minute budget, at 41:20 of 45:23 (Appendix B); the validation artifact was frozen alongside it with seeds capped at 50 000 and a fixed hop radius and text embeddings. Records are therefore speedups over the reference implementation, resolved to the width of each run's evaluation grid.
Evaluation. We evaluate on the frozen validation artifact for the two rel-Avito tasks, user-visits and user-clicks [Robinson et al., 2024]. At each scheduled evaluation we concatenate predictions and labels across both tasks and compute one AUROC. Pooling weights examples rather than tasks and confounds within-task ranking with cross-task score alignment. Only the pooled AUROC determines record eligibility.
Reference baseline. The baseline is the Relational Transformer of Ranjan et al. [2026a], reduced to nano scale. RT builds a temporally valid context around each seed row, masks the target cell, and represents every retained cell by its value, datatype, and frozen table–column text embedding; column, feature/foreign-key, and full attention mix these tokens before a datatype-specific decoder predicts the masked value. The baseline uses 12 blocks, width 256, eight heads, and a gated SiLU MLP of width 1024, for 19.3M trainable parameters. Pretraining uses bfloat16, contexts of 1024 cells, batches of 256, and AdamW at learning rate , weight decay 0.1, with linear warmup over the first of updates and linear decay after.
Rules. modded-nanoRT holds the problem fixed [Mattson et al., 2020, Jordan et al., 2024a, Ozturk et al., 2026]. A submission must use one H200, the prescribed training artifact, the frozen rel-Avito validation artifact, and the official metric, target, evaluation schedule, and timing boundary. Weights start from a declared random seed; a submission may not load a checkpoint, train on rel-Avito, reveal masked targets, or modify the validation pipeline. The budget is 45 minutes, and runs that miss the target stay in the analysis as right-censored failures.
4 The record recipe
Typed trilinear attention. Standard RT scores a query cell i and a neighboring cell j bilinearly, so all foreign-key types share the same compatibility function and a relation enters the model only as an attention mask. Two neighbors carrying the same value are then scored identically whether they were reached through review→product or review→customer, and the model must recover the difference from cell content alone, separately in every context it samples. We attach the relation type as a third factor in both the attention score and the message, driven by a frozen text embedding of the foreign-key description.
Relation-specific message transformations are standard [Schlichtkrull et al., 2017], but they allocate parameters per relation type and so cannot type an edge in a schema the model has never seen; the embedding comes from an external text encoder, so a new schema adds no parameters. Appendix A shows that the distinctness across relation types is what matters, not its content.
The factor is multiplicative rather than additive, following the trilinear principle of higher-order attention [Clift et al., 2019, Roy et al., 2025]. An additive term shifts the scores of an edge class uniformly and gives the relation the status of a query-independent prior over edge types; multiplying inside the head dimension lets the relation select which coordinates of the query-key match are counted, so one query can rank the same neighbor differently depending on how it was reached.
Let and denote the RMS-normalized cell and relation inputs to this sublayer.
The typed score, edge-normalized attention, and message are
where contains the child cells connected to parent cell and is a learned per-channel LayerScale initialized to one. The relation state starts from , where is a frozen text embedding of the foreign-key description. We keep static across the 12 blocks, but , the relation key/value projections, and LayerScale remain trainable. A sparse softmax evaluates only matched foreign-key edges, so memory scales with the number of typed edges.
Muon. Adam rescales each coordinate by its own gradient statistics, so the update matrix concentrates on a few dominant directions and successive steps reinforce the same subspace. Muon replaces the momentum update of each matrix-valued parameter with the nearest semi-orthogonal matrix, computed by a five-step Newton–Schulz iteration in bfloat16 [Jordan et al., 2024b], so every singular direction advances comparably and a step buys more of the representation than an Adam step of the same norm. The gain is largest early in training, the only regime a speedrun measures, and RT is almost entirely matrix-valued, with four attention sublayers and a gated MLP per block. We apply it to the two-dimensional matrices in the standard attention, typed attention, and feed-forward modules, at peak learning rate . AdamW updates the encoders, decoders, normalization and scale parameters, biases, and the SIGReg projector, at learning rate and weight decay 0.1. Both branches follow the reference schedule. Muon is inherited from prior speedruns and from relational pretraining [Liu et al., 2025, Ranjan et al., 2026b]; we report its contribution but do not claim it.
SIGReg. RT admits every column of every database into one residual stream through per-datatype encoders, so a price and a free-text title arrive with no shared scale or shape, and nothing prevents a column's hidden states from collapsing onto a low-dimensional region early in training; the shared blocks then spend capacity renormalizing their inputs. An isotropy constraint cannot add capacity, so we expect it to shorten the path to a given quality without raising the ceiling, which is what Merchant et al. [2026] report for tabular models and what Akbar [2026] report for vision and MLP backbones.
SIGReg matches random one-dimensional projections of a representation distribution to a standard Gaussian through an Epps–Pulley statistic [Balestriero and LeCun, 2025]. We apply it to the hidden states leaving the first block, so that the constraint acts on the backbone’s input. Cells are grouped by (table, column), which enforces isotropy within each column’s own population; a trainable projector maps each hidden state, random unit vectors slice the output, and for every group with at least eight valid cells we penalize the squared distance between

Figure 1: The two architectural changes in the record recipe, marked in burgundy. A frozen text embedding of each foreign-key description enters the trilinear operator, which replaces RT's neighbor attention in all twelve blocks. SIGReg is applied during training, at the first block only.
the empirical characteristic function of each slice and that of over . Writing that group-weighted penalty as , the objective is
and the projector trains jointly with the backbone.
Figure 1 summarizes the retained RT backbone and the three changes in the record recipe.
5 Results
We report three views: the record lineage, a matched multi-seed sweep for attribution, and a leave-one-database-out study for transfer.
5.1 The record
The archived modded-nanoRT record logs its first record-eligible verification at 305.63 seconds (5:05.6) on one NVIDIA H200, faster than the reference implementation (Figure 2).

Figure 2: Cumulative record lineage, from the reference implementation’s 41:20 to 305.63 seconds. Entries are chronological records, not controlled comparisons.
That verification is the first scheduled evaluation, after 100 updates, and it returns 0.871392 AUROC against a target of 0.81621, above every value the reference implementation reaches inside its full 45-minute budget. The reference needs 10,500 of its 11,621 updates to reach the target and is evaluated every 500, so both reported times are upper bounds set by their own grids. Verification dominates the measured duration, at 182.96 seconds (59.9%) against 122.67 seconds of training (40.1%). Those 100 updates also fall inside the learning-rate warmup, so the record is set before either optimizer reaches its peak rate; the schedules were chosen for the 45-minute horizon and are mis-specified for a run that now ends in five minutes. The benchmark now resolves time-to-target only to the width of its own evaluation grid, so the next entries should shorten the evaluation path, refine the evaluation schedule, and refit the learning-rate schedules before optimizing the update loop.
5.2 Component attribution
We evaluate six configurations with three paired seeds, scoring the best scheduled checkpoint within the budget. In Table 2, Muon improves RT in all three pairs, by +2.56 points on average.
Table 2: Paired change in best rel-Avito pooled AUROC (row minus control, percentage points). Mean ± standard deviation across three seeds; Wins counts seeds with a positive difference.
| Component | Paired contrast | Δ AUROC (pp) | Wins |
|---|---|---|---|
| Muon | on AdamW RT | +2.56 ± 3.13 | 3/3 |
| with typed attention | +6.60 ± 3.53 | 3/3 | |
| Typed attention | on Muon+SIGReg | +3.56 ± 4.79 | 2/3 |
| on AdamW | -1.21 ± 5.79 | 1/3 | |
| SIGReg | before typed attention | -0.47 ± 0.66 | 0/3 |
| with typed attention | +0.26 ± 0.42 | 3/3 |
Typed attention costs 1.21 points under AdamW and wins one pair of three; under Muon+SIGReg it gains 3.56 and wins two. Either the operator is simply slow, so a fixed budget measures convergence speed rather than compatibility, or the three-factor score needs orthogonalized updates that a coordinate-wise optimizer cannot supply.
Table 2 scores best AUROC within the budget, so it measures attainable quality, which Section 4 predicts SIGReg should not move; both contrasts straddle zero (-0.47 and +0.26 points). We therefore keep SIGReg in the record recipe on the time-to-target evidence of Section 5.1 and claim no effect for it on final quality.
5.3 Transfer across held-out databases
Across six leave-one-database-out holdouts, the final recipe wins 15 of 18 matched database–seed pairs, with mean and median gains of 2.14 and 2.53 AUROC points (Table 3). Excluding development on rel-Avito, it wins 13 of 15 pairs and averages +1.98 points. Five databases have positive mean gains; rel-Amazon is the exception, and seed variance explains it. Best-checkpoint selection over three seeds ranks these contrasts; it does not test them.
Table 3: Best pooled AUROC across leave-one-database-out holdouts. is Final minus AdamW RT in percentage points, mean standard deviation across three seeds.
| Held-out DB | AdamW RT | Final | Δ (pp) | Wins |
|---|---|---|---|---|
| rel-Amazon | 58.45 | 58.17 | -0.29 ± 12.86 | 2/3 |
| rel-Avito | 80.21 | 83.15 | +2.94 ± 6.24 | 2/3 |
| rel-F1 | 79.55 | 84.58 | +5.04 ± 1.69 | 3/3 |
| rel-HM | 62.77 | 65.14 | +2.37 ± 0.51 | 3/3 |
| rel-Stack | 75.07 | 76.96 | +1.88 ± 1.85 | 3/3 |
| rel-Trial | 51.50 | 52.38 | +0.88 ± 2.91 | 2/3 |
| All pairs | 67.93 | 70.06 | +2.14 ± 5.36 | 15/18 |
6 Conclusion
modded-nanoRT holds the problem fixed and leaves the training stack open, so that improvements accumulate across contributors. The opening entry reaches the target in 305.63 seconds on one H200, faster than the reference implementation. Matched comparisons attribute that to Muon, and to typed attention only in combination with it, and outside the development database the recipe wins 13 of 15 pairs. Every reported quantity selects the best scheduled checkpoint within the budget over three seeds, and rel-Amazon's standard deviation of 12.86 points exceeds every effect measured here.
Verification consumes of the record and the first scheduled evaluation clears the target by 5.5 points, so the next entry should attack the evaluation path before the update loop, refit the learning-rate schedules to the horizon the record now occupies, and drop the text encoder (Appendix A).
References
Habibullah Akbar. Weak-sigreg: Covariance regularization for stable deep learning. arXiv preprint arXiv:2603.05924, 2026.
Randall Balestriero and Yann LeCun. LeJEPA: Provable and scalable self-supervised learning without the heuristics, 2025. URL https://arxiv.org/abs/2511.08544.
James Clift, Dmitry Doryn, Daniel Murfet, and James Wallbridge. Logic and the 2-simplicial transformer, 2019. URL https://arxiv.org/abs/1909.00668.
Cody Coleman, Daniel Kang, Deepak Narayanan, Luigi Nardi, Tian Zhao, Jian Zhang, Peter Bailis, Kunle Olukotun, Chris Ré, and Matei Zaharia. Analysis of DAWNBench, a time-to-accuracy machine learning performance benchmark, 2018. URL https://arxiv.org/abs/1806.01427.
Jonas Geiping and Tom Goldstein. Cramming: Training a language model on a single GPU in one day, 2022. URL https://arxiv.org/abs/2212.14034.
Keller Jordan, Jeremy Bernstein, Brendan Rappazzo, @fernbear.bsky.social, Boza Vlado, You Jiacheng, Franz Cesista, Braden Koszarsky, and @Grad62304977. modded-nanogpt: Speedrunning the nanogpt baseline, 2024a. URL https://github.com/KellerJordan/modded-nanogpt.
Keller Jordan, Yuchen Jin, Vlado Boza, You Jiacheng, Franz Cesista, Laker Newhouse, and Jeremy Bernstein. Muon: An optimizer for hidden layers in neural networks, 2024b. URL https://kellerjordan.github.io/posts/muon/.
Vignesh Kothapalli, Rishabh Ranjan, Valter Hudovernik, Vijay Prakash Dwivedi, Johannes Hoffart, Carlos Guestrin, and Jure Leskovec. PluRel: Synthetic data unlocks scaling laws for relational foundation models, 2026. URL https://arxiv.org/abs/2602.04029. Accepted at ICML 2026.
Jingyuan Liu, Jianlin Su, Xingcheng Yao, Zhejun Jiang, Guokun Lai, Yulun Du, Yidao Qin, Weixin Xu, Enzhe Lu, Junjie Yan, Yanru Chen, Huabin Zheng, Yibo Liu, Shaowei Liu, Bohong Yin, Weiran He, Han Zhu, Yuzhi Wang, Jianzhou Wang, Mengnan Dong, Zheng Zhang, Yongsheng Kang, Hao Zhang, Xinran Xu, Yutao Zhang, Yuxin Wu, Xinyu Zhou, and Zhilin Yang. Muon is scalable for LLM training, 2025. URL https://arxiv.org/abs/2502.16982.
Peter Mattson et al. MLPerf training benchmark, 2020. URL https://arxiv.org/abs/1910.01500. MLSys 2020.
Humzah Merchant, Sriniketh Vangaru, and Randall Balestriero. Optimizing pre-training of tabular foundation models by shaping geometry. In 2nd ICML Workshop on Foundation Models for Structured Data, 2026. URL https://openreview.net/forum?id=IYnHchzvYB.
Salih Bora Ozturk, Alexander Pfefferle, and Frank Hutter. Speedrunning tabular foundation model pretraining, 2026. URL https://arxiv.org/abs/2606.03681. 2nd ICML Workshop on Foundation Models for Structured Data.
Alexander Pfefferle, Johannes Hog, Lennart Purucker, and Frank Hutter. nanoTabPFN: A lightweight and educational reimplementation of TabPFN, 2025. URL https://arxiv.org/abs/2511.03634.
Rishabh Ranjan, Valter Hudovernik, Mark Znidar, Charilaos Kanatsoulis, Roshan Upendra, Mahmoud Mohammadi, Joe Meyer, Tom Palczewski, Carlos Guestrin, and Jure Leskovec. Relational transformer: Toward zero-shot foundation models for relational data, 2026a. URL https://arxiv.org/abs/2510.06377. Accepted at ICLR 2026.
Rishabh Ranjan, Vignesh Kothapalli, Harshvardhan Agarwal, Charilaos I. Kanatsoulis, Roshan Reddy Upendra, Tom Palczewski, Carlos Guestrin, and Jure Leskovec. Large-scale pretraining unlocks few-shot prediction for relational data. In 2nd ICML Workshop on Foundation Models for Structured Data, 2026b. URL https://openreview.net/forum?id=oQINTd9din.
Joshua Robinson, Rishabh Ranjan, Weihua Hu, Kexin Huang, Jiaqi Han, Alejandro Dobles, Matthias Fey, Jan E. Lenssen, Yiwen Yuan, Zecheng Zhang, Xinwei He, and Jure Leskovec. RelBench: A benchmark for deep learning on relational databases, 2024. URL https://arxiv.org/abs/2407.20060.
Aurko Roy, Timothy Chou, Sai Surya Duvvuri, Sijia Chen, Jiecao Yu, Xiaodong Wang, Manzil Zaheer, and Rohan Anil. Fast and simplex: 2-simplicial attention in Triton, 2025. URL https://arxiv.org/abs/2507.02754.
Michael Schlichtkrull, Thomas N. Kipf, Peter Bloem, Rianne van den Berg, Ivan Titov, and Max Welling. Modeling relational data with graph convolutional networks, 2017. URL https://arxiv.org/abs/1703.06103.
Linting Xue, Noah Constant, Adam Roberts, Mihir Kale, Rami Al-Rfou, Aditya Siddhant, Aditya Barua, and Colin Raffel. mT5: A massively multilingual pre-trained text-to-text transformer. In NAACL-HLT, pages 483–498, 2021.
A What the relation vector must carry
The third attention factor uses a frozen embedding of each foreign-key description, which may contribute semantic content or simply distinguish relation types. Four conditions isolate these effects over seven seeds, with the rest of the recipe fixed (Table 4). Semantic FK is the record recipe; Shuffled FK permutes its embeddings across types; Random per type/layer assigns each type a fixed random vector in each block; and Random per edge assigns one to each edge, removing type identity.
Table 4: Relation-vector ablation on rel-Avito over seven seeds (mean ± standard deviation). Reached target counts seeds whose best pooled AUROC exceeds 0.81621.
| Relation vector | Best AUROC | Steps 100–900 | Reached target |
|---|---|---|---|
| Semantic FK (record recipe) | 0.8335 ± 0.0330 | 0.7656 ± 0.0327 | 5/7 |
| Shuffled FK | 0.8371 ± 0.0381 | 0.7794 ± 0.0395 | 5/7 |
| Random per type/layer | 0.8397 ± 0.0156 | 0.7830 ± 0.0254 | 7/7 |
| Random per edge | 0.8204 ± 0.0281 | 0.7739 ± 0.0328 | 3/7 |
Shuffling does not reduce either reported mean, while fixed random type/layer vectors give the highest means, reach the target in every seed, and have less than half the record recipe's best-AUROC standard deviation. Removing type identity (Random per edge) reaches the target in only three seeds. However, no pair separates at (min ; Figure 3), so this ordering is descriptive. The results support dropping the text encoder in later entries.

Figure 3: Mean AUROC over steps 100–900. The bar denotes the nonsignificance clique at .
B Reference calibration trajectory

Figure 4: Reference evaluation trajectory over the 45-minute calibration budget (11,621 updates, evaluated every 500). Its best value, 0.81621 at 41:20, defines the target; the record recipe exceeds it at 5:05.6, reaching 0.8714. Times are upper bounds determined by the evaluation grids.