Large Language Models(LLMs) on Tabular Data: Prediction, Generation, and Understanding -- A Survey

Xi Fang, Weijie Xu, Fiona Anting Tan, Jiani Zhang, Ziqing Hu, Yanjun Qi, Scott Nickleach, Diego Socolinsky, Srinivasan Sengamedu, Christos Faloutsos

This survey paper provides the first comprehensive roadmap for applying Large Language Models (LLMs) to tabular data—the structured, row-and-column format that powers everything from financial ledgers to medical records. While LLMs were born for unstructured text, this research explores how their emergent reasoning and few-shot capabilities are being adapted to predict, generate, and understand structured data.

TL;DR

This paper systematizes the rapidly growing field of "LLMs for Tabular Data," offering a formal taxonomy of techniques for data serialization, prompt engineering, and fine-tuning. It highlights how LLMs are challenging traditional SOTA models (like XGBoost) in low-data regimes and complex reasoning tasks, while identifying critical bottlenecks in numerical representation and context window limits.

What Problem Does This Paper Address?

Tabular data is the backbone of industrial machine learning, yet it presents unique challenges that unstructured text does not: heterogeneity (mixing numbers, categories, and text), lack of inherent order (rows and columns can often be shuffled), and a heavy reliance on precise numerical values.

Historically, tree-based ensemble methods like Gradient Boosted Decision Trees (GBDTs)—think XGBoost or LightGBM—have dominated this space. However, these models lack "common sense" and struggle with few-shot learning. The authors address the gap in literature by consolidating how we can leverage the semantic knowledge of LLMs to handle tabular tasks like classification, synthetic data generation, and natural language questioning (Text2SQL).

Methods

The authors break down the LLM-on-tabular workflow into four key technical stages, as illustrated in Figure 4:

Figure 4: Key techniques in using LLMs for tabular data. The dotted line indicates steps that are optional.
  1. Serialization: Since LLMs process sequences, tables must be converted to text. The paper compares formats like Markdown (most common), JSON, HTML, and natural language templates (e.g., "The age is 47").
  2. Table Manipulation: To handle context limits, researchers use techniques to compact tables, include only relevant rows/columns, or add metadata like table schemas and statistical summaries.
  3. Prompt Engineering: The survey covers the use of In-Context Learning (ICL), Chain-of-Thought (CoT) reasoning for math-heavy tasks, and Retrieval-Augmented Generation (RAG) to pull relevant data from massive databases.
  4. Fine-tuning & Systems: The paper discusses adapting models via Parameter-Efficient Fine-Tuning (PEFT) like LoRA, and building agentic workflows where LLMs interact with Python shells or SQL engines to verify their own answers.

Datasets

The survey categorizes dozens of datasets across three domains:

  • Prediction: Standard ML benchmarks like UCI ML, OpenML, and a "Combo" of 9 diverse datasets (Bank, California Housing, etc.).
  • Generation: Primarily Kaggle and UCI datasets used to test the fidelity of synthetic data.
  • Understanding: Complex benchmarks like WikiTableQuestion (QA), TabFact (fact verification), and Spider (the gold standard for Text2SQL).

Key Insights and Ideas

  • The Semantic Advantage: Unlike GBDTs, LLMs understand the meaning of column headers. In medical or financial tasks, this allows them to leverage prior knowledge to make better predictions when training data is scarce.
  • Serialization Sensitivity: LLM performance is highly sensitive to input format. Interestingly, some models perform better on HTML or XML because they were exposed to more web-crawled table code during pre-training.
  • Evolution of Capabilities: The paper traces the shift from simple representation learning (BERT-style) to the emergent reasoning of modern LLMs (GPT-4), as shown in Figure 3.
Figure 3: Development of language models and their applications in tabular data modeling.
  • The "Lost-in-the-Middle" Phenomenon: LLMs struggle to capture information buried in the middle of long serialized tables, making effective table truncation and retrieval crucial.

Key Results

  • Few-Shot Dominance: Models like TabLLM demonstrate that LLMs can outperform traditional deep learning and GBDTs when only a few dozen examples are available.
  • Reasoning Breakthroughs: On the Spider (Text2SQL) benchmark, LLM-based approaches have reached execution accuracies as high as 87.6%, significantly surpassing previous specialized models.
  • Synthetic Data: CLM-based generators like GReaT (using GPT-2) have shown the ability to generate highly realistic synthetic samples that maintain the statistical correlations of the original data.

Limitations and Future Work

Despite the progress, several "unexplored territories" remain:

  • Numerical Representation: Standard tokenizers (like BPE) often split numbers into nonsensical chunks (e.g., "42235630" into [422, 35, 630]), which cripples arithmetic performance.
  • Bias and Fairness: LLMs inherit social biases from their training data, which can lead to unfair outcomes in sensitive tabular tasks like credit scoring or hiring.
  • Hallucination: In high-stakes fields like medicine, the tendency of LLMs to "invent" feature values remains a critical barrier to deployment.
  • Standardization: The authors call for more unified benchmarks, noting that different papers often report wildly different results for the same model on the same dataset due to variations in serialization and prompting.

Summary updated

BibTeX
@article{fang2024large,
  author = {Xi Fang and Weijie Xu and Fiona Anting Tan and Jiani Zhang and Ziqing Hu and Yanjun Qi and Scott Nickleach and Diego Socolinsky and Srinivasan Sengamedu and Christos Faloutsos},
  title = {{Large Language Models(LLMs) on Tabular Data: Prediction, Generation, and Understanding -- A Survey}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=IZnrCGF9WI},
}
Figure