Table Meets LLM: Can Large Language Models Understand Structured Table Data? A Benchmark and Empirical Study

Yuan Sui, Mengyu Zhou, Mingjie Zhou, Shi Han, Dongmei Zhang
5/22/2023
276 citations
cs.CLcs.AIcs.IR
benchmark-dataset

Official code: microsoft/TableProvider (12 stars, Python, MIT, last commit 2025-09-05). Most starred: Y-Sui/Table-Meets-LLM, a community implementation (42 stars, Python, last commit 2025-09-05, 3.5× the official stars). 1 more implementation below.

Abstract

Large language models (LLMs) are becoming attractive as few-shot reasoners to solve Natural Language (NL)-related tasks. However, the understanding of their capability to process structured data like tables remains an under-explored area.

Show full abstract

While tables can be serialized as input for LLMs, there is a lack of comprehensive studies on whether LLMs genuinely comprehend this data. In this paper, we try to understand this by designing a benchmark to evaluate the structural understanding capabilities of LLMs through seven distinct tasks, e.g., cell lookup, row retrieval and size detection. Specially, we perform a series of evaluations on the recent most advanced LLM models, GPT-3.5 and GPT-4 and observe that performance varied with different input choices, including table input format, content order, role prompting, and partition marks. Drawing from the insights gained through the benchmark evaluations, we propose $\textit{self-augmentation}$ for effective structural prompting, such as critical value / range identification using internal knowledge of LLMs. When combined with carefully chosen input choices, these structural prompting methods lead to promising improvements in LLM performance on a variety of tabular tasks, e.g., TabFact($\uparrow2.31\%$), HybridQA($\uparrow2.13\%$), SQA($\uparrow2.72\%$), Feverous($\uparrow0.84\%$), and ToTTo($\uparrow5.68\%$). We believe that our open source benchmark and proposed prompting methods can serve as a simple yet generic selection for future research. The code and data of this paper will be temporality released at https://anonymous.4open.science/r/StructuredLLM-76F3/README.md and will be replaced with an official one at https://github.com/microsoft/TableProvider later.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
microsoft/TableProviderOfficial12PythonMIT2025-09-05
Y-Sui/Table-Meets-LLMCommunity42Python–2025-09-05
MIT

Code of papers WSDM'24 "Table Meets LLM" and EMNLP'24 "TAP4LLM"

120Python, Shell1 years agoMIT

PLease check our latest version of relased code at https://github.com/microsoft/TableProvider/tree/main.

424Python, ShellNov 9, 20231 years ago

Similar Papers

Cite this paper

@article{sui2023table,
  title  = {Table Meets LLM: Can Large Language Models Understand Structured Table Data? A Benchmark and Empirical Study},
  author = {Yuan Sui and Mengyu Zhou and Mingjie Zhou and Shi Han and Dongmei Zhang},
  year   = {2023},
  eprint = {2305.13062},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.13062v5}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.13062.svg)](https://codeofpaper.com/paper/2305.13062)

Discussion