Manuscript Offprint

arXiv:2610.27569

Two Is Enough: Binary Classification Priors Suffice for Multi-Class In-Context Tabular Prediction

Zhixiong Cheng, Shiyuan Han, Jingjing Suo, Zhengli Wang

Abstract

Tabular foundation models (TFMs) pretrain a transformer on large-scale synthetic priors so that a single forward pass yields zero-shot tabular prediction. TabICLv2 samples the class count of its classification prior during pretraining, and the prevailing configuration caps it at ten. We report a counter-intuitive result: setting this cap directly to two—making every pretrained classification task binary—still yields weights that perform zero-shot K-way classification ( K≫2K \gg 2). On the 38 TabArena classification datasets (200 bootstrap rounds, anchored at default RF = 1000), the binary two-stage recipe reaches 1590.1 Elo, above the official default at 1568.0 ( Δ=+22.1\Delta = +22.1), above TabPFN-v2.6 (1577.1) and RealTabPFN-v2.5 (1521.6). A production-scale validation on 60 real-world credit-scoring institutions independently confirms the direction: the same checkpoint improves test AUC on 44 of 60 institutions (paired Wilcoxon p = 0.0007 for AUC, p = 0.0002 for KS) at +1.5% inference cost. Mechanistically, classification in TabICLv2 is carried not by a fixed-cardinality output head but by an in-context comparison operator matching query-row embeddings against class-conditional embeddings, so the cardinality of the output space is set by the labels present in the context, not by the label space seen during pretraining. This makes a binary prior structurally cheaper to generate and cache than a ten-class prior, demotes “number of classes” from an architectural constraint to a tunable hyperparameter, and points to a class-count-agnostic regime of TFM pretraining.

TabArena Elo Top-15 (grouped) — Classification (38 datasets)

Figure

Figure 1: TabArena Elo top-15 leaderboard on the full 38-dataset classification suite (200 bootstrap rounds, anchored at default RF = 1000). Light-blue/orange/green grouped bars show the Default, Tuned, and Tuned + Ensembled configurations of each method, and the highlighted yellow bar marks the TabICLv2 official default baseline. Our binary two-stage checkpoint (TabICLv2-Custom-Binary-Prior, dark orange) reaches 1590.1 Elo, +22.1 above the official default (1568.0).

*Corresponding author. Email: jingjing.suo@brgroup.com

1 Introduction

Tabular foundation models (TFMs), namely TabPFN [5, 6], TabICL [8, 9], TabDPT [15], and TabFM [7], pretrain a transformer on synthetic priors (TabDPT instead uses real data with self-supervised retrieval) so that it predicts on an unseen table in a single forward pass with no gradient updates [10]. The central mechanism is in-context learning (ICL): training rows and test rows are fed together as a context, and the model produces the test-row labels within the same forward pass.

A question long treated as an architectural constraint is: in classification, what determines how many classes the model can output? In classical supervised learning the answer is immediate: the width of the output head, fixed by the number of classes in the training set, which then bounds the number of classes at inference time. The ICL paradigm breaks this constraint. TabICLv2 samples the class count of its classification prior during pretraining, typically with an upper bound of ten, so a natural assumption is that this “ten” is simultaneously a prior-sampling parameter and a latent capability boundary of the model.

This paper presents a counterexample to that assumption and addresses three questions:

• Q1 (phenomenon). If the classification prior is fixed to two classes, can the fully pretrained weights still perform multi-class classification?

• Q2 (mechanism). If so, what design decouples the cardinality of the output space from the cardinality of the pretraining label space?

• Q3 (cost). What are the benefits and the failure boundaries of doing this?

Our observation is that the answer to Q1 is yes. On the 38 TabArena [16] classification datasets (200-bootstrap-round Elo, anchored at default RF = 1000), binary two-stage weights retrained from scratch for 540K steps (stage 1: 500K + stage 2: 40K; 10K fewer than the official three-stage schedule) with bagging inference reach 1590.1 Elo (Figure 1), above the official default at 1568.0 ( Δ=+22.1\Delta = +22.1; bootstrap intervals overlap, so the gain is directional, not significant). AUC-metric datasets are on par or slightly better; log-loss-metric datasets show a slight calibration degradation ( §4.3\S4.3), as predicted. A production-scale validation on 60 internal credit-scoring institutions ( §4.5\S4.5) makes the advantage statistically significant (paired Wilcoxon p = 0.0007 for AUC and p = 0.0002 for KS).

Contributions. This paper contributes:

  1. An unexpected empirical result. Binary-only prior pretraining does not sacrifice multi-class inference capability (see Table 1): the binary two-stage recipe (540K steps, no stage 3) scores 1590.1 vs. the official default's 1568.0 Elo (550K steps over three stages). This supports treating “ten classes” as a tunable hyperparameter rather than a capability boundary.

  2. A mechanistic explanation. Classification in TabICLv2 is carried by an in-context comparison operator, with K set by the labels in the context. Whether this holds depends on the label-encoder design: a shared encoder extrapolates, a per-class embedding table does not ( §3.3\S3.3); we give a code-level verification checklist.

  3. A cost–benefit argument. Holding everything else fixed, a binary prior is structurally cheaper to generate and cache than a ten-class prior: it shrinks the per-task label-encoder input distribution, the label-embedding lookup, and the cached prior tensors carrying label-side state. Since prior-generation cost is cliff-shaped rather than linear ( §4.4\S4.4), this reduction buys a disproportionately long additional cache window, expanding the feasible frontier of long-horizon pretraining.

  4. A failure boundary. Capping the class count too low is not free: measurable degradation appears when K is large, when classes are severely imbalanced, and when class labels are ordinal. We lay out these failure scenarios and the preliminary evidence for the calibration-related ones ( §4.3\S4.3).

References (16)