AIsaAIsaStudio English 打开 AIsa Studio

NVIDIA 发布 Kumo Relational 关系型基础模型,免训练超越监督机器学习

原标题:NVIDIA Kumo Relational Outperforms Supervised Machine Learning on Relational Data, No Training Required

NVIDIA 发布预训练关系型基础模型 Kumo Relational,可直接在企业数据库上做预测,无需任务训练、特征工程或拉平数据表。模型在 15 个数据库的 41 个任务上超越监督关系深度学习模型和专家调优的梯度提升树管线,在 SAP SALT 基准上以 8% 的 MRR 超过 AutoGluon 集成,微调后领先扩大到 16%;推理时最多读取 10,000 条上下文示例,可扩展到 500B+ 行的数据库,代码以 Apache 2.0 许可开源,权重以 OpenMDW 1.1 许可在 Hugging Face Hub 提供。

为什么值得看

官方发布了免训练的关系型基础模型,并给出在 41 个任务上超越 XGBoost 与 AutoGluen 等监督方案的基准细节和开源入口。

阅读原文 ↗10月22日 AI 日报

本页的摘要、推荐理由与解读出自 AIsa Studio 的 AI 风向智能体,原文版权归原作者所有。

深度解读

发生了什么

NVIDIA 发布 Kumo Relational,一个预训练的关系型基础模型,可直接在企业数据库上做预测。用户用 Predictive Query Language(PQL)描述要预测什么(如流失、需求、欺诈),模型在单次前向传播中给出结果,无需任务专属训练、无需特征工程、无需把多表拉平成单表。它是首个在常见关系型基准上超越监督机器学习的 few-shot 基础模型。

关键细节

  • 在 15 个数据库、41 个任务(RelBench V1/V2、SAP SALT、4DBInfer,涵盖电商、医疗、企业、社交、学术领域)上,胜过监督型关系深度学习模型和专家调优的梯度提升树管线;这些数据集均未出现在预训练中。
  • 在 SAP SALT 企业基准上,MRR 超越 AutoGluon 集成 8%,微调后领先 16%;在 RelBench V1 分类任务上比基于专家特征的梯度提升树平均高近 4 个 AUROC 点。
  • 架构分三步:PQL 声明式查询配合时间回放自动生成上下文(只喂锚点时间之前的数据,防止数据泄漏);列注意力与行注意力在表内推理;通过主外键上的图注意力与跨样本注意力做跨表关系推理,因只处理行嵌入而避免二次方成本。
  • 预训练完全基于合成数据,生成器基于 PluRel(ICML 2026),从单表逐步到复杂关系结构,预训练损失随合成数据库数量呈幂律下降。
  • 鲁棒性:仅用 0.2% 训练数据作上下文仍表现良好,移除最多 75% 外键链接仍稳定,加入噪声列几乎不退化。
  • 在 RelArena-α 上(截至 2026-09-21)位于准确率-效率帕累托前沿,比 rtl-plurel 快约 430 倍。局限性:在训练集非常大的任务上监督模型可能仍占优;预测信号须在有限跳数内可达。

为什么重要

作者将其类比为 LLM 之于 NLP 的变革:关系数据库支撑着全球最关键的商业决策,但建模动辄需要数周的特征工程与调参。Kumo Relational 让新预测从「一个项目」变成「一次查询」,一个预训练模型替代各任务的独立管线,并让智能体具备「预判」能力——LLM 让 agent 能读写和推理,而结构化数据基础模型让它们能预测接下来会发生什么并据此行动。

对谁有影响

  • ML/数据团队:可用开源 GPU 原生库 structured-data-models 或 kumo-engine(支持 500B+ 行、内存映射 I/O 最高 5 GB/s)直接在笔记本中推理,或将模型部署为 NVIDIA NIM 通过客户端调用。
  • 构建 agent 的开发者:PQL 提供简单的预测查询接口,模型设计上即可被 agent 调用。
  • 代码基于 Apache 2.0 许可发布,模型权重采用 OpenMDW License 1.1,发布于 Hugging Face。
全文翻译

以下翻译只覆盖原文的前一部分,其余内容请看下方原文。

TL;DR

NVIDIA Kumo Relational 是一个预训练的关系型基础模型,可直接在企业数据库上进行预测。给定一个预测查询,它会收集历史示例作为上下文示例,并在单次前向传播中预测流失、需求或欺诈等结果。它无需任务特定的训练、特征工程或表展平操作。Kumo Relational 是首个在常见关系型基准测试中超越监督式机器学习的少样本基础模型。在 15 个数据库上的 41 项任务中,它击败了监督式关系型深度学习模型和专家设计的梯度提升树流水线;在 SAP SALT 企业基准测试中,其平均倒数排名(MRR)比 AutoGluon 集成模型高出 8%。它可扩展至拥有 5000 亿+ 行的数据库,并适用于人类和智能体,通过 NVIDIA 的开源 GPU 原生 structured-data-models 和 kumo-engine 库,或以 NVIDIA NIM 的形式提供服务。

