arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.06377cs.LGcs.AIcs.DB
收藏

关系变换器:面向关系数据的零样本基础模型

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

Stanford University(斯坦福大学);Kumo AI;University of Oxford(牛津大学);SAP Labs LLC(SAP实验室有限责任公司)

Rishabh Ranjan, Valter Hudovernik, Mark Znidar, Charilaos Kanatsoulis, Roshan Upendra, Mahmoud Mohammadi, Joe Meyer, Tom Palczewski, Carlos Guestrin, Jure Leskovec

AI总结:

关系变换器通过零样本迁移能力,为关系数据提供高效的基础模型解决方案。

摘要:

预训练的变换器能够通过零样本提示快速适应新的序列建模任务,但关系领域仍然缺乏能够跨数据集和任务进行迁移的架构。核心挑战是关系数据的多样性,具有变化的异构模式、图结构和功能依赖。在本文中,我们提出了关系变换器(RT)架构,该架构可以在多样化的关系数据库上进行预训练,并直接应用于未见过的数据集和任务,而无需任务或数据集特定的微调,或检索上下文示例。RT(i)通过任务表提示整合任务规范,(ii)使用表/列元数据对单元格进行分词,(iii)通过掩码标记预测进行预训练,(iv)利用一种新的关系注意力机制,用于列、行和主外键链接。在RelBench数据集上预训练,涵盖诸如客户流失和销售预测等任务,RT在零样本性能上表现出色,平均在二分类任务中达到93%的完全监督AUROC,单次前向传递2200万参数模型,相较于2700亿参数的LLM为84%。微调可获得最先进的结果,具有高样本效率。我们的实验分析表明,RT的零样本迁移利用了任务上下文、关系注意力模式和模式语义。总体而言,RT为关系数据的基础模型提供了一条实用路径。代码、模型、数据:https://github.com/snap-stanford/relational-transformer。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