Skip to content

Tabular data: why some models need few rows and yours does not

THE ARGUMENT

Strong results on small tables come from a pretrained prior matching the semantics of those columns, not from having few rows; whether it applies is a question about columns, not table size.

On this page

You have a churn table: three hundred rows, twenty-four columns, three months of manual assembly. A tuned gradient booster reaches 0.71 AUC. A colleague runs a new model for a few seconds and gets 0.78. Someone in the meeting proposes switching all small-data work to it. The proposal contains an unchecked assumption: it is fast and accurate, therefore it is a better model. This article argues it is not a better model. It placed a bet somewhere else, and that bet holds on some tables and fails outright on others.

Three hundred rows, twenty-four columns, two scores

The 0.71 and 0.78 above are invented, used only to show the size of the effect; they are not results from any real experiment. Real numbers differ, but the pattern — a default configuration matching or beating a model tuned for two days — does recur on small tables.

What makes it counterintuitive is that it breaks a familiar rule: fewer samples means more overfitting, and bigger models make it worse. By that rule, three hundred rows plus a model with an enormous parameter count should collapse. It does not, so the explanation cannot be that the model is stronger. It has to be that the model brings something beyond your data.

That something has a name: a prior. Before seeing your three hundred rows, it was trained on a large number of synthetic table tasks. When your data arrives it does not start from nothing; it picks the most similar pattern out of a large set already accumulated.

Not a stronger model — a different source of information

TabPFN pretrains a transformer on a large collection of synthetic tabular classification tasks, sampled from a data-generating process that covers dependencies between columns, noise levels and class imbalance. At inference there is no training: the training set is passed in as context and a single forward pass produces predictions.[1]

The reported result: on small tabular classification tasks with up to about a thousand rows and a hundred features, it matches or beats tuned gradient-boosted trees, runs orders of magnitude faster, and needs no hyperparameter tuning.[1] All three together are why it got attention. Accuracy alone is not dramatic; accuracy plus speed plus zero tuning is hard to ignore in small-data work.

The important part is where the knowledge sits. It sits in the weights, not in your three hundred rows. Your rows only tell it which task this is — like showing a few worked examples to someone who already knows the subject; they do not need to relearn the method, only to see which chapter the exam covers.

That also explains the absence of tuning. Tuning is a search for structure inside the data; here the structure was fixed during pretraining. You have no dial to turn, and none is needed. The time saved is real, and the price is that when it is wrong you have no dial to correct it with.

What the prior is actually betting on

That synthetic generator encodes a set of assumptions about what a table looks like. Laid out plainly, there are five:

  • The target is a function of the columns, and the dependency is sparse: a few columns matter, most are noise.
  • Each column has a reasonably regular distribution — continuous, categorical or ordinal — rather than so heavy-tailed it has almost no shape.
  • Rows are essentially independent: row ten thousand is unaffected by row nine thousand nine hundred ninety-nine.
  • The column count is in the tens, not the thousands, and interactions are local rather than globally dense.
  • The relationship is stationary: what held during training still holds at prediction time.

How often those five hold varies enormously across real tables. A demographics table or a survey export satisfies all five. A transaction ledger breaks the third immediately, because rows are ordered by time and adjacent rows are almost identical.

So the reasoning that my table only has three hundred rows, therefore this applies, is wrong. Few rows change one thing only: the prior carries more weight in the prediction. It does not change whether the prior is right. Less data means the prior matters more and a bad bet costs more — an inverse relationship that is routinely read as small data means use this.

The test is column semantics, not row count

If row count is not the criterion, what is? What each column means in the business. The table below sorts by column properties; the right-hand columns are the consequence and the action.

