Papers › Large Scale Transfer Learning for Tabular Data via Language Modeling

Large Scale Transfer Learning for Tabular Data via Language Modeling

17 Jun 2024arXiv:2406.12031archive 2025-07-28

Josh Gardner, Juan C. Perdomo, Ludwig Schmidt

Tabular data -- structured, heterogeneous, spreadsheet-style data with rows and columns -- is widely used in practice across many domains. However, while recent foundation models have reduced the need for developing task-specific datasets and predictors in domains such as language modeling and computer vision, this transfer learning paradigm has not had similar impact in the tabular domain. In this work, we seek to narrow this gap and present TabuLa-8B, a language model for tabular prediction. We define a process for extracting a large, high-quality training dataset from the TabLib corpus, proposing methods for tabular data filtering and quality control. Using the resulting dataset, which comprises over 2.1B rows from over 4M unique tables, we fine-tune a Llama 3-8B large language model (LLM) for tabular data prediction (classification and binned regression) using a novel packing and attention scheme for tabular prediction. Through evaluation across a test suite of 329 datasets, we find that TabuLa-8B has zero-shot accuracy on unseen tables that is over 15 percentage points (pp) higher than random guessing, a feat that is not possible with existing state-of-the-art tabular prediction models (e.g. XGBoost, TabPFN). In the few-shot setting (1-32 shots), without any fine-tuning on the target datasets, TabuLa-8B is 5-15 pp more accurate than XGBoost and TabPFN models that are explicitly trained on equal, or even up to 16x more data. We release our model, code, and data along with the publication of this paper.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2406.12031")

Code

Syntology Ran 13 of 15 code samples harvested from 2 repositories linked to this paper; 2 have no recorded run. Of those that ran: 13 ran with no contract checked.

By repository: official repository: 15 samples from 2 repositories, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mlfoundations/rtfm officialmentioned in papermentioned on GitHubpytorchMIT report
mlfoundations/tabliblib officialmentioned in paperMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 13 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

13ran
2unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

add_content_hash mlfoundations/tabliblib/tabliblib/mappers.py official repository ran MIT (permissive) · 4beae4af6e4059ec · report
arrow_to_pandas_safe mlfoundations/tabliblib/tabliblib/io.py official repository ran MIT (permissive) · 5af725e76bd12300 · report
batch_to_xpu mlfoundations/rtfm/rtfm/torch_utils.py official repository ran MIT (permissive) · 1af054b95295710e · report
drop_duplicates mlfoundations/tabliblib/tabliblib/mappers.py official repository ran MIT (permissive) · 0ad24980bda6f6e4 · report
example_ids_to_attention_mask mlfoundations/rtfm/rtfm/data.py official repository ran MIT (permissive) · 74807ffb0cddac16 · report
find_covering_set mlfoundations/tabliblib/tabliblib/dedup_utils.py official repository ran MIT (permissive) · 4767aa5be418958c · report
generate_random_dates mlfoundations/tabliblib/tabliblib/summarizers.py official repository ran MIT (permissive) · 8d749d50f25dd3c2 · report
get_categorical_idxs mlfoundations/rtfm/rtfm/tree_baselines.py official repository ran MIT (permissive) · cd4c51c2326006e9 · report
get_latest_checkpoint mlfoundations/rtfm/rtfm/utils.py official repository ran MIT (permissive) · ba26941c52b7f85a · report
load_model_from_checkpoint mlfoundations/rtfm/rtfm/train_utils.py official repository ran MIT (permissive) · d718f67e89480b5b · report
path_to_str mlfoundations/tabliblib/tabliblib/dedup_utils.py official repository ran fingerprinted MIT (permissive) · 39954605fabc6757 · report
sample_columns_if_needed mlfoundations/tabliblib/tabliblib/io.py official repository ran MIT (permissive) · 02efcf6df251ab61 · report
write_arrow_bytes mlfoundations/tabliblib/tabliblib/io.py official repository ran MIT (permissive) · 61bc6ff6d93f37c7 · report
bool_cols_to_categorical mlfoundations/rtfm/rtfm/tree_baselines.py official repository unverified MIT (permissive) · 5326e55483a6717d · report
prepare_4d_attention_mask mlfoundations/rtfm/rtfm/data.py official repository unverified MIT (permissive) · 7d1cac2a511468ae · report

Tasks

Language ModelingLanguage ModellingLarge Language ModelPredictionTransfer Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionLLaMASoftmaxTABPFN

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections