TL;DR
This paper introduces the SUC (Structural Understanding Capabilities) benchmark to systematically evaluate how Large Language Models (LLMs) like GPT-3.5 and GPT-4 comprehend tabular data. The authors demonstrate that while LLMs possess basic structural awareness, their performance is highly sensitive to input format and prompting strategies; they propose a novel self-augmented prompting method that significantly boosts reasoning accuracy by leveraging the models' internal knowledge of table structures.
What Problem Does This Paper Address?
While LLMs have revolutionized natural language processing, their ability to handle structured data—specifically tables—remains an under-explored and "chaotic landscape." Tables are inherently non-linear, yet LLMs require them to be "serialized" into a linear text string. There is currently no consensus on which serialization format (e.g., CSV, JSON, HTML) is best, or whether LLMs truly understand the underlying grid structure (rows, columns, and cell relationships) or are merely performing pattern matching on text. This paper seeks to quantify these structural understanding capabilities and provide pragmatic guidance for researchers working with tabular data.
Methods
The researchers developed the SUC Benchmark, which decomposes table understanding into seven distinct tasks of increasing difficulty, categorized into two stages:
- Partition & Parsing: Tasks like Table Partitioning (identifying table boundaries), Table Size Detection (counting rows/columns), and Hierarchy Detection.
- Search & Retrieval: Tasks like Cell Lookup (finding a value's position), Reverse Lookup (finding a value given a position), and Column/Row Retrieval.
They also explored a wide range of Input Designs, testing different serialization formats (Markdown, JSON, XML, HTML), the use of partition marks, role prompting, and the order of information (e.g., placing the question before vs. after the table).
Finally, they proposed Self-Augmented Prompting (SA). Unlike standard Chain-of-Thought, SA is a two-phase process: first, the LLM is asked to generate intermediate structural knowledge (like identifying critical value ranges or explaining the table format); second, this generated knowledge is fed back into the prompt to assist the final reasoning task.
Datasets
The SUC benchmark was built by sampling 1,500 tables from five prominent Wikipedia-based datasets:
- TabFact: Table-based fact verification.
- FEVEROUS: Fact extraction and verification over unstructured and structured information.
- SQA: Sequential question answering.
- HybridQA: Multi-hop QA over tables and text.
- ToTTo: Controlled table-to-text generation.
Evaluation was performed primarily on GPT-3.5 (text-davinci-003) and GPT-4.
Key Insights and Ideas
- HTML is the "Native Tongue" for Tables: Surprisingly, HTML markup outperformed the commonly used "Natural Language + Separator" format by 6.76%. The authors hypothesize this is due to the prevalence of web data and code in LLM training sets.
- LLMs are Not Perfect Counters: Even state-of-the-art models like GPT-4 struggle with "trivial" tasks like detecting table size. This suggests that structural understanding is not a given and needs explicit support.
- Order Matters: Placing external context (like questions or statements) before the table leads to better performance than placing them after. This likely helps the model establish context before parsing the complex table structure.
- In-Context Learning is Critical: Performance plummeted by over 30% in zero-shot settings compared to one-shot. LLMs need at least one example to "grasp" how to interpret the serialized table structure.
- Self-Explanation Boosts Reasoning: By asking the model to first "describe" the table to itself (Self-Augmentation), researchers unlocked latent reasoning capabilities that were otherwise missed in direct prompting.
Key Results
- Benchmark Performance: The HTML format achieved the highest average accuracy (65.43%) across the seven SUC tasks.
- Downstream Gains: Self-augmented prompting, specifically identifying critical values and ranges, provided consistent improvements across all five downstream datasets:
- TabFact: +2.31% accuracy
- HybridQA: +2.13% accuracy
- SQA: +2.72% accuracy
- FEVEROUS: +0.84% accuracy
- ToTTo: +5.68% BLEU-4 score
- Model Comparison: While GPT-4 significantly outperformed GPT-3.5 (e.g., jumping from ~40% to ~80% on size detection), it followed the same sensitivity patterns regarding input design, validating the benchmark's utility for future models.
Limitations and Future Work
The authors acknowledge several limitations:
- Language Scope: The study was primarily conducted on English-language data. The morphological complexity of other languages might present different challenges.
- Context Window Constraints: Tables with very large numbers of rows or columns still face truncation issues due to LLM token limits.
- Metadata Complexity: Interpreting table metadata (like data types or units) is a complex task that varies significantly by domain and was not the primary focus here.
Future work includes exploring the scalability of these methods to much longer texts and investigating how LLMs can better utilize implicit metadata within structured data.
Summary updated