How it works
Your rows are the context, not training data
Every prediction uses two sets of rows. Context rows have a known answer, like a training set in classic machine learning. Rows to predict have no answer yet. The model reads the context in one pass and predicts the rest.
Context rows
| Applicant | Income | Loan | Bad in 12 months |
|---|---|---|---|
| A-1001 | $4,200 | $12,000 | no |
| A-1002 | $2,900 | $15,000 | yes |
| A-1003 | $6,100 | $8,000 | no |
| A-1004 | $3,300 | $20,000 | no |
Past cases with a known answer.
tabSutra
- Reads the context rows in one pass
- Compares each new row with what it read
- Uses only what was known before each row's date
- Keeps its pretrained weights fixed
Rows to predict
| Applicant | Bad in 12 months |
|---|---|
| A-2001 | 0.21 |
| A-2002 | 0.06 |
| A-2003 | 0.44 |
A probability for each new row, with its reasons.
What this means in practice
Reading a context is one pass of the model over your rows, not a training run. There is nothing to tune.
You can change the context, for example by adding last week's rows, and predict again straight away.
The context is part of the input. A different set of context rows can give different predictions, in the same way that a different training set gives a different model.
The model brings what it learned in pretraining to every new table. This is why it gives useful predictions on small tables, where a model trained from scratch has too little to learn from.
With a long history, the model can also be fine-tuned on your data for higher accuracy. This is optional.
What it reads
Four kinds of data, one model
The same model reads every kind. What changes from one use to the next is the data you send, not the model.
Time series
One or many series measured at regular steps, with inputs known ahead such as prices, promotions and weather forecasts, and inputs known only for the past.
Typical usesDemand per item and store, energy load, solar and wind output, call volumes
Forecasting guideTables
One row per case, with no order between the rows. Numbers, categories, dates and text in any mix, missing values included.
Typical usesCredit applications, insurance claims, churn, property prices, quality control
Tables guideSequences
Rows in a known order, usually dated, often many per customer, account, vehicle or machine. Each row reads the earlier rows of its own group, and nothing after it.
Typical usesBehaviour scores, collections, battery health, equipment failure
Sequences guideDatabases
Relational data in several tables joined by keys. The model follows the keys itself, and reads each table as it stood on the date of the prediction.
Typical usesCustomer churn and lifetime value, product sales, next purchase recommendations
Databases guideEvery kind of cell
Each cell is read as what it is: a number, a category, a date, a text, an image, an audio file, a document or an embedding. Numbers do not need scaling, categories do not need encoding, and missing values do not need filling.
Text and media are turned into a few numeric columns by frozen embedding models, and then read like any other column.
Dates are read relative to the row's own date. An account-opening date on a row dated 31 October tells the model how long the account had been open on that day.
The model does not read column names. A table with English column names and the same table with column names in another language give the same predictions.
What it predicts
Four kinds of prediction
| What you get | Example | |
|---|---|---|
| Forecasts | A predicted distribution for every future step of every series | Daily demand for each item in each store for the next 28 days |
| Probabilities | A probability for each class, for 2 to 32 classes | Will this loan go bad within 12 months? |
| Values with ranges | A full predicted distribution, with its mean, median and any quantile | How much will this customer spend next month? |
| Recommendations | A ranked list of items for each customer, with a probability for each | Which products will this customer buy next week? |
Built for production data
The same answer, however the data is laid out
Many models change their predictions when the same data is laid out differently. tabSutra does not, in these ways.
| Change | Effect on the predictions |
|---|---|
| The rows come in a different order | None |
| The columns come in a different order | None |
| The columns have different names, in any language | None. Column names are not read. |
| The categories of a column have different names | None. Category names are not used. |
| An input is in other units, such as dollars or thousands of dollars | None. Predictions of a target come back in its own units. |
| The same request is sent twice | None. There is no random step at prediction time. |
Real business data, without a cleaning step
Real tables are not clean. The model copes with the usual problems of business data:
- missing values, including columns that are mostly empty and values that go missing for a reason;
- codes such as -999 written in place of a missing value;
- id columns, near-constant columns and columns of pure noise;
- duplicated and derived columns, such as a total next to its parts;
- skewed numbers with extreme values, and counts with many zeros;
- rare outcomes, such as a default rate below 1%;
- fields that were added or retired part way through a history.
Cleaning still helps where you know the cause of a problem. If you know that -999 means missing, say so. But a first prediction does not wait for it.
Time is respected
When you name the column that holds the date, the model never uses what happened after a row's date to predict that row.
Each row also carries the time its answer became known. An answer enters the context only once it was known. A 12-month outcome counts only after its 12 months have passed.
Back-tests built this way show how the model would have done in real use, not better.
Explanations
Reasons with every prediction
Any prediction can come with the inputs that moved it, with the size and direction of each effect. Credit teams turn these into reason codes. Analysts use them to check that a forecast rests on sensible inputs.
An example explanation. Amber inputs raised the probability, teal inputs lowered it.
Releases
Current release
tabSutra-39M-v1.0
Our first model, for time-series forecasting. It forecasts every horizon in one pass and gives a range with each forecast.
It is used zero-shot. The model sees only the history of each series and is not trained on it. It was pretrained on synthetic data only, so no benchmark data, and no real-world data, was part of its training.
- 39.1M parameters
- Zero-shot
- Synthetic data only
- Quantile forecasts
- All horizons in one pass
Benchmark results
Lower is better for both metrics. GIFT-Eval-CTX reports MASE only.
| Benchmark | MASE | CRPS |
|---|---|---|
| GIFT-Eval | 0.778 | 0.532 |
| GIFT-Eval-CTXHistory only | 0.791 | – |
| GIFT-Eval-CTXWith three fixed rules that use the context: value limits, level shifts and spikes | 0.627 | – |
| BOOMSelf-evaluated with the Toto repository's leaderboard code | 0.671 | 0.396 |
Limits
What one request takes
| Limit | Value |
|---|---|
| Classes in a classification | 2 to 32 |
| Quantiles of a forecast or value | Any level from 0.1% to 99.9% |
| Context rows | No fixed limit. Time grows with rows and columns. |
Request size, rows per database and requests per minute depend on your account. The limits page in the documentation has the details.
Try the model on your own data
API access is open to teams on request. The documentation covers every endpoint, with sample data for each use case.