Reading a table is not predicting from it
A language model can describe a table, answer a question about one cell, or write the SQL that queries it. These are reading tasks, and language models are good at them.
Prediction is different. To score a loan or forecast demand, a model has to learn how many columns relate to an outcome across thousands of past rows, and then apply that to new rows. A language model can be asked to do this by writing the rows into the prompt as text, one row per line.10
The sections below look at what happens when it is.
Accuracy falls as columns are added
Garnelo and Czarnecki compared a frontier language model with eight classical methods on 31 benchmark datasets, adding columns step by step.1 The language model was the only one of the nine methods whose accuracy fell as the number of columns grew. By about 16 columns, on most datasets it did no better than always guessing the most common class.
They ruled out the obvious explanations. The model could find one relevant column among 60 when asked to. The number of decimal places made no difference. Smaller batches of test rows did not help.
Bordt and colleagues found the same pattern from another angle. Language models learn from a few examples less efficiently than classical statistical methods, and the gap grows as the number of dimensions grows.2
Business tables often have dozens to hundreds of columns. A credit file or a customer record is well past the point where these studies saw accuracy fall.
Rows do not fit, and every row costs money
A prompt has a size limit, and every value in it is paid for in tokens. Garnelo and Czarnecki estimate that a table of 100,000 rows and 20 columns comes to about 16 million input tokens. That is more than the context window of current frontier models. At $5 per million input tokens, one such prompt would cost about $80.1
The table below scales that estimate, at about 8 tokens per cell and $5 per million input tokens. It counts the input of one call only, before any output, retries or repeated runs.
| Table sent as text | Input tokens | Input cost of one call |
|---|---|---|
| 1,000 rows × 20 columns | 0.16 million | $0.80 |
| 10,000 rows × 20 columns | 1.60 million | $8.00 |
| 100,000 rows × 20 columns | 16 million | $80 |
| 1,000,000 rows × 50 columns | 400 million | $2,000 |
Business data is larger than this, and it is used again and again. A retailer forecasts millions of SKU and store pairs every week. A lender scores every account every month. Writing the data out as text for every call is slow and expensive. The time to process a prompt also grows with its length, so the wait grows with the table.
Long prompts have a further problem. Liu and colleagues showed that language models use information at the start and the end of a long context better than information in the middle.3 A row in the middle of a long table is read less reliably than a row at either end.
Numbers are read as text
A language model splits text into tokens, and numbers are split too. How they are split depends on the model. Some models split a long number into pieces of up to three digits, read from the left.4
Singh and Strouse showed that this choice alone changes how accurately frontier models do arithmetic. Writing the same numbers with commas, so that they split from the right, made the models more accurate.4 A model whose handling of a number depends on how the number is written is a weak base for predicting amounts.
The same data, laid out differently, gives a different answer
In a table, the order of rows and columns carries no meaning. To a language model, the table is a sequence of text, and order is part of the input.
Liu, Wang and Chen found that language models do worse when a table with the same content is presented in a different structure.5 In a business system, column order depends on how a table was exported. A prediction should not depend on it.
The same request can give a different answer
A credit decision, a reorder quantity or a provision must not change when the same request is run again.
Atil and colleagues ran five language models ten times each on eight tasks, with settings meant to be deterministic. Accuracy varied by up to 15% between runs, and no model gave identical outputs on all the tasks.6
Probabilities are written, not estimated
A lender needs a probability of default it can rely on, not just a ranking. When a language model gives a probability, it writes a number as text. Xiong and colleagues found that language models tend to be overconfident when asked to state their own confidence.7
A model built for tables returns probabilities and ranges as its output. They can be checked against what actually happened.
Memory is mistaken for skill
Language models are trained on much of the public internet, including many public datasets. Bordt and colleagues showed that language models have memorised popular tabular datasets, and do better on them than on datasets released after their training.2 Garnelo and Czarnecki found the same: their model recovered held-out labels of well-known datasets almost perfectly.1
So a good score on a public benchmark can overstate what a language model will do on a company's own data, which it has never seen.
Time series show the same pattern
Several forecasting methods have been built on top of language models. Tan and colleagues removed the language model from three of them, or replaced it with a single attention layer. The forecasts did not get worse, and in most cases they got better. The language model added a large compute cost and no accuracy.8
Where language models do help
Language models are useful around the prediction. They can find the right tables, write the query, explain a result in words, and read free text such as call notes or reviews.
With very few rows, a language model can also bring useful prior knowledge. Gardner and colleagues trained a language model on a large collection of tables. With 1 to 32 examples, it was more accurate than boosted trees and TabPFN.9 The advantage is real, but it sits where there is almost no data. The problems of columns, rows, cost and consistency above still apply.
The prediction itself, on business-scale tables, should come from a model built for tables. tabSutra is designed for that split. An assistant handles the request and finds the data, and tabSutra makes the prediction.
What a model built for tables does differently
| Problem | Language model | tabSutra |
|---|---|---|
| Many columns | Accuracy falls as columns are added | Built to read tables with hundreds of columns |
| Many rows | About 8 tokens per cell, paid for in every call | Reads tens of thousands of rows as context, as data, not text |
| Numbers | Split into text tokens | Read as quantities, on any scale |
| Layout | The answer can change with row or column order | The answer does not change |
| Repeat runs | Can give different answers | Always the same answer |
| Probabilities | Written as text, often overconfident | Predicted distributions that can be checked |
| Benchmarks | Can be inflated by memorised data | The current release was pretrained on synthetic data only |