转向结构化数据基础模型

基础模型已经彻底改变了语言和视觉领域的规则。不久前,生产环境中的自然语言处理(NLP)意味着每个任务都需要一个专用模型,每个模型都由其自己的分词、词形还原和 n-gram 流水线提供输入。LLM 使这一技术栈在很大程度上变得过时,原因有三:它们比最好的任务特定模型更准确,投入生产的流程简单得多,并且足够灵活,能够开启代理应用的新时代。

结构化数据领域也正在发生同样的转变。关系型数据库支撑着世界上最关键的业务决策,但对其进行的预测建模仍然需要数周的特征工程、任务特定的训练以及调优后的流水线。结构化数据基础模型出于同样的三个原因改变了这一现状:

更高的当前准确率: 作为即插即用替代品,这些模型已经超越了众多生产流水线,尤其是 XGBoost。在 RelBench V1 分类任务上,Kumo Relational 在专家设计的特征上比梯度提升树平均高出近 4 个 AUROC 点。在 SAP SALT 上,它开箱即用即比 XGBoost(基于 engineered features)高出 7 个 MRR 点,微调后高出 13 个 MRR 点。这些结果有力地证明了用 Kumo Relational 替换生产环境中 XGBoost 流水线的可行性。

简单性与敏捷性: 一个预训练模型取代了针对各个任务的独立流水线。新的预测变成了一次查询而非一个项目,因此 ML 团队最终可以承担那些传统 ML 因构建成本过高而在组织各层级难以实施的使用案例。

具备预测能力的智能体: LLM 让智能体能够阅读、写入和推理。结构化数据基础模型让它们能够预判接下来会发生什么,例如哪些客户会流失,并采取行动。Kumo Relational 已设计为可由智能体调用,其预测查询语言(PQL)为它们提供了询问预测问题的简单接口。

今天,我们推出 Kumo Relational (论文, GitHub, HuggingFace),这是一个将这一范式带入关系型数据的预训练基础模型。连接数据库,描述要预测的内容,即可在一次前向传播中获得预测结果。无需训练。

Kumo Relational 的工作原理

大多数用于结构化数据的基础模型都在单个扁平表上运行。而现实世界的数据存在于关系型数据库中:用户连接到订单,订单连接到产品,所有这些都随时间演变。通过手动聚合将这些关系展平为一行(例如,“过去 30 天的平均订单价值”)会丢失细粒度的结构信号,并需要大量人工努力。

Kumo Relational 是一个 关系型基础模型,直接在数据库上运行,尊重其表、外键和时间戳。它在反映真实数据集的合成关系数据上进行一次预训练,并通过推理时的上下文示例进行 上下文学习 适应每个新任务。每个示例都将时间点附近实体的局部子图与其真实目标配对(例如,“该用户流失了”或“该商品售出 142 件”)。

kumo-relational-system-overview

图 1. Kumo Relational 系统概览。连接数据库,指定预测查询,Kumo Relational 处理其余部分,从上下文生成到模型推理。

要进行预测,Kumo Relational 必须做三件事:(1) 理解每个表内的值,(2) 关联跨表的记录,以及 (3) 将具有已知目标的上下文示例与正在预测的实体相关联。以下是其工作原理:

kumo-relational-architecture

图 2. Kumo Relational 架构:(a) 上下文输入,(b) 表内推理,(c) 跨表推理。

自动上下文生成: 任务使用 预测查询语言 (PQL) 编写,这是一种声明式接口,你只需说明要预测什么,而不是如何预测。对于时序任务,Kumo Relational 会重放历史数据库状态:它在锚定时间戳之前采样以实体为中心的子图,并从该时间戳之后的事件计算每个目标,同时仅向模型提供之前的数据。这防止了数据泄露。

表内推理: 轻量级网络通过列注意力(关联列内的值)和行注意力(关联行内的特征)独立处理每个表。模型学习哪些列和行对当前预测至关重要,并在传播之前过滤掉噪声。

跨表推理: 较大的网络通过主键/外键关系的图注意力,将行嵌入分布到关系结构中,随后在上下文示例之间进行跨样本注意力。这是关系推理发生的地方,例如将用户档案与其交易历史记录联系起来。由于此阶段作用于行嵌入而非每个表中的每个单元格,因此该设计避免了二次方成本,并可扩展到大型上下文和更深的子图。

Kumo Relational 是如何构建的

Kumo Relational 完全在合成关系数据上进行预训练,这些数据模拟了具有多样化预测查询的真实世界关系型数据库。预训练分阶段进行,从单表到越来越复杂的关系结构。

预训练所需的不同关系型数据库很少公开,因此合成数据填补了这一空白。Kumo Relational 的生成器建立在 PluRel (Kothapalli 等人,ICML 2026) 的方法之上,该方法将单表数据生成器扩展到了完整的关系型数据库。PluRel 分三个阶段生成每个数据库:模式、像真实数据那样聚类的行之间的外键链接,以及具有时间趋势和跨表依赖性的结构因果模型的列值。生成过程很轻量,因此预训练数据几乎是无限的。随着合成数据库的增加,预训练损失遵循幂律,其收益也延续到真实数据库上。

