nanoTabPFN: A Lightweight and Educational Reimplementation of TabPFN

Alexander Pfefferle, Johannes Hog, Lennart Purucker, Frank Hutter
11/5/2025
cs.LG

Official code: automl/nanoTabPFN (203 stars, last commit 2026-02-26).

Abstract

Tabular foundation models such as TabPFN have revolutionized predictive machine learning for tabular data. At the same time, the driving factors of this revolution are hard to understand. Existing open-source tabular foundation models are implemented in complicated pipelines boasting over 10,000 lines of code, lack architecture documentation or code quality. In short, the implementations are hard to understand, not beginner-friendly, and complicated to adapt for new experiments. We introduce nanoTabPFN, a simplified and lightweight implementation of the TabPFN v2 architecture and a corresponding training loop that uses pre-generated training data. nanoTabPFN makes tabular foundation models more accessible to students and researchers alike. For example, restricted to a small data setting it achieves a performance comparable to traditional machine learning baselines within one minute of pre-training on a single GPU (160,000x faster than TabPFN v2 pretraining). This eliminated requirement of large computational resources makes pre-training tabular foundation models accessible for educational purposes. Our code is available at https://github.com/automl/nanoTabPFN.

View on arXivView PDF

Code Implementations(1)

automl/nanoTabPFNOfficial100%

Lightweight and educational reimplementation of TabPFN https://arxiv.org/pdf/2511.03634

20336Python, Jupyter NotebookNov 3, 20257 months ago

Similar Papers

Cite this paper

@article{pfefferle2025nanotabpfn,
  title  = {nanoTabPFN: A Lightweight and Educational Reimplementation of TabPFN},
  author = {Alexander Pfefferle and Johannes Hog and Lennart Purucker and Frank Hutter},
  year   = {2025},
  eprint = {2511.03634},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.03634v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.03634.svg)](https://codeofpaper.com/paper/2511.03634)

Discussion