/ Модель

Характеристики

Лицензия
Apache 2.0
Библиотека
pytorch
Опубликована
3 ноя 2026

minipfn-tabpfn-v2-classifier

Классификация таблицTable → label3 профессии

Независимая реализация TabPFN v2 для классификации небольших табличных наборов данных с числовыми и категориальными признаками.

373скачиваний за 30 дней0лайковвеса обновлены10 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Это независимая реализация классификатора TabPFN v2 с нуля, опубликованная Aiden Jeon. Модель использует трансформер с чередованием внимания по признакам и строкам; в ней около 7,24 млн параметров, 12 слоёв и 6 голов внимания. Это не официальный чекпойнт TabPFN v2 и не использует его код или веса.

Модель предназначена для классификации небольших табличных наборов данных с числовыми и категориальными признаками: принимает до 10 классов, а обучение охватывало таблицы до 160 признаков и 2 048 обучающих строк. При выводе используется ансамбль из четырёх участников с преобразованиями признаков и строк. В README приведены результаты на 29 наборах AMLB и сравнение с опубликованными результатами TabPFN v2.

Репозиторий содержит веса в формате safetensors и распространяется по лицензии Apache-2.0. Классификация — единственная поддерживаемая здесь задача; для регрессии указана отдельная модель. Результаты на наборе philippine заметно уступают статье, а оценки некоторых наборов меняются между чекпойнтами; README также описывает нестабильность обучения и резкие всплески внимания отдельных голов к одной строке.

Сценарии применения

  • Классификация небольших табличных наборов данных
  • Предсказание классов по числовым и категориальным признакам
  • Оценка вероятностей классов для таблиц с малым числом обучающих строк
  • Сравнение качества табличной классификации с TabPFN v2

Ограничения

Модель предназначена только для классификации; для регрессии нужен отдельный чекпойнт. На наборе philippine результаты заметно ниже опубликованных для TabPFN v2, оценки на некоторых наборах меняются между чекпойнтами, а обучение сопровождалось резкими коллапсами потерь и концентрацией внимания отдельных голов на одной строке.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

minipfn TabPFN v2 classifier (reproduction)

A from-scratch reimplementation of the TabPFN v2 classifier (Hollmann et al., Accurate predictions on small data with a tabular foundation model, Nature 637, 2025). The model and inference follow the paper's Methods, and the training data come from the open TabICL prior. Code: Aiden-Jeon/minipfn (model src/minipfn/models/cell_transformer.py, training settings src/minipfn/recipes/tabpfn_v2.py).

This is not the official TabPFN v2 checkpoint, and it uses no official code or weights. For the official models see PriorLabs/TabPFN.

Model

  • Architecture: TabPFN v2 Transformer with 7,244,746 parameters:
    • 12 layers, emsize 192, 6 heads, MLP 4× emsize
    • each layer runs attention across features, then across rows
    • post-LayerNorm without affine parameters
    • each token holds 2 features
  • Inputs: up to 10 classes, any number of features and rows. Training covered up to 160 features and up to 2,048 training rows.
  • Prior: the TabICL graph SCM prior (soda-inria/tabicl), with the paper's table-size rules on top:
    • training rows uniform in 1–2,048, plus 128 held-out rows
    • Beta(0.95, 8.0) features scaled to 1–160
    • fewer than 75,000 cells per table
    • in 30% of the tables, values go missing at random at a rate of 0–30%
  • Inference (paper defaults): an ensemble of 4 members. Each member shuffles features and classes and adds a random row-identifier column. Members alternate between quantile features plus SVD components and a Yeo-Johnson power transform. Categorical columns with at most 20 categories are one-hot encoded in every member (one_hot="all", the default), as long as the table stays within 160 columns. Softmax temperature is 0.9.

Training

  • 500,000 steps, batch 64 tables.
  • Adam at lr 2e-4, with 10k warmup steps and a cosine schedule over 2M steps. Training stopped at 500k, where the lr was still 1.7e-4.
  • bf16, gradient clipping 1.0.
  • Compute: 8×H100 for steps 0–300k and 16×H100 for 300k–500k. About 35 hours of wall-clock time, roughly 370 H100-hours.
  • The loss collapsed suddenly 4 times. Each time, an automatic guard rewound to a healthy state saved 2k–4k steps earlier and resumed on fresh data.

Figures and numbers on this card come from the weights in this repo (sha256:8642571d2504, the first 12 hex digits of the SHA-256 of model.safetensors). It was trained in 100k-step chunks, each resuming the previous one. Train CE is the mean over 1,000 steps; every step samples new prior tables. Val CE is computed on 64 fixed prior tables every 5,000 steps. Final val CE is 0.740.

