What a classic project involves
Most prediction projects follow the same steps, whatever the question.
| Step | What happens |
|---|---|
| Get and join the data | Tables are pulled from several systems and joined into one table per question. |
| Clean it | Missing values, codes such as -999, duplicates and wrong types are fixed. |
| Build features | Sequences and related tables are rolled up into columns: counts, averages, lags, days since an event. |
| Choose, train and tune a model | A model is picked, usually boosted trees, and its settings are tuned. |
| Validate | The model is tested on held-out data, ideally a later period. |
| Deploy and monitor | The pipeline is put into production, and its inputs and accuracy are watched. |
| Repeat | A new question, a new table or a shift in the data sends the work back to the start. |
Most of the time goes into the first three steps. In Anaconda's 2020 survey of about 2,400 data practitioners, data loading and cleaning took about 45% of their time. Model selection, training and deployment each took about 11 to 12%.1
Sculley and colleagues at Google made the same point about running systems. In a real machine learning system, the model code is a small part. The data collection, feature extraction, configuration and monitoring around it are much larger, and they are where the long-term cost builds up.2
Feature engineering is where the time goes
Feature engineering is the step that turns a business's data into one table a model can learn from. For a customer, it means rolling up their orders, payments and visits into numbers on a single row.
RelBench measured how much work this takes. In its user study, an experienced data scientist built features by hand for each prediction task on relational databases. A model that read the database directly did better, and needed more than ten times less human work.3
Every new question repeats this step. Churn, spend and next purchase each need their own feature table, even on the same database.
Classic models are still strong
None of this means boosted trees are weak. Grinsztajn, Oyallon and Varoquaux showed that tree-based models still beat deep learning on typical tabular data of medium size.4 On TabArena, a maintained benchmark of real-world tables, well-tuned boosted trees remain hard to beat.5
The cost of the classic approach is not in the model. It is in the pipeline that has to be built around the model, once for every question.
What a pretrained model changes
A foundation model for tables is pretrained once, on a very large number of tables. On new data, it reads the rows with known answers as context and predicts the rest. No model is trained for the task.
Hollmann and colleagues showed what this can do on small tables. TabPFN, a tabular foundation model, beat all previous methods on datasets with up to 10,000 samples. In 2.8 seconds, it did better than an ensemble of the strongest baselines tuned for 4 hours.6
Van Breugel and van der Schaar argued that tabular foundation models should be a research priority. Tabular data dominates many real-world fields, and a model that transfers across tables saves the work done for each task.7
The steps a pretrained model removes, and the ones it does not, are below.
| Step | Classic pipeline | Pretrained model |
|---|---|---|
| Get and join the data | Joined into one table per question | Tables sent as they are, with their keys |
| Clean it | Fixed before training | Common problems handled without a cleaning step |
| Build features | Built and maintained by hand | Not needed. Sequences and related tables are read directly. |
| Choose, train and tune a model | For every question | Not needed. The model is pretrained. |
| Validate | Needed | Still needed, on a later period |
| Deploy and monitor | One pipeline per question | One model for every question |
| A change in the data | Retrain, often rebuild features | New rows go into the next call |
Where the gain is largest
- Small data. A new product, branch or market with a few hundred labelled rows. A model trained from scratch has too little to learn from.
- Many questions. A business with dozens of prediction questions and no team for each one.
- New entities. New products, stores and customers that have no history of their own.
- Sequences and databases. Data that a pipeline would have to flatten into one row per case.
- Fast change. Data that shifts often enough that retraining becomes a standing cost.
Where it is smallest
One large, stable question, with plenty of clean data and a team to maintain it, is where a well-tuned classic model is closest. Even there, a pretrained model can be fine-tuned on the full history. It still saves the work of building and maintaining the features.