---
url: /benchmarks.md
description: >-
  How scikit-link compares with gradient boosting on flattened tables and
  published RelBench results: datasets, baselines, splits and tuning budgets.
---

# Benchmarks

**The benchmark harness compares scikit-link estimators with gradient-boosted
decision trees (GBDTs) on the entity table alone or with hand-built relational
features, and with scores published for the same RelBench tasks.** Methods run
by the harness use the same splits and tuning budget.

On rel-f1 driver-position, the test races are more recent than the training
races, and their finishing position numbers are lower on average. A constant
prediction, the median of the training labels, shows how much of the error
comes from that drift: a model that learns the older level can score worse
than it. Open **How this run was made** under each board for its protocol.

## Published RelBench reference scores {#current-published-results-on-relbench}

The LightGBM, RDL and RelGNN scores below come from the RelBench and RelGNN
papers; the scikit-link column comes from the runs above. LightGBM uses the
entity table alone, while the graph models also use relationships between
rows. The scores reflect differences in both the input and the model.

The KumoRFM-2 paper also reports LightGBM with hand-built relational features.
On 12 RelBench v1 binary classification tasks, mean ROC AUC was 63.67% with
entity-table inputs and 75.62% with the hand-built features. See [Table 3 of
the KumoRFM-2 paper](https://arxiv.org/html/2604.12596).

## What scikit-link is compared with

| Family | What it is |
|---|---|
| Entity table + GBDT | Uses the main table as a baseline for measuring the value of related tables |
| Manual features + GBDT | Uses task-specific aggregations based on public solutions and published recipes, where available |
| Deep Feature Synthesis + GBDT (planned) | Featuretools features at depth 2, with tuned gradient boosting |
| AutoML (planned) | AutoGluon Tabular on the manual features, and TabPFN on small datasets |
| Simple baseline | A constant prediction, such as the median of the training labels for a regression task |
| Published results | Scores reported by papers and leaderboards on the same official RelBench splits, marked *reported* and not run by us |
| scikit-link | `RelationalFeaturizer` with tuned gradient boosting, and relational gradient boosting, random forests and decision trees |

## Datasets

| Dataset | Tables | Task | Metric | Status |
|---|---|---|---|---|
| PKDD'99 Financial (Berka) | 8 | Loan default | ROC AUC | Published |
| RelBench rel-f1 | 9 | Driver DNF, top 3 and position | Official task metric | Published |
| RelBench rel-avito, rel-stack, rel-hm, rel-trial | Varies by database | Supported classification and regression tasks | Official task metric | Pending |
| Home Credit Default Risk | 7 | Loan default | ROC AUC | Pending |
| Elo Merchant Category Recommendation | 4 | Customer loyalty | RMSE | Pending |

The board above shows each dataset and task once its run is published.
RelBench tasks use the official temporal splits. `rel-amazon` and
`rel-event` are supported but need much more memory than the other RelBench
databases, so they have no published run yet. PKDD'99, Home Credit and Elo
use cross-validation. For Home Credit and Elo it runs on the labeled Kaggle
training data, because Kaggle's leaderboard scores hidden labels on a
separate test set. Downloading them needs a Kaggle account. For data
access, follow the [benchmark setup instructions](https://github.com/rodrigo-arenas/scikit-link/tree/main/benchmarks#get-the-data).

## Rules for a fair comparison

1. **Use the same splits for every method.** The harness follows official
   splits where defined, time-based splits where required by the task, and
   k-fold cross-validation otherwise. K-fold splits are stratified for
   binary classification and group repeated entity keys. The defaults are
   five folds for cross-validation and five seeds.
2. **Fit preprocessing inside each training fold.** This includes category
   vocabularies and feature catalogs. The harness records corrections to
   public feature recipes in the result metadata.
3. **Tune on an inner validation split.** Refit the selected configuration
   on the outer training split, then score it on the outer test split. The
   same budget applies to gradient boosting, relational trees and forests.
4. **Measure the whole pipeline.** Fit and prediction times include feature
   computation. Search time is reported separately, and peak memory covers
   the fit when memory measurement is available.

## Reproduce

Run these commands from a clone of the repository. `--list` shows available
datasets, tasks and methods. The Home Credit command needs the dataset in
the benchmark cache; the RelBench command downloads the database once and runs one task.

```bash
uv run python -m benchmarks.run --list
uv run --group benchmarks python -m benchmarks.run home_credit
uv run --group benchmarks --with relbench python -m benchmarks.run rel-f1 --task driver-dnf --download
```

The runner writes JSON files to `benchmarks/results/`. The benchmark board
uses those files, which record the splits, tuning budget, versions and hardware.
