Back to AI News
MarkTechPost

NVIDIA Open-Sources Kumo Engine for GNN Training on Relational Databases

NVIDIA has released Kumo Engine under Apache 2.0, an engine that converts linked relational tables into an on-disk graph so temporal GNNs can sample time-correct neighborhoods directly from NVMe rather than RAM. Its Rust core, DiskGraph, uses minimal perfect hashing, bounded sampling and newest-first link storage to avoid flattening tables into feature pipelines. NVIDIA reports 2.4x to 8.9x faster warm neighborhood retrieval than prepared DuckDB 2.0.0 at 2 to 4 hops on a 50B-node, 175.5B-edge synthetic commerce graph, and 41m14s versus 64m13s for matched in-memory PyG over 15 epochs on a 111M-node citation graph, at 63.26% versus 63.93% test accuracy. The current PyPI release is kumo-engine 1.2.0, requiring Python 3.11+, with optional connectors for cloud storage and warehouses.

AI Brief

It gives practitioners a concrete, benchmarked open-source option for training GNNs on large relational datasets without building flattened feature pipelines.

NVIDIA has open-sourced NVIDIA Kumo Engine, an engine for training predictive models directly on relational data. Kumo Engine is an Apache 2.0 accelerator that stores linked tables as an on-disk graph. For each entity, it samples related records up to the prediction time. Its Rust core, DiskGraph, reads those neighborhoods from local NVMe SSDs instead of RAM. The current PyPI release is kumo-engine 1.2.0.

TL;DR

  • Size: Tested on a 50B-node commerce graph with 175.5B edges (reverse edges included). Its 2.6 TiB index exceeded the machine’s 1 TiB RAM.
  • Runs on: Linux with local NVMe and an NVIDIA GPU for production. Small datasets also run on CPU or Apple silicon. Python 3.11+.
  • Performance: 2.4x to 8.9x faster warm neighborhood retrieval than prepared DuckDB 2.0.0 at 2 to 4 hops.
  • Best: 2-hop retrieval at 5.3 s per million seeds vs 46.9 s for prepared DuckDB.
  • Worst: 63.26% test accuracy vs 63.93% for in-memory PyG, 0.67 points lower.

What problem does Kumo Engine solve?

Most enterprise data lives in connected tables. Customers link to orders, and orders link to products.

Classic ML pipelines flatten those tables first. Engineers write joins and aggregates like “orders in the last 30 days.” The model then sees only that summary.

Graph learning keeps the structure. Each row becomes a node and each foreign key becomes an edge. The hard part is scale. One prediction needs a record’s whole neighborhood, across several hops. That lookup must also be time-correct, so no future data leaks into training.

How does DiskGraph work?

Kumo Engine converts tables into a graph once, at ingest. The README lists 5 design choices:

  • Links resolved at ingest: Minimal perfect hashing maps each primary key to a compact integer ID. Following a link becomes a lookup, not a join.
  • Bounded context: Each hop samples a capped number of related records.
  • Newest-first storage: Links are stored per relationship, newest first. A binary search finds the prediction time.
  • Ordered reads: Large batches are sorted by disk position, so reads move through files in order.
  • Larger than memory: Graph files are read-only and memory-mapped. The OS caches hot pages and reads the rest on demand.
NVIDIA KUMO ENGINE

Training AI on your database, without flattening it

Open source (Apache 2.0). Rust DiskGraph samples time-correct neighborhoods from NVMe.

Enterprise data lives in connected tables. Classic pipelines flatten them into one feature table. Graph learning keeps every link.

Flattened feature table

userorders_30davg_spend
u_625341.2
u_51900.0

Joins and aggregates. The links between records are thrown away before training.

Relational graph

Each row is a node. Each foreign key is an edge.

Customers, orders, products, returns

Step 1: Start from your tables

Point Kumo Engine at local CSV or Parquet, cloud storage or a warehouse. You declare primary keys, foreign keys and time columns.

To predict "will this customer order in the next 30 days?", the model may only see records stamped at or before the prediction time. Drag the cutoff.

0

events used as context

0

future events excluded (no leakage)

Links are stored newest first, so a binary search finds the cutoff and the sampler reads the most recent records after it.

Warm neighborhood retrieval on a 50B-node, 175.5B-edge synthetic commerce graph. Seconds per million seeds, lower is faster. The 2.6 TiB index exceeded the machine's 1 TiB RAM.

Speedup vs prepared DuckDB: 8.9x
Kumo Engine5.3 s
Prepared DuckDB 2.0.046.9 s
DuckDB on Parquet103.4 s

Training, 111M-node graph, 15 epochs

41m 14s

vs 64m 13s for matched in-memory PyG (1 A10G)

Test accuracy (trade-off)

63.26%

vs 63.93% for PyG, 0.67 points lower

Source: NVIDIA Kumo Engine benchmark page, self-reported. AWS i4i.32xlarge for retrieval tests.

