NVIDIA Kumo Relational 在关系型数据上优于监督式机器学习,且无需训练
原题NVIDIA Kumo Relational Outperforms Supervised Machine Learning on Relational Data, No Training Required
推荐理由数据团队可重新评估特征工程与任务级训练的投入,理解关系型基础模型怎样保留跨表关系,让预测任务变成可调用的查询。
读前速览
NVIDIA Kumo Relational 是一种预训练基础模型,利用上下文学习直接从企业数据库中预测结果;在关系型基准测试中,它的表现优于监督式机器学习,且无需针对具体任务训练或进行特征工程。
无需训练,准确度更高
在标准基准测试中,Kumo Relational 的表现优于梯度提升树和关系型深度学习网络等传统监督式模型。它依靠大型预训练模型理解关系型数据的结构,而非依赖人工特征工程或针对具体任务微调,从而取得这一成绩。
部署更简单、响应更灵活
该模型无需为每项预测任务分别搭建专用流水线。只需使用相关数据查询模型,即可生成新的预测,大幅减少部署机器学习解决方案所需的时间和专业知识。
助力智能体应用
Kumo Relational 能够快速、准确地预测结构化数据中的结果,帮助 AI 智能体做出明智决策。智能体如今可以实时预判客户流失或库存短缺等情况,从而主动采取应对措施。
完整摘要
Kumo Relational 是一种关系型基础模型,可直接处理多表数据库,利用上下文学习进行预测,无需针对具体任务训练。它在 RelBench V1 和 SAP SALT 基准测试中的表现优于监督式模型,为企业数据预测建模提供了更简单、更灵活的方案。
目录 · 9 节
简而言之 TL;DR
NVIDIA Kumo Relational 是一种预训练的关系型基础模型,可直接在企业数据库上进行预测。给定一个预测查询,它会收集最多 10,000 个历史示例作为上下文,并通过一次前向传播预测流失、需求或欺诈等结果。它无需针对特定任务进行训练,无需特征工程,也无需将表格扁平化。Kumo Relational 是首个在常见关系型基准测试中优于监督式机器学习的少样本基础模型。在 15 个数据库上的 41 项任务中,它胜过监督式关系型深度学习模型和专家设计的梯度提升树流水线;在 SAP SALT 企业基准测试中,其平均倒数排名(MRR)比 AutoGluon 集成模型高出 8%。它可扩展至包含 5,000 亿行以上的数据集,并同时适用于人类和智能体:既可通过 NVIDIA 开源、原生支持 GPU 的结构化数据模型库使用,也可作为 NVIDIA NIM 使用。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.
- 论文:https://arxiv.org/abs/2604.12596
- 文档:https://docs.nvidia.com/sdgm/rfm/overviewDocumentation: https://docs.nvidia.com/sdgm/rfm/overview
向结构化数据基础模型转变 The Shift to Structured Data Foundation Models
基础模型已经彻底改写了语言和视觉领域的游戏规则。不久之前,生产级 NLP 意味着每项任务都要配备专用模型,并且每个模型都要经过各自的处理流程,包括分词、词形还原和 n 元语法。LLM 之所以让这套技术栈基本过时,有三个原因:它们比最优秀的任务专用模型更准确,部署到生产环境中也简单得多,而且足够灵活,开启了智能体应用的新时代。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:
更高的准确率:作为可直接替换的方案,这些模型如今已胜过许多生产环境中的流水线,尤其是 XGBoost。在 RelBench V1 分类任务中,Kumo Relational 的表现优于基于专家设计特征训练的梯度提升树,平均 AUROC 高出近 4 个百分点。在 SAP SALT 上,开箱即用时,它在工程化特征上的 MRR 比 XGBoost 高 7 个百分点,微调后则高出 13 个百分点。这些结果充分说明,可以用 Kumo Relational 替换生产环境中的 XGBoost 流水线。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.
简洁与敏捷:一个预训练模型即可取代针对各项任务的独立流程。新的预测需求只需作为查询提交,无须启动一个项目,因此 ML 团队终于能够着手处理传统机器学习在组织各个层级都难以构建的应用场景。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.
能够预测的智能体:LLM 让智能体能够阅读、写作和推理。结构化数据基础模型则让它们能够预判接下来会发生什么,例如哪些客户会流失,并据此采取行动。Kumo Relational 已经构建为可供智能体调用,而其预测查询语言(PQL)则为智能体提供了一个简单的接口,用来提出预测性问题。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.
今天,我们推出 Kumo Relational(论文、文档),这是一款预训练基础模型,可将这一范式应用于关系型数据。连接数据库,描述要预测的内容,即可通过一次前向传播获得预测结果。无需训练。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.
Kumo 关系型数据库的工作原理 How Kumo Relational Works
大多数用于结构化数据的基础模型都基于单个扁平表运行。而现实世界的数据则存储在关系型数据库中:用户关联订单,订单关联产品,并且这一切都随时间不断变化。通过手动聚合(例如“过去 30 天的平均订单金额”)将这些关系压平成一行,会丢失细粒度的结构信号,也需要投入大量人力。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 是一种关系型基础模型,可直接在数据库上运行,并尊重数据库的表、外键和时间戳。它只需在反映真实世界数据集的合成关系数据上预训练一次,之后便能通过上下文学习适配每项新任务,并在推理时读取最多 10,000 个上下文示例。每个示例都将某个实体在特定时间点周围的局部子图,与其真实目标值配对(例如“该用户流失了”或“该商品售出了 142 件”)。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.]
图 1. Kumo Relational 系统概览。连接数据库并指定预测查询,剩下的工作——从上下文生成到模型推理——都由 Kumo Relational 处理。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.
要进行预测,Kumo Relational 必须完成三件事:(1)理解每张表中的值;(2)关联不同表中的记录;(3)将已知目标的上下文示例与要预测的实体关联起来。其工作原理如下: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.]
图 2. Kumo Relational 架构:(a) 上下文输入,(b) 表内推理,(c) 跨表推理。Figure 2. Kumo Relational architecture: (a) context input, (b) reasoning within tables, (c) reasoning across tables.
自动上下文生成:任务使用预测查询语言(PQL)编写,这是一种声明式接口,你只需说明要预测什么,而无需指定如何预测。对于时序任务,Kumo Relational 会重放历史数据库状态:它会采样截至某个锚点时间戳的以实体为中心的子图,并根据该时间戳之后发生的事件计算每个目标,同时只向模型提供该时间戳之前的数据。这样可以防止数据泄漏。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.
Kumo Relational 是如何构建的 How Kumo Relational Was Built
Kumo Relational 基于完全合成的关系型数据进行预训练,这些数据经过模拟,旨在反映包含多样化预测查询的真实关系型数据库。预训练分阶段进行,从单表开始,逐步扩展到越来越复杂的关系结构。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.
用于预训练的多样化关系数据库很少公开,因此合成数据填补了这一空白。Kumo Relational 的生成器基于 PluRel(Kothapalli 等,ICML 2026)的方法构建;PluRel 将单表数据生成器扩展到完整的关系数据库。Kumo 团队成员参与了 PluRel 的开发,并共同撰写了原始论文。PluRel 分三个阶段生成每个数据库:先生成模式,再生成行之间的外键关联,使行的聚类方式与真实数据相似,最后通过结构因果模型生成列值,并纳入时间趋势和跨表依赖。生成过程开销很低,因此预训练数据实际上可以无限供应;PluRel 论文还表明,随着加入的合成数据库不断增加,预训练损失会遵循幂律下降,而且这种收益也能迁移到真实数据库上。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.
通过这种预训练,模型能够学习跨表筛选、关联和汇总信息,而不是依赖固定的聚合方式。当准确率至关重要时,还可以针对特定数据集和任务对 Kumo Relational 进行微调。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
在本文中,我们在来自 RelBench V1 和 V2、SAP SALT 以及 4DBInfer 的 15 个关系型数据库上的 41 项基准测试中评估了 Kumo Relational,涵盖电子商务、医疗、企业、社交和学术领域。这些数据集均未在预训练中出现。无论是在分类还是回归任务中,Kumo Relational 的表现都优于最强的监督式模型,包括关系型深度学习模型和由专家设计的表格集成模型。在比较 RelBench V1 上关系型模型和系统的 RelArena-α 排行榜中,Kumo Relational 开箱即用便位于准确率与效率的帕累托前沿上: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.]
图 3. RelArena-α 排行榜:各任务的 Elo 得分与每 1,000 个样本的推理时间中位数(对数刻度)的关系。Kumo Relational 在准确率相近的情况下,速度约为得分最高条目的 430 倍。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.
论文还报告称,在 SAP SALT 企业基准测试中,Kumo Relational 的平均倒数排名(MRR)比大型 AutoGluon 集成模型高出 8%,比近期的表格基础模型高出约 25%;经过微调后,它对 AutoGluon 的领先优势进一步扩大至 16%。在严苛条件下,它的表现也很稳健:训练数据仅取 0.2% 作为上下文时,仍能取得良好效果;多达 75% 的外键链接被移除时,性能依然稳定;添加大量噪声列时,性能也几乎没有下降。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 在具有有意义的关系和时间动态的数据上表现最佳,例如随时间变化的用户行为。在训练集非常庞大的任务中,针对特定任务的监督模型仍可能略胜于上下文预测;在我们的基准测试中,上下文预测最多使用了 10,000 个上下文示例。基础模型的微调正是为这种情况而设计的。此外,预测信号必须能在有限的跳数内触达,因此应先针对少数几个相关表进行聚焦查询,并根据需要扩展图。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 可直接在数据库上进行上下文学习:既可在内存中运行,也可通过数据库和数据仓库连接器运行,或借助自定义图引擎运行;该引擎通过内存映射 I/O 以最高 5 GB/s 的速度处理 5000 亿行以上的数据。它现已集成于 NVIDIA 新发布的 GPU 原生结构化数据模型库中;我们旗下的姊妹模型 Kumo Tabular 也由同一开源库驱动。该库会在首次使用时从 Hugging Face Hub 下载权重,因此你可以在 GPU 支持的笔记本中加载模型并直接用它进行预测。以下代码将上下文示例、预测实体及其相关表传递给模型: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:
# pip install structured-data-models
import sdm
model = sdm.models.KumoRelational(device="cuda")
pred = model(
# In-context training table (fkeys/timestamps/targets):
x_context=...,
y_context=...,
# Prediction examples (fkeys/timestamps):
x_query=...,
# Multi-table information for context/prediction entities:
related_context_tables=...,
related_query_tables=...,
)
请参阅该库中的关系型示例,了解完整的 RelBench 和 SAP SALT 流水线,包括如何对每个实体关联的表进行采样。See the library's relational examples for complete RelBench and SAP SALT pipelines, including how to sample each entity's related tables.
若要将模型作为独立服务运行,请将其部署为 NVIDIA NIM,然后在笔记本中将开源的 structured-data-models-client 指向该服务。你用 PQL 编写预测,客户端会收集上下文示例和相关表格,然后发送请求: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:
# pip install 'structured-data-models-client[relational]'
import sdm_client
client = sdm_client.SDMClient(url="http://localhost:8001") # NIM URL
query = sdm_client.PredictiveQuery(
# Prediction task in Predictive Query Language (PQL):
"PREDICT COUNT(orders.*, 0, 30, days) FOR EACH users.user_id",
# Multi-table data as pandas DataFrames (keys/links inferred):
{"users": ..., "orders": ...},
)
pred = client.predict(
# Context examples and related tables for the entities to predict:
query.materialize(indices=[1, 2, 3]),
model=sdm_client.KumoRelational(),
)
请参阅客户端示例笔记本,了解如何端到端地针对本地 NIM 和 Databricks 运行。See the client's example notebooks for end-to-end runs against a local NIM and on Databricks.
开始使用 NVIDIA Kumo Relational 构建 Start Building with NVIDIA Kumo Relational
NVIDIA Kumo Relational 现已推出。阅读研究论文、体验快速入门笔记本,或开始使用自己的数据进行预测。代码采用 Apache 2.0 许可证发布,模型权重则遵循 OpenMDW 许可协议 1.1 版。NVIDIA 认为,可信赖的 AI 是共同的责任;我们已制定相关政策和实践,以支持开发适用于广泛 AI 应用的技术。开发者在按照我们的服务条款下载或使用该模型时,应与提供支持的模型团队合作,确保该模型满足相关行业和使用场景的要求,并妥善应对产品可能遭到的意外滥用。如需反馈模型质量、风险、安全漏洞或其他与 NVIDIA AI 相关的问题,请点击此处。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.
- 论文:https://arxiv.org/abs/2604.12596
- 文档:https://docs.nvidia.com/sdgm/rfm/overviewDocumentation: https://docs.nvidia.com/sdgm/rfm/overview
- 代码:https://github.com/NVIDIA/structured-data-models
- PyPI: https://pypi.org/project/structured-data-models/
- 客户端代码:https://github.com/NVIDIA/structured-data-models-client
- 客户端 PyPI:https://pypi.org/project/structured-data-models-client/
- 权重:https://huggingface.co/nvidia/Kumo-Relational
- 快速入门笔记本:https://github.com/NVIDIA/structured-data-models-client/blob/main/examples/local/relational.ipynb
- 相关研究:预测查询语言(PQL)、PluRel、Kumo Tabular
致谢 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.