TabICLv2 energy fine-tuning
probability density estimation for tabular data
2 min readupdated
A set of fine-tuned versions of the TabICLv2 tabular classifier (based on the tabicl-classifier-v2-20260212.ckpt checkpoint from jingang/TabICL) along with linear probes for analyzing the model's internal representations. The authors fine-tuned the model so that its energy function matches the logarithm of the data distribution probability density given the context. This allows using the tabular model not only for classification but also to evaluate how typical or anomalous new table rows are relative to the training set. The release will be useful for researchers and ML engineers working with tabular data and the generative capabilities of base models.
Key features
- Seven checkpoint variants: models trained with different objective functions — NCE (Noise Contrastive Estimation), DSM (Denoising Score Matching), their combination, and a baseline variant with cross-entropy (CE) only.
- Built-in linear probes (ridge readout) in
.npzformat: read the log probability density directly from the residual stream after the 8th block, adjusted for the number of features and context size. - Full compatibility with the pre-training scheme of the original
TabICLClassifierfrom thetabicllibrary. - Training of all model parameters on synthetic tables from the TabICL MLP SCM prior distribution (from 2 to 100 continuous features, 128–1024 rows, up to 10 classes).
What you can do
- Use the fine-tuned checkpoints as a standard tabular data classifier via
TabICLClassifier. - Compute the energy of new table rows relative to the context to evaluate data plausibility or detect outliers.
- Extract the log feature distribution density and the joint probability of features with the class using the included linear probes and code from
tfmgen.
Example
from tabicl import TabICLClassifier
clf = TabICLClassifier(
model_path="checkpoints/tabicl-nce-40k.ckpt",
allow_auto_download=False
).fit(X_train, y_train)Read more
DetailsTraining: 3 epochs, learning rate 1e-5, batch size of 32 datasets per step, training set volume of 10,240 or 40,960 synthetic tables.
Probe limitations: each
probes/.npz file works only with its corresponding weight pair (tabicl-base.npz is intended for the base TabICLv2 checkpoint).Compatibility: the standard
tfmgen.density.ProbeDensity class from PR #6 expects a single-component vector and always loads the base model, so it does not read these files directly.









Comments