STRABLE: Benchmarking Tabular Machine Learning with Strings
TL;DR — STRABLE is a benchmark of 108 real-world tables with strings. We evaluate modular pipelines (a string encoder feeding a tabular learner) as well as end-to-end architectures that jointly model strings and numbers.
🔑 Key findings
- Decoder-only LLM embeddings need the right post-processing — i.e. dimensionality reduction. Default PCA hurts them; standard-scaling-then-PCA, or no-PCA (slicing the first N raw embedding dimensions), recovers their performance.
- Modular pipelines outperform today's end-to-end string-tabular architectures.
- Lightweight encoders paired with advanced learners dominate the Pareto frontier (the best performance-vs-runtime trade-off) — a consequence of STRABLE's string taxonomy: Categoricals 49%, Names 23%, Structured Codes 17%, Datetimes 2%, Identifiers 0.5% and only 8% Free Text.
📦 Quick use: the strable package
pip install strable # tables, folds, evaluate, Tf-Idf
pip install "strable[taxonomy]" # also strable.profile, the string taxonomy (adds NLTK)
import strable
from sklearn.ensemble import HistGradientBoostingRegressor
from sklearn.pipeline import make_pipeline
X, y, task = strable.load_table("beer-ratings") # downloaded from Hugging Face once, then cached
folds = strable.get_folds("beer-ratings") # the benchmark's 3 (train_idx, test_idx) folds
pipeline = make_pipeline(strable.encoders.tfidf(), HistGradientBoostingRegressor())
scores = strable.evaluate(pipeline, tables=["beer-ratings"]) # one row per fold: R² or ROC-AUC
print(scores[["table", "fold", "score"]])
board = strable.load_published_results() # the leaderboard's scores, one row per pipeline, table and fold
print(board[board["table"] == "beer-ratings"].groupby("id")["score"].median().nlargest(3))
columns, mix = strable.profile(X) # type of each string column, and the table's mix
strable.list_tables() names the 108 tables (list_tables("regression"), "classification", …). evaluate uses the leaderboard's folds, metrics and checks; with no tables, it runs every regression table for a regressor and every classification table for a classifier. Scores can move slightly with other library versions: SciPy 1.17 and later shift the Tf-Idf features by about 1e-7, and learners change across scikit-learn versions. The leaderboard's environment has scikit-learn 1.7.2, SciPy 1.16.3 and skrub 0.7.0. The tables are public, so no Hugging Face token is needed. load_published_results() gives the leaderboard's results shipped with this version of the package (its leaderboard version is in board.attrs); load_published_results(latest=True) downloads today's leaderboard. The score column of these results is the one evaluate returns, so a new pipeline compares with them table by table and fold by fold. profile needs the taxonomy extra; on its first call, it downloads NLTK's words and stopwords corpora (about 800 KB) if they are missing. The package does not include the paper's experiments: for those, set up the paper's environment of Step 1 below.
🗂️ Repository layout
strable/
├── configs/
│ ├── exp_configs.py
│ ├── model_parameters.py
│ ├── paper_runs.py # Runs (<ABLATION>/<save_dir>) each paper figure reads
│ └── path_configs.py
├── data/
│ └── download_datasets.py
├── figures/
│ ├── _main.py
│ ├── pareto_plot.png
│ ├── main_paper/
│ └── appendix/
├── scripts/
│ ├── download_datasets.py
│ ├── compile_results.py
│ ├── compile_results_llm_times.py
│ ├── datasets_metadata_recap.py
│ ├── datasets_representation.py
│ ├── embedding_extraction_scripts/
│ ├── evaluate_scripts/
│ ├── script_preprocess_data/
│ ├── script_data_modification/
│ ├── natural_language_test_VSE_vs_STRABLE_vs_CARTE_vs_TTB.py
│ ├── OHE_vs_passthrough_analysis_xgb.py
│ └── qwen-3-8b_matrioska_embedding_check.py
├── src/
│ ├── encoding.py
│ ├── llm_encoder.py
│ ├── inference.py
│ ├── param_search.py
│ ├── utils_evaluation.py
│ ├── utils_preprocess.py
│ └── utils_visualization.py
├── strable/ # the pip package: tables, folds, evaluate, Tf-Idf, profile
├── tests/ # tests of the package (pytest)
├── requirements.txt
├── pyproject.toml
└── LICENSE
results/, results_pics/, results_tables/, results_compiled/, and data/data_processed* are runtime-generated and gitignored. The repository ships no results CSV: every figure input is produced by the pipeline below.
🛠️ Step 1 – Set up the paper's environment
To run the paper's experiments (scripts/, src/), from a clone of this repository. To only load the tables, get the folds and score a model, pip install strable (Quick use, above) is enough.
Python 3.12.
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
export STRABLE_ROOT=$(pwd)
export HF_TOKEN=hf_<your-token>
HF_HOME controls the Hugging Face cache (default ~/.cache/huggingface).
TabPFN-2.5 — the
tabpfnandrealtabpfnlearners load the paper's checkpoints fromdata/models/tabpfn_2_5/(Prior Labs' licence applies):hf download Prior-Labs/tabpfn_2_5 --revision 6c45f3a6d0d07c6c5f62572e04a0c2929de91b8b --local-dir data/models/tabpfn_2_5 \ tabpfn-v2.5-classifier-v2.5_default.ckpt tabpfn-v2.5-regressor-v2.5_default.ckpt \ tabpfn-v2.5-classifier-v2.5_real.ckpt tabpfn-v2.5-regressor-v2.5_real.ckpt
ContextTab is not on PyPI:
requirements.txtinstalls it (sap_rpt_oss) from https://github.com/SAP-samples/sap-rpt-1-oss at the commit the paper used, sopipneedsgit.
💾 Step 2 – Get the data
Paths are wired automatically through configs/path_configs.py.
2a. Default variant (Hugging Face) — 🤗
The main benchmark (108 preprocessed tables) is mirrored on the inria-soda/STRABLE-benchmark Hugging Face repository.
python data/download_datasets.py
This populates data/data_processed/.
2b. Ablation variants (Google Drive)
The three ablation variants are released as a single Drive bundle:
📦 https://drive.google.com/file/d/1wq2edCjNUGi2uBwAKgGj5eikswmFxFEZ/view?usp=sharing
| Variant CLI flag | Folder | Used by |
|---|---|---|
default |
data/data_processed/ |
script_evaluate.py, script_evaluate_30_thres_*.py, script_evaluate_impute_missing_val.py |
full |
data/data_processed_FULL/ |
script_evaluate_FULL.py |
feature-eng |
data/data_processed_feature_eng/ |
script_evaluate_feature_eng.py |
raw-targets |
data/data_processed_skewness_inverse_transformation/ |
script_evaluate_skewness.py |
python scripts/download_datasets.py # default only
python scripts/download_datasets.py --variants default,full,feature-eng,raw-targets
2c. Re-running preprocessing from raw sources 🛠️
The Drive bundle does not include upstream raw files. To regenerate:
- Get raw sources from the URLs in Appendix C.4 of the paper.
- Drop them under
<STRABLE_ROOT>/data/data_raw/, at the path each script'sdata_path = …names (most scripts readdata/data_raw/<file>). - Run:
scripts/script_preprocess_data/— for the default 108 tables.scripts/script_data_modification/script_preprocess_subsample_75k/— for the tables subsampled to 75,000.scripts/script_data_modification/script_preprocess_feature_eng/feature_engineering_performed/—feature-engvariant for 43 datasets. Runs on top ofdata/data_processed/(i.e. after the default preprocessing), not on the raw sources.scripts/script_data_modification/apply_inverse_label_transformation.py—raw-targetsvariant: undoes the default skewness transform on regression labels.
2d. Benchmarks comparison (CARTE / TTB / VSE)
Required only to reproduce the cross-benchmark appendix Figure E.1.
| Benchmark | Source | Layout |
|---|---|---|
| CARTE | CARTE benchmark | data/CARTE_datasets/ |
| TTB | https://github.com/mrazmartin/TextTabBench/tree/main/datasets_notebooks/paper_datasets | data/TTB_datasets/paper_datasets/ |
| VSE | https://figshare.com/articles/dataset/Datasets_with_text_entries/24879042?file=43775007 | data/VSE_datasets/ |
🚦 Pipeline
-
Data (Step 2 above).
-
Pre-compute LLM embeddings — only for LLM-encoder pipelines. Non-LLM encoders (TableVectorizer / TargetEncoder / Tf-Idf) and end-to-end learners (ContextTab / TabSTAR / Mambular / Catboost) do not need this step:
python scripts/embedding_extraction_scripts/script_extract_llm_embeddings.py \ -m llm-qwen3-8b -dn all-wide -ns 3 -fi all -dv cuda -cf False -oc False
GPU memory: the 8B encoders (Qwen-3-8B, LLaMA-3.1-8B) run in float32, as in the paper, so their weights alone take 30 to 32 GB; use a GPU with at least 40 GB (e.g. A40, A100). When a batch does not fit, the script retries with half the batch.
-
Run the experiment. Each
scripts/evaluate_scripts/script_evaluate*.pywrites under an ablation folder:script_evaluate.pyunderdefault, orno-pcawith--no_pca True; each other script under its hard-codedABLATIONtag (ct30-ohe,ct30-passthrough,feature-eng,full-data,imputed,no-target-transform).Output lands at:
results/<ABLATION>/<save_dir>/<dataset>/<method_marker>/score/<marker>.csvEach variant takes the same core flags (
-dn -ns -m -fi -dv -cf -oc -ti -sd -norm -nopca -ndim);script_evaluate.pyalso takes--dry-run, andscript_evaluate_impute_missing_val.pyadds-mvp/--missing_val_policy.python scripts/evaluate_scripts/script_evaluate.py \ --save_dir benchmark_main -m num-str_tabvec_xgb \ -dn all-wide -ns 3 -fi all -dv cpu -cf False -oc False -ti default
-
Compile per-fold scores:
python scripts/compile_results.py default/benchmark_main # → results/compiled_results/result_default_benchmark_main.csv
The output name is always
result_<run name with "/" → "_">.csv(compiled_results_path()inconfigs/path_configs.py). -
Figures: one script per figure, runnable independently. Scripts read benchmark results only from compiled runs; the runs they need (run name, script, flags, methods) are listed once in
configs/paper_runs.py.python configs/paper_runs.pyprints the evaluate + compile commands for all of them. A figure needs the compiled results of every run it reads, so the figures come after the full benchmark. They also read per-table statistics (rows, columns, cardinality, string length, missing values) thatscripts/datasets_representation.pywrites once todataset_summary_wide.parquet.python scripts/datasets_representation.py python figures/main_paper/figure_3.py python figures/appendix/figure_E10.py
Outputs land in
results_pics/<YYYY-MM-DD>/(tables inresults_tables/<YYYY-MM-DD>/).
⚡ Quickstart pipelines
Each block below is copy-paste runnable. Adjust -dv cpu/cuda for your hardware.
1. Fresh-environment setup
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
export STRABLE_ROOT=$(pwd)
export HF_TOKEN=hf_<your-token>
python scripts/download_datasets.py
2. Embedding extraction with a light LLM
python scripts/embedding_extraction_scripts/script_extract_llm_embeddings.py \
-m llm-all-MiniLM-L6-v2 \
-dn yelp_business beer-ratings \
-ns 3 -fi all -dv cpu -cf False -oc False
3. End-to-end learner on one dataset
python scripts/evaluate_scripts/script_evaluate.py \
--save_dir benchmark_main -m num-str_contexttab_contexttab \
-dn yelp_business -ns 3 -fi 0 \
-dv cpu -cf False -oc False -ti default
python scripts/compile_results.py default/benchmark_main
4. Light learner, tuned, on a few datasets
python scripts/evaluate_scripts/script_evaluate.py \
--save_dir benchmark_main -m num-str_tabvec_xgb \
-dn yelp_business beer-ratings ramen-ratings \
-ns 3 -fi all -dv cpu -cf False -oc False -ti tune
python scripts/compile_results.py default/benchmark_main
5. Foundation-model learner with a light encoder
python scripts/evaluate_scripts/script_evaluate.py \
--save_dir benchmark_main -m num-str_tabvec_tabpfn \
-dn yelp_business beer-ratings ramen-ratings \
-ns 3 -fi all -dv cuda -cf False -oc False -ti default
python scripts/compile_results.py default/benchmark_main
6. No-PCA ablation (Fig. 2, E.2)
The no-PCA path is a flag on the main script; --no_pca True keeps the first --n_dimensions raw embedding dimensions instead of running PCA. Re-uses the same embeddings as the default run; only the dimensionality-reduction step differs. Results land under results/no-pca/....
python scripts/evaluate_scripts/script_evaluate.py \
--save_dir benchmark_main -m num-str_llm-qwen3-8b_tabpfn \
-dn all-wide -ns 3 -fi all \
-dv cuda -cf False -oc False -ti default \
--no_pca True
python scripts/compile_results.py no-pca/benchmark_main
7. CT=30 routing (Fig. E.11)
Routes string columns with cardinality <30 through one-hot encoding (Ridge) or passthrough (XGBoost / TabPFN); columns with cardinality ≥30 still go through the LLM encoder. Two scripts, one per learner family:
# LLaMA-3.1-8B embeddings, read by both branches (a gated model: accept its licence on Hugging Face, set HF_TOKEN)
python scripts/embedding_extraction_scripts/script_extract_llm_embeddings.py \
-m llm-llama-3.1-8b -dn all-wide -ns 3 -fi all -dv cuda -cf False -oc False
# OHE branch (Ridge)
python scripts/evaluate_scripts/script_evaluate_30_thres_OHE.py \
--save_dir benchmark_main -m num-str_llm-llama-3.1-8b_ridge \
-dn all-wide -ns 3 -fi all -dv cuda -cf False -oc False -ti default
python scripts/compile_results.py ct30-ohe/benchmark_main
# Passthrough branch (XGBoost / TabPFN)
python scripts/evaluate_scripts/script_evaluate_30_thres_lowcard_passthrough.py \
--save_dir benchmark_main -m num-str_llm-llama-3.1-8b_xgb \
-dn all-wide -ns 3 -fi all -dv cuda -cf False -oc False -ti default
python scripts/compile_results.py ct30-passthrough/benchmark_main
8. Full-data ablation (Fig. E.10)
Reads from data/data_processed_FULL/ (un-subsampled tables); requires the matching embeddings extracted via the FULL-variant script.
python scripts/embedding_extraction_scripts/script_extract_llm_embeddings_FULL.py \
-m llm-all-MiniLM-L6-v2 -dn all-wide -ns 3 -fi all -dv cuda -cf False -oc False
python scripts/evaluate_scripts/script_evaluate_FULL.py \
--save_dir benchmark_main -m num-str_llm-all-MiniLM-L6-v2_xgb \
-dn all-wide -ns 3 -fi all -dv cuda -cf False -oc False -ti default
python scripts/compile_results.py full-data/benchmark_main
9. Feature-engineering ablation (Fig. E.7)
Reads from data/data_processed_feature_eng/. Requires running the feature-eng-variant embedding script first.
python scripts/embedding_extraction_scripts/script_extract_llm_embeddings_feat_eng.py \
-m llm-all-MiniLM-L6-v2 -dn all-wide -ns 3 -fi all -dv cuda -cf False -oc False
python scripts/evaluate_scripts/script_evaluate_feature_eng.py \
--save_dir benchmark_main -m num-str_llm-all-MiniLM-L6-v2_xgb \
-dn all-wide -ns 3 -fi all -dv cuda -cf False -oc False -ti default
python scripts/compile_results.py feature-eng/benchmark_main
10. Raw-target ablation (Fig. E.8)
Reads from data/data_processed_skewness_inverse_transformation/, where the default skewness transform on regression labels has been inverted back to the raw target.
python scripts/evaluate_scripts/script_evaluate_skewness.py \
--save_dir benchmark_main -m num-str_tabvec_xgb \
-dn all-wide -ns 3 -fi all -dv cpu -cf False -oc False -ti default
python scripts/compile_results.py no-target-transform/benchmark_main
11. Imputation ablation (Fig. E.9)
Adds -mvp/--missing_val_policy (uniform_impute or none). Mean imputation for numeric columns and mode for categorical, applied after the train/test split.
python scripts/evaluate_scripts/script_evaluate_impute_missing_val.py \
--save_dir benchmark_main -m num-str_tabvec_xgb \
-dn all-wide -ns 3 -fi all -dv cpu -cf False -oc False -ti default \
-mvp uniform_impute
python scripts/compile_results.py imputed/benchmark_main
12. Dry-run on one dataset / one fold
python scripts/evaluate_scripts/script_evaluate.py --dry-run \
--save_dir benchmark_main -m num-str_tabvec_ridge \
-dn yelp_business -ns 3 -fi 0 \
-dv cpu -cf False -oc False -ti default
🏷️ Method tokens (-m / --method)
Method strings have the form <dtype>_<encoder>_<learner>. The full enumeration of valid combinations lives in scripts/evaluate_scripts/METHOD_NAMES.md; display-name maps live in figures/_main.py (dtype_map, encoder_map, learner_map).
The _default / _tune suffix is appended automatically based on -ti / --tune_indicator; do not put it in -m. scripts/compile_results.py adds it to the compiled method column (e.g. num-str_tabvec_xgb_tune) for learners listed in estim_configs (configs/exp_configs.py); the other learners keep the bare name (num-str_contexttab_contexttab).
📑 Citation
If you use STRABLE in your work, please cite:
@misc{blayer2026strablebenchmarkingtabularmachine,
title={STRABLE: Benchmarking Tabular Machine Learning with Strings},
author={Gioia Blayer and Myung Jun Kim and Félix Lefebvre and Lennart Purucker and Alan Arazi and Eilam Shapira and Roi Reichart and Frank Hutter and Marine Le Morvan and David Holzmüller and Gaël Varoquaux},
year={2026},
eprint={2605.12292},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2605.12292},
}
⚖️ License
This project is released under the BSD 3-Clause License.
Metadata
Release files for strable 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| strable-0.3.0.tar.gz | 1.4 MB | With provenance | Details for strable-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| strable-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for strable-0.3.0-py3-none-any.whl |
Total release size: 2.9 MB
Release files / strable-0.3.0.tar.gz
| Download URL | strable-0.3.0.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96dedb36fe20552e0139054ea84a13a88ecad997d95d3591066fb189dfd1612b
|
|
BLAKE2b-256 checksum How to use checksums |
1f653f9696933408199f3005d0275eb7f3782594579a0b500705c6b95506c227
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logRelease files / strable-0.3.0-py3-none-any.whl
| Download URL | strable-0.3.0-py3-none-any.whl |
|---|---|
| Size | 1.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba67f3b58be83d1d94d32608647a41342863093749bc4e54c0325a4c5227d8b8
|
|
BLAKE2b-256 checksum How to use checksums |
56389a16ca8813070cf8dc37ef635831de756a38d78d69214d0d1a5cf616b0eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logSecurity for strable 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for strable-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.