Most real-world data doesn't live in one table.
A customer has orders. Orders contain products. Events describe interactions. Each table holds only part of the story.
But when building predictive models, developers often spend significant time joining tables, engineering features, generating labels, and ensuring that historical data is used correctly.
What if the relationships already present in your data could become the model's context?
That's the problem NVIDIA Kumo Engine is designed to address.
What is Kumo Engine?
Kumo Engine is an accelerator for context generation over structured data.
It stores tables and their relationships as an on-disk graph. For each entity, it samples related records up to a specified prediction time. A predictive query describes the task, and Kumo Engine uses the resulting context to train and run predictive models on relational data.
Its built-in graph neural network (GNN) supports:
• Classification
• Regression
• Forecasting
• Recommendation
The central idea is simple: use the relationships in your data as model context, rather than relying entirely on manually engineered features.
1. From tables to connected context
Imagine an e-commerce dataset with two tables:
• users: customer information
• orders: customer transactions
A user can have multiple orders. The user_id field connects the two tables.
Instead of treating these tables as isolated datasets, Kumo Engine represents their relationships as a graph.
That lets the engine sample relevant order records for each user and build context for a prediction.
For example:
Will this customer place an order in the next 30 days?
The model can use the customer's historical orders as context.
2. Prediction time matters
There is an important detail in predictive machine learning: a model must not see information from the future.
Suppose we're predicting whether a customer will order in the next 30 days.
At a particular prediction time, the model should only see records that existed at or before that time. Future orders must not become part of the input.
Kumo Engine generates training examples at points in each entity's history and uses only records timestamped at or before each point in time.
This point-in-time approach helps avoid data leakage without requiring developers to hand-write label logic and point-in-time joins.
3. Define the prediction with a query
One of Kumo Engine's key ideas is the predictive query.
For the example of predicting whether a user will place an order in the next 30 days, the query is:
PREDICT COUNT(orders.*, 0, 30, days) > 0
FOR EACH users.user_id
This describes the prediction target:
• Count related orders.
• Look across the next 30 days.
• Predict whether the count is greater than zero.
• Generate predictions for each user.
The query is used to generate training examples and prediction inputs.
4. A quickstart with Python
Install Kumo Engine:
pip install kumo-engine
The package requires CPython 3.11 or later. The README also documents supported operating systems and hardware requirements.
Here's the core workflow using the sample shop dataset:
from kumo.engine import (
Edge,
FileConnector,
Graph,
PredictiveQuery,
Table,
Trainer,
datasets,
)
Load sample data
files = FileConnector(root_dir=datasets.shop())
Define tables
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"
)
Define the relationship
graph = Graph(
tables={
"users": users,
"orders": orders,
},
edges=[
Edge(
src_table="orders",
fkey="user_id",
dst_table="users"
)
],
)
snapshot = graph.snapshot()
Define the prediction task
pquery = PredictiveQuery(
graph,
"PREDICT COUNT(orders.*, 0, 30, days) > 0 "
"FOR EACH users.user_id"
)
Train
trainer = Trainer(
pquery.suggest_model_plan(snapshot)
)
training_result = trainer.fit(
pquery.generate_training_table(snapshot),
snapshot=snapshot,
)
Predict
result = trainer.predict(
pquery.generate_prediction_table(snapshot),
snapshot=snapshot,
binary_classification_threshold=0.5,
)
print(result.frame.head())
The example trains a model to predict which users will place an order in the next 30 days.
The resulting frame contains one row per user, including the predicted label and class probabilities.
5. How does it scale beyond memory?
Relational datasets can become much larger than available RAM.
Kumo Engine is designed to sample context from graphs containing billions of records on a single machine, even when the graph is larger than memory.
The README describes several techniques behind this design:
Resolve links at ingest
Primary and foreign keys are resolved during ingestion. Following a relationship during sampling becomes a direct lookup rather than a repeated join.
Bounded context
By default, each hop samples at most a configured number of related records. This keeps an entity's context bounded as the graph grows.
Recent history first
Related records are stored newest first. Sampling can locate the prediction time with a binary search and read recent records in order.
Ordered reads for large batches
The sampler expands batches one hop at a time and orders records by their position on disk to make reads more sequential.
Memory-mapped graph files
Graph files are read-only and memory-mapped. The operating system keeps frequently accessed pages in RAM and loads other pages from disk when needed.
Together, these techniques help Kumo Engine work with datasets that do not fit entirely in memory.
6. More than model training
The workflow extends beyond fitting a model.
Kumo Engine includes:
• Hyperparameter search
• Model explanations
• Embedding export
• Batch prediction
The README also describes integrations with MLflow, Databricks, SageMaker, and Snowflake for experiment tracking, model versioning, and prediction-drift monitoring.
It can run locally through Python or inside supported data-platform notebooks.
When is this useful?
Kumo Engine is worth exploring when:
• Your predictive problem spans multiple related tables.
• You want to use historical relationships as model context.
• Point-in-time correctness is important.
• You need to generate training examples from entity histories.
• Your relational graph is too large to fit in memory.
It is not simply another way to train a model. Its focus is the context-generation layer that sits between structured data and predictive modeling.
Final thoughts
A lot of useful predictive information is already present in the relationships between records.
Customers, transactions, products, events, and their timestamps form a connected history. The challenge is making that history available to a model without introducing leakage or building every feature and join manually.
NVIDIA Kumo Engine approaches this by turning relational data into graph-based context and using predictive queries to define what the model should learn.
The interesting shift is from asking how to engineer more features to asking how to make the relationships in our data usable as context.
Explore further
• Kumo Engine on GitHub
• Official documentation
• Predictive Query examples
• Benchmark report
Have you worked with predictive models over relational data? What has been the hardest part: feature engineering, point-in-time correctness, or scaling context generation? Share your experience in the comments.




