epicl / README.md
PotoSacho's picture
Model card: arXiv reference and tags
5d862a6 verified
|
Raw History Blame Contribute Delete
5.06 kB
---
license: other
license_name: openmdw-1.1
license_link: LICENSE
library_name: epicl
pipeline_tag: tabular-regression
base_model: nvidia/Kumo-Tabular
tags:
- tabular
- tabular-regression
- tabular-foundation-model
- tfm
- etfm
- in-context-learning
- uncertainty-quantification
- epistemic-uncertainty
- full-bayesian
- posterior
- joint-prediction
---
# EpICL
EpICL is a tabular foundation model for regression that predicts a **posterior over P(Y | X)**, the law of the label
given the features. From your training rows, it does not return one estimate of this law but a distribution over what
the law can be. This gives a **joint** predictive law over many test rows, and the split of each row's uncertainty into
its **epistemic** and **aleatoric** parts. It learns in context: it conditions on your training rows in one forward
pass, with no training or tuning.
It keeps the trunk of [Kumo-Tabular](https://huggingface.co/nvidia/Kumo-Tabular) frozen and retrains a copy of its last
two in-context layers to output a Student-t process over the test rows, in a space warped row by row. The latent models
(EpICL-Lat) mix such processes through a latent variable (32 draws by default, `n_draws`).
Paper: *EpICL: Epistemic Tabular Foundation Models for Full Bayesian Inference*
([arXiv:2612.04473](https://arxiv.org/abs/2612.04473)).
Code: [ElSacho/EpICL](https://github.com/ElSacho/EpICL).
## Usage
```bash
pip install epicl
```
```python
from epicl import EpICLRegressor
model = EpICLRegressor().fit(X_train, y_train) # EpICL L; downloads its weights once
mean = model.predict(X_test)
lo, hi = model.predict_interval(X_test, coverage=0.9) # where a new label will fall
f_lo, f_hi = model.predict_mean_interval(X_test, coverage=0.9) # where E[y | x] itself lies
f_q = model.predict_mean_quantiles(X_test, (0.05, 0.5, 0.95)) # any quantiles of E[y | x], shape (len(X_test), 3)
sigma_e = model.predict_epistemic(X_test) # reducible: shrinks with more rows
sigma_a = model.predict_aleatoric(X_test) # irreducible noise
draws = model.sample_joint(X_test, n_samples=1000) # joint draws, shape (1000, len(X_test))
ll = model.joint_logpdf(X_test, y_test) # joint log-likelihood of the test labels
```
| Model | Code | Download |
|---|---|---|
| EpICL L | `EpICLRegressor()` | 0.94 GB |
| EpICL S | `EpICLRegressor(size="small")` | 0.13 GB |
| EpICL-Lat L | `EpICLRegressor(latent=True)` | 0.94 GB |
| EpICL-Lat S | `EpICLRegressor(size="small", latent=True)` | 0.13 GB |
`n_estimators` (by default 16 for a large model, 8 for a small one) ensembles that many views of the table through
Kumo-Tabular's preprocessing recipe, as Kumo-Tabular ensembles its estimators (the paper reports 1 and 16).
`KumoEpiRegressor` (same parameters) keeps Kumo-Tabular's marginals and EpICL's dependence and split, through a
copula: the paper's KumoL-Epi. Kumo-Tabular's weights are in this repository. `EpiCopulaRegressor` attaches the same
dependence and split to the predictive quantiles of any other model.
## Files
| File | Content |
|---|---|
| `kumo-large.safetensors`, `kumo-small.safetensors` | Kumo-Tabular L and S's regressors as released by NVIDIA (revision v1.0.0), unchanged. |
| `epicl-large/`, `epicl-small/`, `epicl-lat-large/`, `epicl-lat-small/` | Each model's retrained part (`model.safetensors`: the last two in-context layers, norm and head, and for the latent models the map of the latent variable; 19.2 M parameters on L, 4.9 M on S) and its settings (`config.json`). |
Only the files of the model you pick are downloaded. Kumo-Tabular's weights are stored here, so this release keeps
working whatever later happens to the upstream repository.
## Licence
These weights contain NVIDIA's Kumo-Tabular weights, released under the OpenMDW License 1.1, and are distributed
under the same licence (see `LICENSE`).
## Limitations
- Classification is not optimal: the models are trained for regression. For class labels, EpICL's copula can be
attached to any classifier's probabilities (see the classification notebook of the code repository).
- Categorical columns are coded as ordinal codes. Missing values are handled as in Kumo-Tabular.
- Conditioning on the training rows is exact, cubic in their number: fine up to about 10 000 rows. Beyond,
`EpICLRegressor(rff=1024)` makes it linear through random Fourier features, at the price of an approximate kernel.
- `sample_joint` builds a dense covariance over all the rows it is given: a few thousand rows at most.
- The epistemic / aleatoric split is a model estimate: see the paper for how well it is calibrated, depending on the
number of training rows.
## Citation
```bibtex
@article{braun2026epicl,
title = {{EpICL}: Epistemic Tabular Foundation Models for Full {Bayesian} Inference},
author = {Braun, Sacha and Jordan, Michael I. and Bach, Francis and Holzm{\"u}ller, David},
journal = {arXiv preprint arXiv:2612.04473},
year = {2026}
}
```