Mitigating Label Shift in Tabular In-Context Learning via Test-Time Posterior Adjustment

Seunghan Lee
5/6/2026
7 citations
cs.LGcs.AI

Official code: seunghan96/DistPFN (5 stars, Python, last commit 2026-09-17).

Abstract

TabPFN has recently gained attention as a foundation model for tabular datasets, achieving strong performance by leveraging in-context learning on synthetic data. However, we find that TabPFN is vulnerable to label shift, often overfitting to the majority class in the training dataset.

Show full abstract

To address this limitation, we propose DistPFN, the first test-time posterior adjustment method designed for tabular foundation models. DistPFN rescales predicted class probabilities by downweighting the influence of the training prior (i.e., the class distribution of the context) and emphasizing the contribution of the model's predicted posterior, without architectural modification or additional training. We further introduce DistPFN-T, which incorporates temperature scaling to adaptively control the adjustment strength based on the discrepancy between prior and posterior. We evaluate our methods on over 250 OpenML datasets, demonstrating substantial improvements for various TabPFN-based models in classification tasks under label shift, while maintaining strong performance in standard settings without label shift. Code is available at this repository: https://github.com/seunghan96/DistPFN.

View on arXivView PDF

Code Implementations(1)

seunghan96/DistPFNOfficial100%
51Python, Jupyter NotebookAug 26, 20252 months ago

Similar Papers

Cite this paper

@article{lee2026mitigating,
  title  = {Mitigating Label Shift in Tabular In-Context Learning via Test-Time Posterior Adjustment},
  author = {Seunghan Lee},
  year   = {2026},
  eprint = {2605.04363},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.04363v2}
}

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

Discussion