Real-Time Explanations for Tabular Foundation Models
Paper • 2603.29946 • Published
ShapPFN is a foundation model for tabular data that integrates Shapley value regression directly into its architecture, producing both predictions and explanations in a single forward pass. On standard benchmarks, ShapPFN achieves competitive performance while producing high-fidelity explanations ($R^2 \approx 0.96$, cosine $\approx 0.99$) over 1000x faster than KernelSHAP.
ShapPFN combines several key components:
base and per-feature contributions.To use the code and the model from the official repository, you can install it via:
pip install -e .
The official repository provides scripts for various tasks:
bash scripts/generate_data.shbash scripts/train_shappfn.shbash scripts/eval_openml.sh (OpenML suite) and bash scripts/eval_shap.sh (KernelExplainer comparison)