FinTFM: A Synthetic-Data Tabular Foundation Model for Credit Risk
FinTFM is a tabular foundation model for corporate credit risk, pretrained only on synthetic data, and it loses to gradient boosting on real credit panels. On the full V4FinBench panel the zero-shot model scores 0.1986 mean average precision (AP) against 0.4005 for CatBoost at library defaults. I submitted it to TabArena, and a TabArena collaborator closed the pull request on 2026-11-19, citing competitiveness and protocol. Version 1.0.0, released the same day, is the final release, and active development has stopped.
What remains is a public repository, three checkpoints and a numbered log of 306 measurements, each with its conditions. Every figure below comes from that log (docs/results/FINDINGS.md), with the entry (§N) beside it.
In short
- On the full V4FinBench panel the zero-shot model scores 0.1986 mean AP against 0.4005 for CatBoost at library defaults, so it loses to gradient boosting on real credit panels.
- The model is pretrained on synthetic tasks only and predicts new rows in one forward pass; cell attention (+0.0520 mean AP), partitioned contexts (+0.0375) and out-of-fold target encoding were the changes that held up.
- The checkpoint is binary-only, takes at most 136 features and comes from one seed; version 1.0.0 is final and the TabArena pull request was closed on 2026-11-19.
- If you are evaluating a new model, the section straight after the credit-risk rationale turns the postmortem into six checks; the main one is to run a matched control before trusting a gain.
What a tabular foundation model is
A gradient-boosted tree is trained afresh on every table you give it. A tabular foundation model is a neural network trained once, on a very large number of generated tables, to answer one question: given these labelled rows, what is the label of this new row? At use you pass your own labelled rows to the network as context, together with the rows you want scored, and it predicts them in a single forward pass. Nothing about your table is written into the weights.
In FinTFM, fit() takes no gradient steps by default and does no per-dataset tuning. The idea comes from TabPFN (Hollmann et al.) and TabICL (Qu et al.). No code or weights from either project are used in FinTFM.
Why a tabular foundation model for credit risk
Credit risk is a hard setting for this idea. Defaults are rare: V4FinBench has positive rates between 0.19% and 0.36%. Tables are wide. Regulated users want to know what a model was trained on, which is why I chose synthetic-only pretraining: a model that never saw a real table cannot have memorised a benchmark. The cost is that it learns real credit data only through a generator I wrote.
Lessons that transfer
Six checks apply to any new tabular model, whatever its architecture.
- Test that the input matters before tuning anything. An early version of FinTFM ignored its context: shuffling the context labels left predictions almost unchanged (rank correlation 0.977), and AUC was higher with random labels than with true ones. Shuffling the labels takes minutes, and doing it first would have saved four experiments.
- Use several seeds, and know your noise floor. A single-seed sweep gave a +0.008 gain that three seeds erased (§38). A 10-times training-volume result of -0.0106 sits inside the 0.0117 mean AP seed-noise yardstick. Treat a difference smaller than the yardstick as no result.
- Add a matched control that uses none of the model. A decision tree with a logistic regression per leaf, described under the TabArena submission below, matched the TabArena entry on binary tasks, so the Elo said nothing about the representation.
- Check probability levels, not only ranking. A term-structure path that skipped its base-rate correction made out-of-time default probabilities 27 times too high. AUC and the coherence check could not see it, because every prediction inflated alike. The mean prediction was in the output file but never printed; report it beside the observed rate.
- Check a cheap screening score against the real task. Held-out synthetic AUC ranked a 16-layer model below a 4-layer one, while the five-fold credit protocol ranked it above. Across the project the screening signal agreed with the real measurement once in four checks, so candidates are now scored on the credit protocol directly.
- Read the baseline's settings and the benchmark's own paper. LightGBM scores 0.2666 mean AP at defaults with 100 trees and 0.3908 at 1,000 trees (§167), so an under-trained baseline moves the gap more than most model changes do. Three of eight early candidate claims were superseded or retracted after reading one paper and running one comparison.
The prior: what the model is pretrained on
The model is pretrained on tasks sampled from generators, called priors, in src/fintfm/prior/.
- Financial prior. A structural story, not a random network. It samples a macro regime, a sector mix and a company scale, then accounting quantities that obey identities such as assets equal to debt plus equity. A latent distress score combines leverage, profitability, liquidity, growth and macro pressure with random weights and a random nonlinearity. The default label is a Bernoulli draw whose base rate is itself sampled, up to 30%. The floor is two expected defaults per task, so a 1,024-row task can reach about 0.2% and no task goes below 0.1%. Width comes from a family of derived ratios, as in the Polish bankruptcy panel's 64 columns.
- Structural causal model (SCM) prior. A random-graph prior in the style of TabPFN and TabICL, for general nonlinear and multiclass structure.
- Tree prior. Ensembles of oblivious decision trees, for axis-aligned structure. It is off by default.
The model and training setup
The network is a Transformer written from scratch. Each cell is embedded with a random per-task column identity, so columns are distinguishable without a positional embedding, which would break invariance to column order. The published checkpoint also uses a cell-attention block with per-cell labels: cells attend across rows within one feature, then columns attend to each other within a row, then pooled rows attend to the context rows.
The published binary checkpoint, v4-cellattn-labels.pt, has 885,650 parameters (d_cell 48, d_model 128, 4 layers, 2 column layers), takes binary targets with up to 136 features, and is Apache-2.0 (docs/models/fintfm-binary.md). It was trained on the financial prior alone (--p-financial 1.0) for 6,000 steps at batch size 8, which is 48,000 tasks, with seed 0 on a T4. It is one seed and a small model; larger and longer-trained variants did not help (table below).
Two inference details mattered. First, categorical columns are encoded as out-of-fold smoothed target statistics (the naive form leaks a row's own label), because the model reads every cell as an ordered number, and label encoding imposes an arbitrary order on unordered categories. Switching to target statistics raised mean ROC-AUC on 27 TabArena binary datasets by 0.0181 (§101). Second, an optional hazard head, unused by the published checkpoint, outputs a cumulative default-probability term structure that is monotone by construction, which one model per horizon is not: on the Polish 3-year panel, 47.8% of horizon steps fall and none of 3,151 firms gets a monotone curve (§228, query rows kept out of the context).
How I evaluated it
Each evaluation uses a stated split and baseline, and the log labels every number as measured, smoke-test, simulated or estimated.
Real credit panels: V4FinBench
V4FinBench (Kostrzewa et al.) is a corporate bankruptcy benchmark. I reimplemented its published five-fold protocol, using the released fold indices. The full horizon-0 panel has 1,000,087 rows, 130 features and 3,587 positives. Boosters are untuned except where the table says otherwise, and AP is the metric because its chance level is the prevalence, while that of the area under the ROC curve (ROC-AUC) is 0.5 at any prevalence. Mean of five per-fold APs:
| Method | Mean AP, 5 folds | Conditions |
|---|---|---|
| CatBoost | 0.4005 | library defaults, 1,000 iterations |
| LightGBM | 0.3908 | 1,000 trees, learning rate 0.05 |
| LightGBM | 0.2666 | defaults, 100 trees (under-trained) |
| FinTFM, partitioned contexts | 0.2362 | zero-shot, depth-2 tree, 2,000-row context per leaf |
| XGBoost | 0.2229 | defaults, 100 trees (under-trained) |
| FinTFM, fine-tuned | 0.2062 | 200 AdamW steps per fold, opt-in |
| FinTFM, zero-shot | 0.1986 | published checkpoint, default settings |
| Logistic regression | 0.1614 | untuned |
The zero-shot model is ahead of untuned logistic regression on every fold, and about 0.20 mean AP behind CatBoost. LightGBM at 1,000 trees comes within 0.0097 of CatBoost, so the lead belongs to boosting rounds and not to one library. One caveat applies to every booster number: the benchmark keeps a column, operational_status, worth 0.0343 mean AP to CatBoost (0.3662 without it). I have not measured FinTFM's sensitivity to it.
Fine-tuning was the first lever to move this benchmark: +0.0076 mean AP, better on 5 of 5 folds, closing 3.8% of the gap to CatBoost. It is no longer zero-shot, as it has seen the training rows through gradients. Partitioned contexts gave +0.0375 with no training, on 5 of 5 folds.
Four more credit datasets, and an out-of-time split
A second suite, used for evaluation only, ran three fixed splits per dataset with one seed and no paired test (§216). FinTFM is below untuned logistic regression on mean AP on all four: ULB card fraud 0.6830 against 0.7489 (test positive rate 0.173%), SBA 7(a) 0.1095 against 0.1295 (3.9% to 4.4%), FDIC bank failures 0.1688 against 0.1906 (0.052% to 0.735%), and Estonia 0.0028 against 0.0056 (0.027% to 0.035%). LightGBM at 1,000 trees scores 0.6751, 0.3861, 0.1783 and 0.0028 on the same four. The splits are out of time except for ULB, whose two-day capture allows only stratified splits. On FDIC the three splits disagree on the ranking, so those means are not distinguishable. The Estonia label is survivor-conditioned, so it is not a measure of bankruptcy skill. On ULB the model over-predicts the fraud rate 1.2 to 1.7 times (§174).
On an out-of-time split of V4FinBench that I designed (training years to 2016, test from 2017), per-horizon logistic regression trained on all 72,622 rows leads FinTFM on mean AUC, 0.8616 to 0.8143, and on expected calibration error, 0.0015 against 0.0072 (prototype context, three seeds, §38). That split had 5,714 firms on both sides, which inflated out-of-time AUC by 0.01 to 0.04. With firms separated and a six-year label embargo, logistic regression still leads, 0.817 to 0.791 for the hazard-head model, whose training pool shrinks to 20,351 rows (§229). Both runs predate the cell-attention architecture, so they are a direction, not a final figure. On four earlier panels (Polish at three horizons, Taiwan) the pre-cell-attention model had best or near-best expected calibration error, but on one 70/30 split per panel (§73), and I do not claim it for the published checkpoint.
Synthetic probes with a known answer
These probes have a closed-form ceiling of 0.9 ROC-AUC. With true context labels the published checkpoint and a pure-SCM checkpoint score 0.899 and 0.900. Shuffled labels give about 0.5, and inverted labels give 0.100 and 0.101. So the model reads its context on synthetic tasks; on real panels the evidence is the V4FinBench table.
Ablation: cell attention
The original architecture capped discrimination whatever the task's true difficulty, and a cell-attention block raised it. Retrained at a matched prior and protocol (seed 0, 48,000 tasks, p_financial 1.0), the block and its labels are worth +0.0520 mean AP on V4FinBench (0.1947 against 0.1428), higher on 5 of 5 folds, each significant on a company-level bootstrap. Three seeds of the published recipe score 0.1947, 0.1858 and 0.1845 mean AP, and the seed-noise yardstick is 0.0117 mean AP, so the gain is well clear of it.
The TabArena submission
TabArena is an external benchmark with its own splits, metric and leaderboard, run under a harness I did not write. I submitted twice.
The first submission (autogluon/tabarena#616, 2026-09-25) was the zero-shot model on 27 binary datasets. It scored mean ROC-AUC 0.7823 with no failures and ranked 94th of 95. A collaborator confirmed the integration and numbers, declined the entry on competitiveness and ruled binary-only coverage ineligible. I withdrew it before a full run (§122).
The second was a different entry, "FinTFM with a trained linear readout": a logistic regression (ridge for regression) fitted on the network's representation of each training split, over all 51 TabArena-Lite datasets with none excluded. TabArena-Lite uses one fold per dataset, and I ran it in my own fork. Reproduced from the pull-request branch, it scored 1,022.6 Elo (+75 / -87; TabArena's Elo-style rating), 108th of 119 methods, against RandomForest (default) at 1,000.0 (§304). Posted as autogluon/tabarena#736, it was closed by a TabArena collaborator at 17:28 UTC on 2026-11-19, the day it was posted, with one comment and no maintainer run (§306). The comment gave two grounds, either sufficient:
- Competitiveness. 1,022.6 Elo is inside the interval of RandomForest (default), below every tuned tree ensemble and MLP, and about 320 Elo below CatBoost (default) at 1,340.5. In the comment's words, an entry at the level of the default random forest "would not add information to the leaderboard".
- Protocol. The readout chose its regularisation by cross-validation on the training rows, while a model submission must make such choices on the validation split TabArena passes.
Both grounds were disclosed in the pull request, including the cross-validation deviation. The 1,000 Elo bar that the entry cleared was my own estimate of what TabArena would accept, not a threshold TabArena stated. The comment adds that a resubmission is welcome if the method is accepted at a peer-reviewed venue, and that the Lite numbers remain a valid comparison. The method has not been published at a venue.
The matched control matters more than the rank. A decision tree with a logistic regression per leaf on the raw features, using none of the network's representation, scores 1,009 Elo on binary tasks against 997 for an earlier version of the entry. The representation is better on 24 of 30 binary datasets (p < 0.01), so the binary Elo is not evidence for FinTFM's representation (§239). On regression it is the other way round: the control scores 537 against 689 for that version, worse on 12 of 13 datasets (§240).
What worked and what did not
Apart from cell attention, partitioned contexts and the encoding above, the levers I measured did nothing or made things worse:
| Lever | Result |
|---|---|
| Parameter scale | -0.0049 mean ROC-AUC on 27 TabArena binary datasets at 5.7 times the parameters on matched task volume, null (§114) |
| Training volume | -0.0106 mean AP at 10 times the tasks, over two seeds, 9 of 10 folds negative, inside the 0.0117 noise yardstick (§188) |
| Muon optimiser | -0.0125 mean AP at 48,000 tasks, 0 of 5 folds positive (§211) |
| Depth, 16 layers against 4 | +0.0019 and +0.0000 mean AP on V4FinBench at two learning rates, batch size 2, null (§124, §126) |
| Tree prior | +0.0094 mean ROC-AUC on general tabular data, -0.0221 AP on credit; ships off (§115, §116). A later matched-share comparison gave +0.0119 AP at one seed (§166) |
| Real-data pretraining (FinTFM-R) | null on V4FinBench mean AP at a 30% real share: EDGAR -0.0019 and -0.0029 at two seeds, SBA -0.0355 and +0.0024; no checkpoint published (§160, §161) |
| Lagged deltas for LightGBM | AP lower on 3 of 3 folds of a 200,000-row V4FinBench sample, so the case for a temporal prior fell as measured (§246) |
The postmortem file records what went wrong in my process. In one entry, a verdict that a readout per partition leaf harmed V4FinBench (-0.0570 mean AP) was a sampler defect in my harness (§218); with the fix it was +0.0580 on 5 of 5 folds (§230). My README has been wrong about its own results at least three times (§107, §112, §225), each corrected in place.
Install and use
fintfm 1.0.0 is on PyPI: released on 19 November 2026, Apache-2.0, for Python 3.12 or later, and classified as inactive. The checkpoint is a separate artifact on Hugging Face and is ungated.
pip install fintfm huggingface_hub
The estimators follow scikit-learn.
from huggingface_hub import hf_hub_download
from fintfm.inference import FinancialTFMClassifier
ckpt = hf_hub_download(
"kabartay/fintfm-binary",
"v4-cellattn-labels.pt",
# the weights every published binary number used
revision="f116bfd43a2b15c65ed3551ea8c38e3364629ddc",
)
clf = FinancialTFMClassifier(ckpt, device="cpu")
clf.fit(X_train, y_train) # stores context; no training
pd_estimates = clf.predict_proba(X_test)[:, 1]
Encode categorical columns first with fintfm.inference.categorical.CategoricalTargetEncoder. A FinancialTFMRegressor exists, and the README covers the multiclass and regression checkpoints, but only binary is declared as a supported problem type (§121).
Limits, and where this leaves it
This is a research codebase, not a product. The checkpoint is binary-only, takes at most 136 features, and comes from one seed and 48,000 tasks. It loses to gradient boosting on real credit panels and is below untuned logistic regression on four other credit datasets; the matched control says the binary TabArena Elo does not support the representation. What I can offer is the numbered log, the claims ledger (each claim marked surviving, single draw, superseded, retracted or open) and a model whose training data contains no real table. The repository stays public, and I am not planning further training or a resubmission.
Sources
- FinTFM repository: README,
docs/results/FINDINGS.md(§ numbers above),docs/paper/CLAIMS.md,docs/paper/NEGATIVE_RESULTS.md,docs/results/POSTMORTEM.md,docs/models/fintfm-binary.md,docs/competition/PR_2026-11.md - fintfm on PyPI (1.0.0)
- kabartay/fintfm-binary on Hugging Face
- autogluon/tabarena#736
- V4FinBench, Kostrzewa et al.
- TabPFN, Hollmann et al.
- TabICL, Qu et al.