TL;DR
UniPredict trains a single generative Large Language Model (LLM) across hundreds of diverse tabular datasets to serve as a universal tabular predictor. By serializing table metadata and training the model on calibrated class probability distributions, a single unified model outperforms separately trained tabular baselines—including XGBoost and FT-Transformer—and excels in extreme low-data, few-shot regimes.
What Problem Does This Paper Address?
Traditional tabular machine learning workflows rely on specialized, discriminative models (such as XGBoost, CatBoost, or tabular neural networks like FT-Transformer). These models assume a fixed schema and a static target column: predicting a new variable or moving to a different dataset requires configuring, training, and deploying a brand-new model from scratch.
While recent efforts have applied LLMs to tabular data (e.g., TabLLM), they still train separate models per dataset and prompt LLMs to emit discrete classification tokens (e.g., "yes" or "no"). This setup yields no calibrated prediction confidence, frequently suffers from generation failure or hallucination under noisy data, and fails to generalize across disparate domains.
Methods
UniPredict reframes tabular prediction as instruction-guided generative language modeling using a single GPT-2 backbone:
- Metadata Re-formatting: An automated pre-processing step uses GPT-3.5 to ingest raw dataset cards/dictionaries and produce standardized summaries of table context, column definitions, and prediction goals.
- Prompt Engineering: Rows are converted into structured text prompts containing dataset metadata, serialized feature–value pairs (e.g.,
"{column} is {value}; ..."), and prediction instructions. The paper investigates two variants: - UniPredict-heavy: Uses full natural language metadata descriptions.
- UniPredict-light: Omits heavy metadata descriptions, relying only on column names and values.
- Target Augmentation via Calibrated Distributions: Rather than prompting the LLM to output discrete string labels, the authors train an isotonic-calibrated XGBoost classifier per dataset to generate reference probability distributions across classes (e.g.,
class 0: 0.32; class 1: 0.39). Fine-tuning the LLM to generate this structured string provides richer supervision, stabilizes training convergence, and provides prediction confidence. Continuous targets are handled by quantile-based categorical binning. - Inference Mapping: Class probabilities generated by the LLM are extracted via regular expressions, selecting the highest-probability class as the final prediction.
[Metadata & Context] + [Serialized Features] + [Instruction]
└──> LLM Backbone (GPT-2)
└──> Generated Probabilities ("class 0: 0.32; class 1: 0.39")
Datasets
- Universal Training & Evaluation Corpus: 169 classification datasets collected via the Kaggle API covering finance, medicine, sports, and operations (capped at 7,500 samples per dataset, totaling 366,786 training samples).
- Few-Shot Benchmark: 62 distinct tabular datasets containing fewer than 100 samples each, evaluated across training set proportions from 10% to 90% to measure data efficiency in low-resource settings.
Key Insights and Ideas
- One Model Across Unrelated Schemas: A single set of weights can generalize across hundreds of completely unrelated tables without dataset-specific architecture changes.
- Probabilities Beat Hard Labels for LLM Supervision: An ablation study showed that target augmentation (predicting distribution strings rather than hard one-hot tokens) prevents LLM generation failures and significantly improves accuracy (e.g., boosting
UniPredict-lightaverage accuracy from 0.575 to 0.740). - Metadata Matters When Features are Ambiguous:
UniPredict-heavyproved much more resilient thanUniPredict-lightagainst noisy, uninterpretable feature values because the rich metadata provided semantic grounding.
Key Results
- Universal Tabular Modeling (169 Datasets): A single pre-trained
UniPredict-heavymodel achieved an average test accuracy of 81.0% (median) / 72.1% (mean), surpassing the top-performing baseline, XGBoost (which required 169 individually tuned models), by 2.2% absolute (5.4% relative). It outperformed the best specialized tabular neural network (FT-Transformer) by 13.4% relative. - Few-Shot Adaptation (62 Datasets): When data was most constrained (train proportion = 10%),
UniPredict-heavyachieved an over 118% relative accuracy advantage over XGBoost, which severely struggled on tiny datasets. While XGBoost caught up as sample ratios reached 90%, UniPredict consistently held top-2 rank positions across all low-resource regimes.
Limitations and Future Work
- Context Window Bottlenecks: Serializing wide tables with dozens of columns causes prompt lengths to exceed LLM token limits, leading to feature truncation (the root cause of ~40% of identified model failures).
- Heavy Feature Preprocessing Dependence: The framework remains vulnerable to poorly formatted feature representations, such as long sequences of raw, unnormalized floating-point numbers or meaningless categorical codes.
- Reliance on External Calibration: Training target augmentation currently requires running an external tabular model (calibrated XGBoost) to generate target supervision strings.
- Continuous Regression: Regression tasks currently require quantile discretization rather than direct continuous number generation.
Summary updated