Relational Transformer: Toward Zero-Shot Foundation Models for Relational Data

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Ranjan, Rishabh, Hudovernik, Valter, Znidar, Mark, Kanatsoulis, Charilaos, Upendra, Roshan, Mohammadi, Mahmoud, Meyer, Joe, Palczewski, Tom, Guestrin, Carlos, Leskovec, Jure
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866918365241540608
author Ranjan, Rishabh
Hudovernik, Valter
Znidar, Mark
Kanatsoulis, Charilaos
Upendra, Roshan
Mohammadi, Mahmoud
Meyer, Joe
Palczewski, Tom
Guestrin, Carlos
Leskovec, Jure
author_facet Ranjan, Rishabh
Hudovernik, Valter
Znidar, Mark
Kanatsoulis, Charilaos
Upendra, Roshan
Mohammadi, Mahmoud
Meyer, Joe
Palczewski, Tom
Guestrin, Carlos
Leskovec, Jure
contents Pretrained transformers readily adapt to new sequence modeling tasks via zero-shot prompting, but relational domains still lack architectures that transfer across datasets and tasks. The core challenge is the diversity of relational data, with varying heterogeneous schemas, graph structures and functional dependencies. In this paper, we present the Relational Transformer (RT) architecture, which can be pretrained on diverse relational databases and directly applied to unseen datasets and tasks without task- or dataset-specific fine-tuning, or retrieval of in-context examples. RT (i) incorporates task specification via task table prompting, (ii) tokenizes cells with table/column metadata, (iii) is pretrained via masked token prediction, and (iv) utilizes a novel Relational Attention mechanism over columns, rows, and primary-foreign key links. Pretrained on RelBench datasets spanning tasks such as churn and sales forecasting, RT attains strong zero-shot performance, averaging 93% of fully supervised AUROC on binary classification tasks with a single forward pass of a 22M parameter model, as opposed to 84% for a 27B LLM. Fine-tuning yields state-of-the-art results with high sample efficiency. Our experimental analyses show that RT's zero-shot transfer leverages task context, relational attention patterns and schema semantics. Overall, RT provides a practical path toward foundation models for relational data. Code, models, data: https://github.com/snap-stanford/relational-transformer.
format Preprint
id arxiv_https___arxiv_org_abs_2510_06377
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Relational Transformer: Toward Zero-Shot Foundation Models for Relational Data
Ranjan, Rishabh
Hudovernik, Valter
Znidar, Mark
Kanatsoulis, Charilaos
Upendra, Roshan
Mohammadi, Mahmoud
Meyer, Joe
Palczewski, Tom
Guestrin, Carlos
Leskovec, Jure
Machine Learning
Artificial Intelligence
Databases
Pretrained transformers readily adapt to new sequence modeling tasks via zero-shot prompting, but relational domains still lack architectures that transfer across datasets and tasks. The core challenge is the diversity of relational data, with varying heterogeneous schemas, graph structures and functional dependencies. In this paper, we present the Relational Transformer (RT) architecture, which can be pretrained on diverse relational databases and directly applied to unseen datasets and tasks without task- or dataset-specific fine-tuning, or retrieval of in-context examples. RT (i) incorporates task specification via task table prompting, (ii) tokenizes cells with table/column metadata, (iii) is pretrained via masked token prediction, and (iv) utilizes a novel Relational Attention mechanism over columns, rows, and primary-foreign key links. Pretrained on RelBench datasets spanning tasks such as churn and sales forecasting, RT attains strong zero-shot performance, averaging 93% of fully supervised AUROC on binary classification tasks with a single forward pass of a 22M parameter model, as opposed to 84% for a 27B LLM. Fine-tuning yields state-of-the-art results with high sample efficiency. Our experimental analyses show that RT's zero-shot transfer leverages task context, relational attention patterns and schema semantics. Overall, RT provides a practical path toward foundation models for relational data. Code, models, data: https://github.com/snap-stanford/relational-transformer.
title Relational Transformer: Toward Zero-Shot Foundation Models for Relational Data
topic Machine Learning
Artificial Intelligence
Databases
url https://arxiv.org/abs/2510.06377