users  = Table.from_source_table(files["users"], primary_key="user_id")
orders = Table.from_source_table(files["orders"], primary_key="order_id",
                                 time_column="order_time")
graph = Graph(tables={"users": users, "orders": orders},
              edges=[Edge(src_table="orders", fkey="user_id", dst_table="users")])
snapshot = graph.snapshot()
pquery = PredictiveQuery(graph,
  "PREDICT COUNT(orders.*, 0, 30, days) > 0 FOR EACH users.user_id")
trainer = Trainer(pquery.suggest_model_plan(snapshot))
trainer.fit(pquery.generate_training_table(snapshot), snapshot=snapshot)
result = trainer.predict(pquery.generate_prediction_table(snapshot), snapshot=snapshot)

1. Define tables

Declare primary keys and time columns for each table.

Reads CSV and Parquet, plus S3, GCS, ADLS, BigQuery, Snowflake and Databricks via extras.
Data: github.com/NVIDIA/kumo-engine, docs.nvidia.com/sdgm/kumo-engine© Marktechpost

How fast is Kumo Engine? Benchmarks

All figures below are self-reported by NVIDIA on its benchmark page.

Context generation. The test used a synthetic commerce graph with 50B nodes and 175.5B edges. It ran on an AWS i4i.32xlarge with 128 vCPUs, 1 TiB RAM and striped NVMe. Warm retrieval, in seconds per million seeds:

HopsKumo EnginePrepared DuckDB 2.0.0DuckDB on Parquet
25.3 s46.9 s103.4 s
319.9 s63.6 s148.4 s
438.9 s94.9 s208.5 s

The reference results in the repo match these numbers. An earlier run against DuckDB 1.5.6 showed a wider gap. Kumo took 5, 19 and 39 seconds. DuckDB took 4.0, 5.3 and 6.5 minutes. NVIDIA says DuckDB 2.0.0 was 2x to 8x faster than 1.5.6.

Training. On a 111M-node citation graph, Kumo Engine trained 15 epochs in 41 min 14 s. A matched in-memory PyG setup took 64 min 13 s. Both ran on 1 A10G GPU. Training memory was 17 to 37 GiB for Kumo versus about 166 GiB for PyG. Test accuracy was 63.26% versus 63.93%.

End to end. On the 50B dataset, raw Parquet to trained model took 5.2 hours. A hand-built DuckDB feature pipeline took 9.9 hours. NVIDIA notes the model families differ, so this is a workflow comparison.

How do you use Kumo Engine?

The workflow is Python. You define tables, keys and time columns, then link them into a graph. You write the target as a predictive query:

PREDICT COUNT(orders.*, 0, 30, days) > 0 FOR EACH users.user_id

The engine then builds labeled training tables, samples context, trains a built-in temporal GNN and runs batch prediction. It handles classification, regression, forecasting and recommendation tasks.

The base package reads local CSV and Parquet. Optional extras add S3, GCS, Azure Data Lake, BigQuery, Snowflake and Databricks. It also integrates with MLflow and SageMaker. A bundled agent skill teaches coding agents the API. Install it with python -m kumo.engine.skills.

Comparison: Kumo Engine vs PyG, GraphStorm and DuckDB

FeatureKumo EnginePyGGraphStormDuckDB
TypeDisk-backed sampler + built-in temporal GNNGNN library for PyTorchGraph ML framework (AWS)In-process SQL database
LicenseApache 2.0MITApache 2.0MIT
Graph storage in NVIDIA testsMemory-mapped DiskGraph on NVMeIn RAMIn RAMNative tables + sorted adjacency tables
50B graph, 2-hop warm (s per 1M seeds)5.3 sNot testedNot tested46.9 s (prepared, 2.0.0)
111M-node graph, 15 epochs41 min 14 s (1 A10G)64 min 13 s (1 A10G)14 min on 4 x g5.48xlarge; single node failedNot applicable
Test accuracy (citation graph)63.26%63.93%Not disclosedNot applicable
Raw data to trained model, 50B5.2 hNot testedNot tested9.9 h (feature pipeline, 1.5.5)

Key Takeaways

  • Kumo Engine turns linked tables into an on-disk graph for GNN training.
  • Rust DiskGraph samples time-correct neighborhoods straight from NVMe.
  • 2-hop retrieval: 5.3 s vs 46.9 s for prepared DuckDB.
  • Cuts training time 36% vs PyG, at 0.67 points lower accuracy.
  • Apache 2.0, pip install kumo-engine, with agent skills included.


Check out the GitHub repo, documentation and benchmarks. You can check the deployment options and specs here through our GPULeaderboard.com chrome extension.

Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.

Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us

The post NVIDIA Open-Sources Kumo Engine to Train GNNs on Relational Databases appeared first on MarkTechPost.

Be the first to rate this article.

Comments & Questions (0)

Captcha
Please be respectful — let's keep the conversation friendly.

No comments yet

Be the first to comment!