LightPFN 1.5.0 model card, provenance and technical report
Browse filesFiles changed (4)
- .gitattributes+1
- LightPFN15_report.pdfAdded+3
- README.md+57-40
- provenance_1.5.jsonAdded+36
33 unmodified lines34353633 unmodified lines*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textLightPFN_report.pdf filter=lfs diff=lfs merge=lfs -text33 unmodified lines3435363733 unmodified lines*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textLightPFN_report.pdf filter=lfs diff=lfs merge=lfs -textLightPFN15_report.pdf filter=lfs diff=lfs merge=lfs -text
123version https://git-lfs.github.com/spec/v1oid sha256:9177dd7497007e997c152f6f80b03381d0695e360fa925759b4a29fdf3d6f159size 2448414 unmodified lines56789108 unmodified lines1920212223242526272829303132333435363 unmodified lines4041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041054 unmodified linestags:- tabular- tabular-classification- in-context-learning- prior-data-fitted-network- foundation-model8 unmodified lines<p><a href="https://github.com/GioOtto/LightPFN"><img alt="Code on GitHub" src="https://img.shields.io/badge/Code-GitHub-181717?style=for-the-badge&logo=github&logoColor=white" /></a><a href="https://pypi.org/project/LightPFN/"><img alt="Package on PyPI" src="https://img.shields.io/pypi/v/lightpfn?style=for-the-badge&logo=pypi&logoColor=white&label=PyPI&color=3775A9" /></a><a href="https://huggingface.co/ueuegio/LightPFN/blob/main/LightPFN_report.pdf"><img alt="Technical report (PDF)" src="https://img.shields.io/badge/Technical%20report-PDF-8B1A1A?style=for-the-badge&logo=adobeacrobatreader&logoColor=white" /></a><a href="https://github.com/GioOtto/LightPFN/blob/main/LICENSE"><img alt="License Apache 2.0" src="https://img.shields.io/badge/License-Apache%202.0-2F855A?style=for-the-badge" /></a></p>LightPFN is a small tabular foundation model for classification: a 4,603,088-parameter in-context learnerpretrained only on synthetic data. `fit` stores the training set as context and `predict_proba` answers in oneforward pass, with no training on your data and no hyperparameters to tune. It runs on CPU, CUDA, ROCm and, throughits own Vulkan kernels, on AMD, Intel and NVIDIA GPUs.- Code, documentation and training pipeline: [github.com/GioOtto/LightPFN](https://github.com/GioOtto/LightPFN)- Package: [pypi.org/project/LightPFN](https://pypi.org/project/LightPFN/)- Technical report: [LightPFN_report.pdf](./LightPFN_report.pdf)- License: Apache 2.0, code and weights## Usage3 unmodified lines``````pythonfrom lightpfn import LightPFNClassifierclf = LightPFNClassifier(n_estimators=4, random_state=0)clf.fit(X_train, y_train) # downloads these weights at a pinned commit on the first fitproba = clf.predict_proba(X_test)````X` can be a NumPy array or a pandas DataFrame with numeric, categorical, string and boolean columns and missingvalues. `device="auto"` uses a CUDA or ROCm GPU, else a Vulkan GPU (`pip install "LightPFN[vulkan]"`), else the CPU.The [user guide](https://github.com/GioOtto/LightPFN/blob/main/docs/en/GUIDE.md) covers every option.## Model| | ||---|---|| Task | classification, 2 to 10 classes || Parameters | 4,603,088 (18 MB, float32) || Architecture | cell embedding (value, rank, missing flag), two induced column stages, row refinement with four summary tokens, row compression, seven in-context blocks, retrieval decoder || Pretraining data | synthetic only: 90% structural causal graph prior, 10% rule prior (XOR, parity, lookup, trees); 7.68 million task draws from 4.03 million distinct tasks || Training | 120,000 steps of 64 tasks on two RTX 5090 (tables up to 2,048 rows), then 39,250 steps on tables up to 60,000 rows || Not used in training | real datasets, distillation, weights or outputs of other tabular foundation models |## EvaluationThe official TabArena leaderboard includes default, tuned and ensembled baselines. Other evaluations usedefault baselines; AUC differences have 95% paired bootstrap intervals.| Benchmark | Result ||---|---|| [Official TabArena leaderboard](https://huggingface.co/spaces/TabArena/leaderboard), 38 classification datasets, default configuration (four estimators), run and verified by the TabArena maintainers, 11 October 2026 | all splits: 21st of 92, Elo 1441 (+69 / -79); Lite: 20th of 92, Elo 1426 (+71 / -70); none imputed. Above every tree-based method, tuned and ensembled ones included (intervals overlap default CatBoost and the tuned entries); behind TabICLv2 (1575) and larger foundation models || 55 OpenML-CC18 datasets outside TabArena (at most 1,000 rows, one estimator) | mean AUC 0.911, +0.86 [0.42, 1.40] over CatBoost, +1.8 to +2.1 over LightGBM, XGBoost and random forest || TabArena, 38 classification tasks, official splits, first repeat (our harness), four estimators | mean AUC 0.858, rank 2.50 of 7, behind TabICLv2 (0.864), lower error than CatBoost on 76% of tasks || 13 OpenML datasets of 50,000 to 2.2M rows, 10,000 to 100,000 training rows | mean AUC difference from CatBoost between -0.34 and +0.28 points, intervals include zero |<p align="center"><img src="https://raw.githubusercontent.com/GioOtto/LightPFN/main/docs/assets/tabarena_elo.png" width="100%" alt="TabArena, 38 classification datasets, all splits: Elo with 95% intervals for selected methods; LightPFN is 21st, above every tree-based method" /></p>The leaderboard view is Classification with imputed models excluded: the default view also covers the 13regression datasets, which LightPFN does not support. Full tables, timings and the official TabArena results:[docs/en/RESULTS.md](https://github.com/GioOtto/LightPFN/blob/main/docs/en/RESULTS.md#tabarena-official-leaderboard).## Limitations- Classification only (2 to 10 classes); regression is planned for version 2.- Categorical columns are read as ordinal codes. On tables dominated by high-cardinality categorical columnsCatBoost is ahead; native categorical handling is planned for version 2.- Above 20,000 training rows each estimator reads a stratified subsample (`max_context`).- CPU time grows with the context length; on large tables a GPU is much faster.## Files| File | Content ||---|---|| `model.safetensors`, `config.json` | weights (float32) and architecture of the released model || `provenance.json` | hashes of the weights and of the source checkpoint || `LightPFN_report.pdf` | technical report || `LICENSE`, `NOTICE` | Apache License 2.0 and attribution notice |## Citation```bibtex@techreport{ottoboni2026lightpfn,title = {A Sling Against Giants: {LightPFN}, a 4.6M-parameter tabular in-context classifier designed to stay small},author = {Ottoboni, Giorgio},4 unmodified lines5678910118 unmodified lines2021222324252627282930313233343536373839404142433 unmodified lines47484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211224 unmodified linestags:- tabular- tabular-classification- tabular-regression- in-context-learning- prior-data-fitted-network- foundation-model8 unmodified lines<p><a href="https://github.com/GioOtto/LightPFN"><img alt="Code on GitHub" src="https://img.shields.io/badge/Code-GitHub-181717?style=for-the-badge&logo=github&logoColor=white" /></a><a href="https://pypi.org/project/LightPFN/"><img alt="Package on PyPI" src="https://img.shields.io/pypi/v/lightpfn?style=for-the-badge&logo=pypi&logoColor=white&label=PyPI&color=3775A9" /></a><a href="https://huggingface.co/ueuegio/LightPFN/blob/main/LightPFN15_report.pdf"><img alt="1.5 technical report (PDF)" src="https://img.shields.io/badge/1.5%20Report-PDF-8B1A1A?style=for-the-badge&logo=adobeacrobatreader&logoColor=white" /></a><a href="https://github.com/GioOtto/LightPFN/blob/main/LICENSE"><img alt="License Apache 2.0" src="https://img.shields.io/badge/License-Apache%202.0-2F855A?style=for-the-badge" /></a></p>LightPFN is a family of small tabular foundation models for classification and regression, pretrained only onsynthetic data. `fit` stores the training set as context; `predict_proba`, `predict` and `predict_quantiles`answer in one forward pass, with no training on your data and no hyperparameters to tune. They run on CPU, CUDA,ROCm and, through their own Vulkan kernels, on AMD, Intel and NVIDIA GPUs.Version 1.5 ships two networks in this repository: `classifier/` (4,609,472 parameters) and `regressor/`(4,772,519 parameters). The files at the root are the 1.0/1.1 classifier, still available at its originalrevision.- Code, documentation and training pipeline: [github.com/GioOtto/LightPFN](https://github.com/GioOtto/LightPFN)- Package: [pypi.org/project/LightPFN](https://pypi.org/project/LightPFN/) (`lightpfn==1.5.0` loads theseweights at a pinned commit)- Technical reports: [LightPFN15_report.pdf](./LightPFN15_report.pdf) (1.5) and[LightPFN_report.pdf](./LightPFN_report.pdf) (1.0/1.1)- License: Apache 2.0, code and weights## Usage3 unmodified lines``````pythonfrom lightpfn import LightPFNClassifier, LightPFNRegressorclf = LightPFNClassifier().fit(X_train, y_class) # downloads classifier/ at the pinned commitproba = clf.predict_proba(X_test)reg = LightPFNRegressor().fit(X_train, y_value) # downloads regressor/ at the pinned commitpred = reg.predict(X_test)q = reg.predict_quantiles(X_test, quantiles=[0.1, 0.5, 0.9])````X` can be a NumPy array or a pandas DataFrame with numeric, categorical, string and boolean columns and missingvalues; `cat="auto"` (the default) detects categorical columns. `device="auto"` uses a CUDA or ROCm GPU (fp16 withfp32 retries), else a Vulkan GPU (`pip install "LightPFN[vulkan]"`), else the CPU. The[user guide](https://github.com/GioOtto/LightPFN/blob/main/docs/en/GUIDE.md) covers every option.## Models| | Classifier (`classifier/`) | Regressor (`regressor/`) ||---|---|---|| Task | 2 to 10 classes (more through output coding in TabArena) | regression: mean and 999 quantiles || Parameters | 4,609,472 (B4 trunk + 6,384-parameter categorical adapter) | 4,772,519 (same trunk + quantile head) || Default inference | four estimators, up to 20,000 context rows | two estimators (`y` and `log y` or `-y`), up to 50,000 context rows || Training | 120,000 steps of 64 synthetic tasks (up to 2,048 rows), 15,000 steps up to 60,000 rows, 8,500 steps with tables of 64 to 500 features | fine-tuned from the long-context classifier: 39,063 steps on the `r2` regression prior, then 5,000 steps up to 60,000 rows || Not used in training | real datasets, distillation, weights or outputs of other tabular foundation models | same |## EvaluationThe official TabArena leaderboard ranks LightPFN 1.0/1.1: 21st of 92 on the 38 classification datasets as of11 October 2026, Elo 1441 (+69 / -79), above every tree-based method. Version 1.5 has no official entry yet; theauthor-run TabArena-Lite results below use the first split only and the hosted baselines.| Measurement (1.5) | Result ||---|---|| TabArena-Lite classification, 38 datasets, RTX 5090 | Elo 1436 (+74 / -65), 34th of 115; LightPFN 1.1 1423, CatBoost 1341 default, 1387 tuned || TabArena-Lite regression, 13 datasets, RX 7900 XT | Elo 1450 (+107 / -103), 54th of 111; CatBoost 1416 default, 1526 tuned || 23 OpenML regression datasets outside TabArena | lower RMSE than default CatBoost on 22 of 23 || 6 high-cardinality categorical datasets, 10,000 rows | mean AUC 0.708 (1.1: 0.705, default CatBoost: 0.703) || 9 OpenML datasets with more than 100 features (wide-table fine-tuning) | log loss -0.048 [-0.108, -0.004] against the classifier before fine-tuning || GPU speed, 8 tasks, same RTX 5090 | 1.89x faster training and 2.04x faster prediction than 1.1 |Full tables and protocols: [docs/en/RESULTS.md](https://github.com/GioOtto/LightPFN/blob/main/docs/en/RESULTS.md)and the [1.5 report](./LightPFN15_report.pdf).## Limitations- In regression, larger foundation models (Kumo-Tabular, Seldon, TabICLv2) are clearly ahead.- Above 20,000 (classification) or 50,000 (regression) training rows each estimator reads a subsample.- Pretraining saw at most 100 features; the classifier was then fine-tuned up to 500, the regressor was not.- CPU time grows with the context length; on large tables a GPU is much faster.## Files| File | Content ||---|---|| `classifier/model.safetensors`, `classifier/config.json` | 1.5 classifier (float32) || `regressor/model.safetensors`, `regressor/config.json` | 1.5 regressor (float32) || `model.safetensors`, `config.json` | 1.0/1.1 classifier || `provenance.json`, `provenance_1.5.json` | hashes of the 1.0/1.1 and 1.5 weights and of their source checkpoints || `LightPFN15_report.pdf`, `LightPFN_report.pdf` | technical reports of 1.5 and 1.0/1.1 || `LICENSE`, `NOTICE` | Apache License 2.0 and attribution notice |## Citation```bibtex@techreport{ottoboni2026lightpfn15,title = {{LightPFN} 1.5: Native categoricals, quantile regression, wide tables, and fast portable inference under 5 million parameters},author = {Ottoboni, Giorgio},year = {2026},url = {https://github.com/GioOtto/LightPFN/blob/main/paper/LightPFN15_report.pdf}}@techreport{ottoboni2026lightpfn,title = {A Sling Against Giants: {LightPFN}, a 4.6M-parameter tabular in-context classifier designed to stay small},author = {Ottoboni, Giorgio},
123456789101112131415161718192021222324252627282930313233343536{ "package_version": "1.5.0", "license": "Apache-2.0", "weights_format": "safetensors", "dtype": "float32", "weights_revision": "00a2536cfd76dbac121e63b1da99b580c2be67c3", "classifier": { "folder": "classifier/", "source_checkpoint": "cls_wide/ema_step008500.pt", "source_checkpoint_sha256": "3d4e30b4332137669d1be3e8da327054fa549e30528d7efa4bb9cbf46b4ab3f6", "parameters": 4609472, "hashes": { "config.json": "e7059e593289868a17d6ffba1b959903c8b6c537affd30a6bef51d4620e1cb1c", "model.safetensors": "9a51d4bcbb3cc2a5f007e8bf4d511edc5daa958bd6204afa43432d18e8d84f5f" } }, "regressor": { "folder": "regressor/", "source_checkpoint": "reg_long/ema_step005000.pt", "source_checkpoint_sha256": "0fa9057bbfccdbb5d0c17a1d6b18df694eee08ee9a901abf3fef0a1791cd81ac", "parameters": 4772519, "hashes": { "config.json": "928662a44bbcf7970d2fe5635f76b695ed14590738d1c6dc281d48dd0bd21e02", "model.safetensors": "6508e799fa87f40d931cd45b3bb553585c0d6bcb164f3b15ffba771e8815fed5" } }, "roundtrip": "bitwise identical tensors to the EMA checkpoints; bit-exact package predictions from checkpoint and safetensors", "torch_version": "2.13.0+rocm7.2", "numpy_version": "2.5.2", "report": "LightPFN15_report.pdf", "source_repository": "https://github.com/GioOtto/LightPFN", "package": "https://pypi.org/project/LightPFN/1.5.0/", "hashes_report": { "LightPFN15_report.pdf": "9177dd7497007e997c152f6f80b03381d0695e360fa925759b4a29fdf3d6f159" }}.gitattributes+1
LightPFN15_report.pdfAdded+3
README.md+57-40
provenance_1.5.jsonAdded+36