Training curves

Results

The benchmark is the paper's 29 AMLB classification datasets. Each score is the mean ROC AUC over the 10 OpenML folds. Paper values come from Supplementary Table 1 (TabPFN v2, default settings). All figures use the default inference settings (one_hot="all"). The last column keeps categorical columns as ordinal codes (one_hot="off"); only the 9 datasets with categorical columns differ.

CheckpointMean ROC AUCWith one_hot="off"
100k steps0.91750.9169
200k steps0.92250.9222
300k steps0.92080.9203
400k steps0.91970.9196
500k steps (this model)0.92380.9235
Paper0.9323

Benchmark ROC AUC by step

Most of the gap comes from a few datasets:

DatasetGap
philippine (5,832 rows × 308 features)−0.105
GesturePhaseSegmentationProcessed−0.047
wine-quality-white−0.025

Without philippine, GesturePhaseSegmentationProcessed, wine-quality-white, kc1 and first-order-theorem-proving, the mean gap is −0.002.

ROC AUC per dataset

Limitations

  • philippine stays about 0.10 below the paper at every checkpoint from 100k to 500k. Two inference-time checks did not change it: capping the columns each ensemble member sees (500, 300 or 160) and capping its training rows (4,096 or 2,048). The cause is unknown.
  • Behavior can shift between checkpoints. On mfeat-factors, the 300k and 400k checkpoints score 0.94 on all 10 folds; 200k and 500k score 1.00.
  • Row attention grows sharp during training. Some heads come to put nearly all their weight on a single row (an attention sink). This is the likely source of the collapses that the guard rewound.
  • Classification only. The regressor is a separate model: aiden-jeon/minipfn-tabpfn-v2-regressor.

Usage

uv pip install "minipfn @ git+https://github.com/Aiden-Jeon/minipfn"
from minipfn import TabPFNv2Classifier

# downloads aiden-jeon/minipfn-tabpfn-v2-classifier
# x_train can be a pandas DataFrame with categorical columns
clf = TabPFNv2Classifier().fit(x_train, y_train)
proba = clf.predict_proba(x_test)  # (n_test, n_classes), columns in clf.classes_ order

fit does not train weights. It fits each ensemble member's preprocessing on the training rows, which then serve as context at prediction time. To reproduce the benchmark (downloads the OpenML tasks):

uv run python scripts/tabpfn_v2/eval.py --suite classification \
  --classifier-path hf://aiden-jeon/minipfn-tabpfn-v2-classifier

Add --one-hot off,power,all to also score the other one-hot modes. The headline numbers stay those of the default mode.

Intermediate checkpoints

The checkpoints from the Results table are kept as branches of this repo. Each branch holds the weights, config and a short README that points back here; this card on main describes all of them.

BranchWeightsMean ROC AUC
step-100ksha256:52d1a1cbdfa70.9175
step-200ksha256:cba2d1645afc0.9225
step-300ksha256:8921c9aa5e010.9208
step-400ksha256:a0e20b9187100.9197
main (500k)sha256:8642571d25040.9238
clf = TabPFNv2Classifier("aiden-jeon/minipfn-tabpfn-v2-classifier@step-100k")

In the benchmark script, write the branch after @: --classifier-path hf://aiden-jeon/minipfn-tabpfn-v2-classifier@step-100k.

Files

  • model.safetensors: weights
  • config.json: model size (CellTransformerConfig fields) and task
  • images/: figures used in this card

License

Apache-2.0. The training data were generated with the TabICL prior (BSD-3-Clause); no TabICL code is included here.

Citation

@article{hollmann2025tabpfn,
  title   = {Accurate predictions on small data with a tabular foundation model},
  author  = {Hollmann, Noah and M{\"u}ller, Samuel and Purucker, Lennart and Krishnakumar, Arjun and K{\"o}rfer, Max and Hoo, Shi Bin and Schirrmeister, Robin Tibor and Hutter, Frank},
  journal = {Nature},
  volume  = {637},
  pages   = {319--326},
  year    = {2025},
  doi     = {10.1038/s41586-024-08328-6}
}

@inproceedings{qu2025tabicl,
  title     = {{TabICL}: A Tabular Foundation Model for In-Context Learning on Large Data},
  author    = {Qu, Jingang and Holzm{\"u}ller, David and Varoquaux, Ga{\"e}l and Le Morvan, Marine},
  booktitle = {International Conference on Machine Learning},
  year      = {2025}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · pytorch

Нельзя запустить

Табличные модели пока не поддерживаются рантаймом.

Ревизия весов
8489e55

0 моделей