Retrieval & Fine-Tuning for In-Context Tabular Models

Valentin Thomas, Junwei Ma, Rasa Hosseinzadeh, Keyvan Golestan, Guangwei Yu +2 more
6/7/2024
cs.LG

No official code found. Best implementation: layer6ai-labs/LoCalPFN (5 stars, last commit 2025-11-07).

Abstract

Tabular data is a pervasive modality spanning a wide range of domains, and the inherent diversity poses a considerable challenge for deep learning. Recent advancements using transformer-based in-context learning have shown promise on smaller and less complex datasets, but have struggled to scale to larger and more complex ones. To address this limitation, we propose a combination of retrieval and fine-tuning: we can adapt the transformer to a local subset of the data by collecting nearest neighbours, and then perform task-specific fine-tuning with this retrieved set of neighbours in context. Using TabPFN as the base model -- currently the best tabular in-context learner -- and applying our retrieval and fine-tuning scheme on top results in what we call a locally-calibrated PFN, or LoCalPFN. We conduct extensive evaluation on 95 datasets curated by TabZilla from OpenML, upon which we establish a new state-of-the-art with LoCalPFN -- even with respect to tuned tree-based models. Notably, we show a significant boost in performance compared to the base in-context model, demonstrating the efficacy of our approach and advancing the frontier of deep learning in tabular data.

View on arXivView PDF

Code Implementations(1)

Retrieval & Fine-Tuning for In-Context Tabular Models (NeurIPS 2024)

53PythonOct 18, 202411 months ago

Similar Papers

Cite this paper

@article{thomas2024retrieval,
  title  = {Retrieval & Fine-Tuning for In-Context Tabular Models},
  author = {Valentin Thomas and Junwei Ma and Rasa Hosseinzadeh and Keyvan Golestan and Guangwei Yu and Maksims Volkovs and Anthony Caterini},
  year   = {2024},
  eprint = {2406.05207},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.05207},
  url    = {http://arxiv.org/abs/2406.05207v1},
  journal = {NEURIPS 2024 2024}
}

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/2406.05207.svg)](https://codeofpaper.com/paper/2406.05207)

Discussion