TL;DR
NVIDIA Kumo Relational 是一个预训练的 relational(关系型)基础模型,能够直接在企业数据库上进行预测。给定一个预测查询,它会收集多达 10,000 个历史示例作为上下文,并通过单次前向传播预测流失、需求或欺诈等结果。它无需任务特定的训练、无需特征工程,也无需对表进行展平。Kumo Relational 是首个在常见关系型基准测试中超越监督式机器学习的 few-shot(少样本)基础模型。在涵盖 15 个数据库的 41 项任务中,它击败了监督式关系型深度学习模型和专家设计的梯度提升树流水线;在 SAP SALT 企业基准测试中,其平均倒数排名(MRR)比 AutoGluon 集成模型高出 8%。它可扩展至拥有 5000 亿行以上的数据库,并通过 NVIDIA 开源的 GPU 原生 structured-data-models 库或作为 NVIDIA NIM,同时服务于人类和智能体。
转向结构化数据基础模型
基础模型已经彻底改变了语言和视觉领域的规则。不久之前,生产环境中的自然语言处理(NLP)意味着每个任务都需要一个专用模型,每个模型都由其各自的标记化、词形还原和 n-gram 流水线提供支持。LLM 之所以使这种技术栈在很大程度上变得过时,原因有三:它们的准确性优于最佳的任务特定模型,投入生产的难度低得多,并且足够灵活,能够开启智能体应用的新时代。
结构化数据领域也正在进行同样的转变。关系型数据库支撑着全球最关键的商业决策,但对其进行的预测建模仍然需要数周的特征工程、任务特定的训练以及调优后的流水线。结构化数据基础模型出于同样的三个原因改变了这一现状:
更高的当前准确性:作为即插即用的替代品,这些模型已经击败了众多生产环境中的流水线,尤其是 XGBoost。在 RelBench V1 分类任务上,Kumo Relational 在专家设计的特征上比梯度提升树平均高出近 4 个 AUROC 点。在 SAP SALT 测试中,开箱即用情况下它比使用工程特征的 XGBoost 高出 7 个 MRR 点,微调后则高出 13 个 MRR 点。这些结果有力地证明了用 Kumo Relational 替换生产环境中的 XGBoost 流水线的合理性。
简单性与敏捷性:一个预训练模型即可取代针对各个任务的独立流水线。新的预测变成了一次查询而非一个项目,因此机器学习团队终于能够承担那些传统机器学习在组织各级都因过于繁琐而难以构建的用例。
具备预测能力的智能体:LLM 让智能体能够阅读、写作和推理。结构化数据基础模型则让它们能够预判接下来会发生什么,例如哪位客户将会流失,并据此采取行动。Kumo Relational 已经设计为可由智能体调用,其预测查询语言(PQL)为它们提供了询问预测性问题的简单接口。
今天,我们推出 Kumo Relational(论文、文档),这是一个将这一范式带入关系型数据的预训练基础模型。连接数据库,描述要预测的内容,即可通过单次前向传播获得预测结果。无需训练。
Kumo Relational 的工作原理
大多数用于结构化数据的基础模型操作于单个扁平表上。现实世界的数据存在于关系型数据库中:用户连接到订单,订单连接到产品,所有这些都随时间演变。通过手动聚合将这些关系展平为单行(例如,“过去 30 天的平均订单价值”)会丢失细粒度的结构信号,并需要大量的人工努力。
Kumo Relational 是一种关系基础模型(Relational Foundation Model),它直接在数据库上运行,尊重其表、外键和时间戳。该模型在反映现实世界数据集的合成关系数据上进行一次性预训练,并通过上下文学习适应每个新任务,在推理时读取多达 10,000 个上下文示例。每个示例都将某一时间点实体的局部子图与其真实目标(例如,“该用户流失”或“该商品售出 142 件”)配对。
![NVIDIA Kumo Relational 系统概览:(a) 数据库集成,(b) 将自然语言转换为预测查询的提示接口,以及 (c) 为 NVIDIA Kumo Relational 模型提供自动上下文生成,该模型在租户间水平扩展。]
图 1. Kumo Relational 系统概览。连接数据库,指定预测查询,Kumo Relational 处理其余工作,从上下文生成到模型推理。
为了进行预测,Kumo Relational 必须完成三件事:(1) 理解每个表中的值,(2) 关联跨表的记录,以及 (3) 将上下文示例与已知目标关联到正在预测的实体。其工作原理如下:
![Kumo Relational 架构:(a) 包含任务、用户、订单和商品表的上下文输入;(b) 注入上下文目标的表内列注意力和行注意力;(c) 跨表的图注意力和跨样本注意力。]
图 2. Kumo Relational 架构:(a) 上下文输入,(b) 表内推理,(c) 跨表推理。
自动上下文生成:任务使用预测查询语言(PQL)编写,这是一种声明式接口,用户只需说明要预测什么,而非如何预测。对于时间序列任务,Kumo Relational 会重放历史数据库状态:它采样以实体为中心的、截至锚定时间戳的子图,并计算该时间戳之后事件产生的每个目标,同时仅向模型提供该时间戳之前的数据。这防止了数据泄露。
表内推理:一个轻量级网络独立处理每个表,交替使用列注意力(关联列内的值)和行注意力(关联行内的特征)。模型学习哪些列和行对当前预测至关重要,并在传播之前过滤掉噪声。
跨表推理:一个较大的网络通过基于主键/外键关系的图注意力,将行嵌入分布到关系结构中,并与跨上下文示例的跨样本注意力交错进行。这是发生关系推理的地方,例如将用户资料与其交易历史联系起来。由于此阶段作用于行嵌入而非每个表中的每个单元格,因此该设计避免了二次方成本,并扩展到大型上下文和更深的子图。
Kumo Relational 是如何构建的
Kumo Relational 在完全合成的关系数据上进行预训练,这些数据经过模拟以反映具有多样化预测查询的现实世界关系数据库。预训练分阶段进行,从单表到日益复杂的关系结构。
预训练所需的各种关系数据库很少公开,因此合成数据填补了这一空白。Kumo Relational 的生成器建立在 PluRel(Kothapalli 等人,ICML 2026)的方法之上,该方法将单表数据生成器扩展到了完整的关系数据库。Kumo 团队的成员帮助开发了 PluRel 并共同撰写了原始论文。PluRel 分三个阶段生成每个数据库:模式、像真实数据那样聚类的行之间的外键链接,以及具有时间趋势和跨表依赖性的结构因果模型中的列值。生成过程非常轻量级,因此预训练数据实际上是无限的,且 PluRel 论文表明,随着合成数据库的增加,预训练损失遵循幂律,其收益可延续到真实数据库中。
通过这种预训练,模型学会了跨表过滤、关联和聚合信息,而不是依赖固定的聚合方式。在需要最高精度的场景下,Kumo Relational 也可以针对特定数据集和任务进行微调。
性能
在本文中,我们在 RelBench V1 和 V2、SAP SALT 以及 4DBInfer 的 15 个关系数据库上的 41 个基准测试中评估了 Kumo Relational,涵盖电子商务、医疗、企业、社交和学术领域。这些数据集在预训练阶段均未见过。Kumo Relational 在分类和回归任务上均优于最强的监督模型,包括关系深度学习模型和专家设计的表格集成模型。在 RelArena-α 排行榜上(该排行榜根据 RelBench V1 比较关系模型和系统),它开箱即用地位于准确率-效率的帕累托前沿:
![RelArena-α 排行榜的散点图:跨任务的相对准确率作为 Elo 值(y 轴)与每 1,000 个样本的中位推理时间(x 轴,对数刻度)。Kumo Relational 位于帕累托前沿,约为 17 秒,Elo 值为 1,842。得分最高的条目 rt-plurel 在约 7,300 秒时达到 Elo 1,878,速度大约慢 430 倍。其他所有基础模型、特征工程系统和监督模型的得分都较低,且运行速度慢于 Kumo Relational。]
图 3. RelArena-α 排行榜:跨任务的 Elo 值与每 1,000 个样本的中位推理时间(对数刻度)。Kumo Relational 在相似准确率下比得分最高的条目快约 430 倍。
论文还报告称,在 SAP SALT 企业基准测试中,Kumo Relational 的平均倒数排名(MRR)比大型 AutoGluon 集成模型高出 8%,比最近的表格基础模型高出约 25%,而微调将其对 AutoGluon 的优势扩大到 16%。它在严苛条件下也表现稳健:当训练数据作为上下文仅有 0.2% 时,它仍能表现良好;当多达 75% 的外键链接被移除时,它保持稳定;即使添加大量噪声列,其性能也几乎不下降。
局限性
Kumo Relational 在具有有意义关系和时间动态的数据上表现最佳,例如用户随时间变化的行为。对于训练集非常大的任务,特定任务的监督模型仍可能在上下文预测中略胜一筹,而我们的基准测试中使用的上下文示例最多为 10,000 个。基础模型的微调正是为此类情况设计的。预测信号必须在有限的跳数内可达,因此应从针对少数相关表的聚焦查询开始,并根据需要扩展图结构。
演示
Kumo Relational 原生在数据库中运行上下文学习:通过内存、数据库和仓库连接器,或通过自定义图引擎处理超过 5,000 亿行数据,通过内存映射 I/O 实现高达 5 GB/s 的速度。它已包含在 NVIDIA 新发布的 GPU 原生结构化数据模型库中,该开源库也支撑着我们的姊妹模型 Kumo Tabular 。首次使用时,该库会从 Hugging Face Hub 下载权重,因此您可以在支持 GPU 的笔记本中加载模型并直接进行预测。以下代码将上下文示例、预测实体及其相关表传递给模型:
import sdm
model = sdm.models.KumoRelational(device= "cuda" )
pred = model(
x_context=...,
y_context=...,
x_query=...,
related_context_tables=...,
related_query_tables=...,
)
请参阅该库的关系示例,获取完整的 RelBench 和 SAP SALT 管道,包括如何采样每个实体相关表的方法。
若要将模型作为独立服务运行,请将其部署为 NVIDIA NIM,并从您的笔记本中将开源 structured-data-models-client 指向它。您使用 PQL 编写预测请求,客户端收集上下文示例和相关表,然后发送请求:
import sdm_client
client = sdm_client.SDMClient(url= "http://localhost:8001" )
query = sdm_client.PredictiveQuery(
“PREDICT COUNT(orders.*, 0, 30, days) FOR EACH users.user_id” ,
{ "users" : ..., "orders" : ...},
)
pred = client.predict(
query.materialize(indices=[ 1 , 2 , 3 ]),
model=sdm_client.KumoRelational(),
)
请参阅客户端的示例笔记本,以了解针对本地 NIM 和 Databricks 的端到端运行。
开始使用 NVIDIA Kumo Relational
NVIDIA Kumo Relational 今日正式发布。请阅读研究论文 ,探索快速入门笔记本 ,或开始在您自己的数据上进行预测。代码在 Apache 2.0 许可证下发布,模型权重则在 OpenMDW 许可协议版本 1.1 下发布。NVIDIA 认为可信赖的人工智能是共同的责任,我们已建立政策和实践,以支持广泛的人工智能应用开发。在下载或使用本模型时,请遵守我们的服务条款,开发者应与他们的支持模型团队合作,确保该模型满足相关行业和用例的要求,并解决不可预见的产品误用问题。请在此处报告模型质量、风险、安全漏洞或 NVIDIA AI 相关问题 。
致谢
我们感谢整个 Kumo 团队提供的宝贵支持。特别感谢 Josh Przybylko、Adi Wadaskar、Hema Raghavan、Manush Murali、Raja Rao DV、Keti Jovanovska、Zack Drach、Vanja Josifovski、Myungwhan Kim、Blaž Stojanovič、Siyang Xie、Alan Krumholz、Effy Fang、Abdullah Al-chihabi、Disha Dubey、Devan Johnson、Joseph Oliveira、Angela Liu、Miha Pelko、Vedaant Jain、Sally Liu、Aleksandar S. Sokolovski、Alex Porter 和 Ramona Bendias。
TL;DR
NVIDIA Kumo Relational is a pre-trained relational foundation model that makes predictions directly on enterprise databases. Given a predictive query, it gathers up to 10,000 historical examples as context and predicts outcomes such as churn, demand, or fraud in a single forward pass. It needs no task-specific training, no feature engineering, and no flattening of tables. Kumo Relational is the first few-shot foundation model to outperform supervised machine learning on common relational benchmarks. Across 41 tasks on 15 databases, it beats supervised relational deep learning models and expert-engineered gradient-boosted tree pipelines, and on the SAP SALT enterprise benchmark it surpasses AutoGluon ensembles by 8% in mean reciprocal rank (MRR). It scales to databases with 500B+ rows and works for humans and agents alike, through NVIDIA's open-source, GPU-native structured-data-models library or as an NVIDIA NIM.
The Shift to Structured Data Foundation Models
Foundation models have already rewritten the playbook for language and vision. Not long ago, production NLP meant a dedicated model per task, each fed by its own pipeline of tokenization, lemmatization, and n-grams. LLMs made that stack largely obsolete for three reasons: they were more accurate than the best task-specific models, far simpler to put into production, and flexible enough to open a new era of agentic applications.
The same shift is now underway for structured data. Relational databases power the world's most critical business decisions, yet predictive modeling on them still requires weeks of feature engineering, task-specific training, and tuned pipelines. Structured data foundation models change that for the same three reasons:
Better accuracy today: As drop-in replacements, these models already beat many production pipelines, especially XGBoost. On RelBench V1 classification tasks, Kumo Relational outperforms gradient-boosted trees on expert-engineered features by nearly 4 AUROC points on average. On SAP SALT, it beats XGBoost on engineered features by 7 MRR points out of the box and by 13 MRR points after fine-tuning. These results make a compelling case for replacing production XGBoost pipelines with Kumo Relational.
Simplicity and agility: One pre-trained model replaces separate pipelines for individual tasks. A new prediction becomes a query instead of a project, so ML teams can finally take on use cases that traditional ML made too laborious to build at every level of the organization.
Agents that can predict: LLMs let agents read, write, and reason. Structured data foundation models let them anticipate what happens next, such as which customer will churn, and act on it. Kumo Relational is already built to be called by agents, and its Predictive Query Language (PQL) gives them a simple interface for asking predictive questions.
Today, we are introducing Kumo Relational ( paper , documentation ), a pre-trained foundation model that brings this paradigm to relational data. Connect a database, describe what to predict, and get predictions in a single forward pass. No training required.
How Kumo Relational Works
Most foundation models for structured data operate on a single flat table. Real-world data lives in relational databases instead: users connected to orders connected to products, all evolving over time. Flattening these relationships into one row through manual aggregation ( e.g. , "average order value in the last 30 days") loses fine-grained structural signals and takes significant human effort.
Kumo Relational is a Relational Foundation Model that operates directly on the database, respecting its tables, foreign keys, and timestamps. It is pre-trained once on synthetic relational data that reflects real-world datasets and adapts to each new task through in-context learning , reading up to 10,000 context examples at inference time. Each example pairs a local subgraph around an entity at a point in time with its ground-truth target ( e.g. , "this user churned" or "this item sold 142 units").
![Overview of the NVIDIA Kumo Relational system: (a) database integration, (b) a prompting interface that turns natural language into a predictive query, and (c) automatic context generation feeding the NVIDIA Kumo Relational model, which scales horizontally across tenants.]
Figure 1. Overview of the Kumo Relational system. Connect a database, specify a predictive query, and Kumo Relational handles the rest, from context generation to model inference.
To make a prediction, Kumo Relational has to do three things: (1) understand the values within each table, (2) relate records across tables, and (3) relate context examples with known targets to the entity being predicted. Here is how it works:
![Kumo Relational architecture: (a) context input with task, users, orders and items tables; (b) column and row attention within tables with injected context targets; (c) graph attention and cross-sample attention across tables.]
Figure 2. Kumo Relational architecture: (a) context input, (b) reasoning within tables, (c) reasoning across tables.
Automatic Context Generation: Tasks are written in the Predictive Query Language (PQL) , a declarative interface where you state what to predict rather than how. For temporal tasks, Kumo Relational replays historical database states: it samples entity-centric subgraphs up to an anchor timestamp and computes each target from events after that timestamp, while serving the model only the data from before it. This prevents data leakage.
Reasoning Within Tables: A lightweight network processes each table independently, alternating column attention (relating values within a column) and row attention (relating features within a row). The model learns which columns and rows matter for the current prediction and filters out noise before it propagates.
Reasoning Across Tables: A larger network distributes the row embeddings across the relational structure via graph attention over primary-key/foreign-key relationships, interleaved with cross-sample attention across context examples. This is where relational reasoning happens, such as linking a user's profile to their transaction history. Because this stage works on row embeddings rather than on every cell in every table, the design avoids quadratic cost and scales to large contexts and deeper subgraphs.
How Kumo Relational Was Built
Kumo Relational is pre-trained on entirely synthetic relational data simulated to reflect real-world relational databases with diverse predictive queries. Pre-training proceeds in stages, from single tables to increasingly complex relational structures.
The diverse relational databases needed for pre-training are rarely public, so synthetic data fills the gap. Kumo Relational's generator builds on the approach of PluRel (Kothapalli et al., ICML 2026), which extends single-table data generators to full relational databases. Members of the Kumo team helped develop PluRel and co-authored the original paper. PluRel generates each database in three stages: a schema, foreign-key links between rows that cluster as they do in real data, and column values from Structural Causal Models with temporal trends and cross-table dependencies. Generation is lightweight, so pre-training data is effectively unlimited, and the PluRel paper shows that pre-training loss follows a power law as synthetic databases are added, with gains that carry over to real databases.
Through this pre-training, the model learns to filter, correlate, and aggregate information across tables instead of relying on fixed aggregations. When maximum accuracy matters, Kumo Relational can also be fine-tuned on a specific dataset and task.
Performance
In this paper, we evaluated Kumo Relational on 41 benchmarks across 15 relational databases from RelBench V1 and V2, SAP SALT, and 4DBInfer, spanning e-commerce, medical, enterprise, social, and academic domains. None of these datasets were seen in pre-training. Kumo Relational outperforms the strongest supervised models in both classification and regression, including relational deep learning models and expert-engineered tabular ensembles. On the RelArena-α leaderboard, which compares relational models and systems on RelBench V1, it also sits on the accuracy-efficiency Pareto front out of the box:
![Scatter plot of the RelArena-α leaderboard: relative accuracy as Elo across tasks (y-axis) versus median inference time per 1,000 samples (x-axis, log scale). Kumo Relational sits on the Pareto front at about 17 seconds and Elo 1,842. The highest-scoring entry, rt-plurel, reaches Elo 1,878 at about 7,300 seconds, roughly 430 times slower. Every other foundation model, feature-engineering system, and supervised model scores lower and runs slower than Kumo Relational.]
Figure 3. RelArena-α leaderboard: Elo across tasks versus median inference time per 1,000 samples (log scale). Kumo Relational is about 430× faster than the highest-scoring entry at similar accuracy.
The paper also reports that on the SAP SALT enterprise benchmark, Kumo Relational surpasses large AutoGluon ensembles by 8% in mean reciprocal rank (MRR) and recent tabular foundation models by about 25%, and fine-tuning extends its lead over AutoGluon to 16%. It also holds up under hard conditions: it performs well with as little as 0.2% of the training data as context, stays stable when up to 75% of foreign-key links are removed, and barely degrades when many noisy columns are added.
Limitations
Kumo Relational performs best on data with meaningful relationships and temporal dynamics, such as user behavior over time. On tasks with very large training sets, task-specific supervised models may still edge out in-context predictions, which used at most 10,000 context examples in our benchmarks. Fine-tuning of the foundation model is designed for exactly this case. Predictive signals must also be reachable within a limited number of hops, so start with a focused query over a few relevant tables and expand the graph as needed.
Demo
Kumo Relational runs in-context learning natively over databases: in memory, through database and warehouse connectors, or through a custom graph engine that handles 500B+ rows via memory-mapped I/O at up to 5 GB/s. It is available in NVIDIA's newly released, GPU-native structured-data-models library, the same open-source library that powers our sister model, Kumo Tabular . The library downloads the weights from the Hugging Face Hub on first use, so you can load the model in a GPU-backed notebook and predict directly from it. The code below passes context examples, prediction entities, and their related tables to the model:
import sdm
model = sdm.models.KumoRelational(device= "cuda" )
pred = model(
x_context=...,
y_context=...,
x_query=...,
related_context_tables=...,
related_query_tables=...,
)
See the library's relational examples for complete RelBench and SAP SALT pipelines, including how to sample each entity's related tables.
To run the model as a separate service instead, deploy it as an NVIDIA NIM and point the open-source structured-data-models-client at it from your notebook. You write the prediction in PQL, and the client gathers the context examples and related tables, then sends the request:
import sdm_client
client = sdm_client.SDMClient(url= "http://localhost:8001" )
query = sdm_client.PredictiveQuery(
"PREDICT COUNT(orders.*, 0, 30, days) FOR EACH users.user_id" ,
{ "users" : ..., "orders" : ...},
)
pred = client.predict(
query.materialize(indices=[ 1 , 2 , 3 ]),
model=sdm_client.KumoRelational(),
)
See the client's example notebooks for end-to-end runs against a local NIM and on Databricks.
Start Building with NVIDIA Kumo Relational
NVIDIA Kumo Relational is available today. Read the research paper , explore the quickstart notebook , or start making predictions on your own data. The code is released under the Apache 2.0 license and the model weights under the OpenMDW License Agreement, version 1.1. NVIDIA believes Trustworthy AI is a shared responsibility, and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their supporting model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse. Please report model quality, risk, security vulnerabilities, or NVIDIA AI concerns here .
Acknowledgements
We thank the entire Kumo team for their invaluable support. Special thanks go to Josh Przybylko, Adi Wadaskar, Hema Raghavan, Manush Murali, Raja Rao DV, Keti Jovanovska, Zack Drach, Vanja Josifovski, Myungwhan Kim, Blaž Stojanovič, Siyang Xie, Alan Krumholz, Effy Fang, Abdullah Al-chihabi, Disha Dubey, Devan Johnson, Joseph Oliveira, Angela Liu, Miha Pelko, Vedaant Jain, Sally Liu, Aleksandar S. Sokolovski, Alex Porter, and Ramona Bendias.
首次收录 · 2026-10-22 · 10.77 分