通过这种预训练,模型学会了跨表过滤、关联和聚合信息,而不是依赖固定的聚合方式。

性能

在论文中,我们在 RelBench V1 和 V2、SAP SALT 以及 4DBInfer 的 15 个关系型数据库上的 41 个基准测试上评估了 Kumo Relational,涵盖电子商务、医疗、企业、社交和学术领域。这些数据集均未在预训练中见过。Kumo Relational 在分类和回归方面均优于最强的监督模型,包括关系型深度学习模型和专家设计的表格集成模型。它是 RelBench 排行榜 上表现最佳的上下文学习模型。在 RelArena-α 上,它位于准确性-效率的帕累托前沿上:

relarena

图 3. RelArena-α 排行榜(截至 2026-09-21):跨任务的 Elo 评分与总任务运行时间(对数刻度)。在相似准确率下,Kumo Relational 比 rtl-plurel 快约 430 倍。

在 SAP SALT 企业基准测试中,Kumo Relational 的平均倒数排名(MRR)比大型 AutoGluon 集成模型高出 8%,微调后将其对 AutoGluon 的优势扩大到 16%。它在严苛条件下也表现稳健:当训练数据作为上下文仅有 0.2% 时,它仍能良好运行;当高达 75% 的外键链接被移除时,它保持稳定;当添加噪声列时,性能几乎不下降。

局限性

Kumo Relational 在处理具有有意义关系和时间动态的数据时表现最佳,例如用户随时间的行为。在训练集非常大的任务上,任务特定的监督模型可能在上下文预测方面仍略胜一筹。预测信号必须在有限的跳数内可达。

演示

Kumo Relational 直接在数据库上运行上下文学习:内存中、通过 数据库和仓库连接器,或通过 kumo-engine(通过内存映射 I/O 处理 5000 亿+ 行,速度高达 5 GB/s)。模型本身可在 NVIDIA 新发布的 GPU 原生 structured-data-models 库中使用,这也是支持我们要姐妹模型 Kumo Tabular 的同一款开源库。该库在首次使用时从 Hugging Face Hub 下载权重,因此你可以在带有 GPU 支持的笔记本中加载模型并直接进行预测。该接口旨在通过将额外的相关多表上下文和查询信息传递,自然地扩展表格基础模型以支持关系型信号:

import sdm  # pip install structured-data-models

model = sdm.models.KumoRelational(device="cuda")

pred = model(
    # 上下文训练表(外键/时间戳/目标):
    x_context=sdm.TableTensor(...),
    y_context=sdm.TableTensor(...),
    # 预测示例(外键/时间戳):
    x_query=sdm.TableTensor(...),
    # 上下文/预测实体的多表信息:
    related_context_tables=sdm.RelatedTables(tables={...}),
    related_query_tables=sdm.RelatedTables(tables={...}),
)

请参阅库的

查看原文

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 historical examples as context examples 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 and kumo-engine libraries, 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, GitHub, HuggingFace), 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 by reasoning over 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").

kumo-relational-system-overview

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

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 via 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, followed by 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. 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. 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.

Performance

In the 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. It is the top-performing in-context learning model on the RelBench leaderboard. On RelArena-α, it sits on the accuracy-efficiency Pareto front:

relarena

Figure 3. RelArena-α leaderboard as of 2026-09-21: Elo across tasks versus total task runtime (log scale). Kumo Relational is about 430× faster than rtl-plurel at similar accuracy.

On the SAP SALT enterprise benchmark, Kumo Relational surpasses large AutoGluon ensembles by 8% in mean reciprocal rank (MRR), 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 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. Predictive signals must be reachable within a limited number of hops.

Demo

Kumo Relational runs in-context learning natively over databases: in memory, through database and warehouse connectors, or through kumo-engine that handles 500B+ rows via memory-mapped I/O at up to 5 GB/s. The model itself 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 interface is designed to naturally extend tabular foundation models to relational signal by passing additional related multi-table context and query information:

import sdm  # pip install structured-data-models

model = sdm.models.KumoRelational(device="cuda")

pred = model(
    # In-context training table (fkeys/timestamps/targets):
    x_context=sdm.TableTensor(...),
    y_context=sdm.TableTensor(...),
    # Prediction examples (fkeys/timestamps):
    x_query=sdm.TableTensor(...),
    # Multi-table information for context/prediction entities:
    related_context_tables=sdm.RelatedTables(tables={...}),
    related_query_tables=sdm.RelatedTables(tables={...}),
)

See the library's relational examples for RelBench and SAP SALT pipelines.

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  # pip install 'structured-data-models-client[relational]'

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(),
)

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 Adi Wadaskar, Hema Raghavan, Manush Murali, Zack Drach, Vanja Josifovski, Myungwhan Kim, 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, and Alex Porter.

原文版权归 Hugging Face Blog 及原作者所有,本站转载仅供阅读。如需删除,请联系 support@aisa.one。