Understanding Context Sampling in TabPFN on Small Tabular Datasets
Not on the map. Why?
Abstract (arXiv)
TabPFN performs classification through in-context learning: it conditions on a set of labeled training rows (the context, or prototypes) and predicts test labels without gradient updates. On small tabular datasets, practitioners must still choose the context size and which rows constitute the context. We study how these choices affect prediction stability, accuracy, and selection cost using repeated context sampling on 15 OpenML datasets. Specifically, we investigate (i) whether larger contexts reduce prediction variability across random draws, (ii) whether accuracy depends on preserving the training distribution or on feature-space coverage, and (iii) whether expensive selection methods such as K-Means and farthest-point sampling provide benefits over uniform random sampling. We find that larger contexts are both more accurate and substantially more stable, with AUC coefficient of variation decreasing from roughly 6 to 18% at k=16 to 1 to 4% at larger context sizes on datasets with room for improvement. Although accuracy correlates with distribution representativeness in random contexts, controlled experiments show that matching feature means alone can reduce accuracy by up to 0.5 AUC because it reduces context diversity. Mixed-effects analysis identifies diversity and coverage, rather than feature-mean matching, as the stronger predictor of accuracy (diversity beta=+0.23, p=3x10^-12; feature-mean shift beta=-0.01, p=0.71). K-Means and farthest-point sampling achieve similar accuracy to random selection while requiring two to three orders of magnitude more selection cost. These results show that random sampling succeeds because it provides feature-space coverage in expectation, not because it reproduces the underlying data distribution.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 5 of its 15 references that are in the map. First posted on arXiv 29 Jul 2026.
Builds on
5 of 15 references.
References · 5
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Data Shapley: Equitable Valuation of Data for Machine Learningcited by 617
- 2014OpenML: networked science in machine learningcited by 523
- 2021Transformers Can Do Bayesian Inferencecited by 338
- 2020Introduction to Core-sets: an Updated Surveycited by 45
Built on by
Not cited yet.