What your columns look likePrior matchWhat goes wrongWhat to do
Numeric measurements plus a few categories, weakly correlated (churn, credit, quoting tables)MatchesLikely a usable resultRun it once and keep it as a strong baseline
Timestamped and ordered by time (ledgers, logs, sensors)Does not match: assumes independent rowsA random split predicts the past from the future and inflates the scoreSplit by time and consider a sequence model
High-cardinality IDs, hashes, free textDoes not match: these are not distributed featuresThe model may memorise the ID as signalDrop them, or encode them first
Many missing values where missingness means something (blank means it never happened)The early version assumes complete featuresImputation erases the signal, or it errors outAdd missingness indicators, or use another method
The target is derived from a column (future information)Irrelevant to the modelAny model reaches a very high scoreCheck for leakage before discussing models

The last row deserves its own paragraph because it is most often mistaken for model quality. A column derived from the outcome pushes any method to a high score, and what you are seeing is the label leaking into the features, not a strong model. Leakage and model selection are two different problems; merged into one conversation, they produce the conclusion that the new method is better.

Applied to one table, that becomes a column-by-column audit. Below is the invented churn table from the opening again, with six of its twenty-four columns.

table churn_demo (invented, 24 columns total, 6 shown)

column           type       verdict
age              int        numeric measurement, keep
tenure_months    int        numeric measurement, keep
plan             category   few categories, keep
signup_ts        datetime   drop; used only for the time-based split
account_id       string     high-cardinality ID, drop
notes            text       free text, drop or encode first

3 of these 6 are kept; the other 18 get the same treatment

The audit is valuable not for its precision but because it forces you to say out loud what each column means in the business. In most failures I have seen, the model was not the problem — the audit missed a timestamp left among the features, and a random split then produced a beautiful and entirely unusable score.

The first three rows share a property: the criterion is what the column means in the business, not whether it is numeric. The same integer column means something different as a user tier and as an account balance — an ordinal category versus a heavy-tailed continuous quantity. Same type tag, different semantics, different bet.

If you try it, try it in four steps

  1. Build an honest baseline first: no feature engineering, a conventional gradient booster, and record the score, the runtime and how much human effort the tuning took. Without that baseline no comparison means anything.
  2. Run the new method on exactly the same split. The split must follow business time, not a random shuffle — random splits flatter every method, including the baseline, but they flatter the new one more.
  3. Look at three things, not one: the score, the calibration (can the predicted probabilities be used as probabilities), and how much the score drops on a different time window. The second often matters more than the first in real decisions.
  4. Run it once more on your least typical table. If it only works on clean, regular tables, that is not progress in method, it is selection of data.

The calibration point is worth spelling out. In small-data settings the predicted probabilities are often used directly as a threshold — review manually above 0.6, say. A model with good ranking but inflated probabilities doubles the review queue, and AUC shows nothing. This is true of any model, but switching models means checking it again.

Its edges, and where I disagree

The first edge is task type. Classification versus regression, single table versus joins, with or without missing values — the supported range differs and shifts between versions. Confirm your task sits inside the current range rather than accepting that it handles any table.

The second edge is harder: the source of the advantage cannot be transferred and cannot be observed. It comes from a pretrained prior that is invisible and unadjustable. You cannot see what it bet on, so you cannot tell in advance whether the bet is wrong for your table — only an experiment can. A gradient booster at least hands you feature importances, so you can see what it is using.

There is also a claim I disagree with: the paper's comparison is drawn inside the thousand-row, hundred-feature range, and behaviour outside it was not compared.[1] Treating not compared as equally effective is the most common misuse of methods like this. Beyond that range conventional methods catch up — that follows from the mechanism, since the prior's share of the prediction falls as data grows. It is my inference, not a measured result, which is why it sits in my judgment rather than in a citation.

One line you can use immediately: the next time someone argues that small samples are enough, ask them to drop the timestamp column and the high-cardinality column and rerun. If the score drops a lot, the method was leaning on column structure, not on sample efficiency — and that conclusion is worth more to a purchasing decision than any leaderboard position.

References

  1. TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Second

Read next

All articles

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…