TQA-Bench: Evaluating LLMs for Multi-Table Question Answering with Scalable Context and Symbolic Extension

Zipeng Qiu, You Peng, Guangxin He, Binhang Yuan, Chen Wang · DOI

Introduction

Large Language Models (LLMs) have demonstrated impressive capabilities in single-table question answering. However, real-world data—prevalent in sectors like finance and healthcare—is typically distributed across multiple relational tables with complex foreign-key dependencies. Existing benchmarks often fall short by focusing on single tables, utilizing small datasets, or relying on potentially contaminated Wikipedia data. TQA-Bench addresses these limitations by providing a large-scale, contamination-resistant framework designed to evaluate multi-table reasoning across context lengths ranging from 8K to 64K tokens.

Methodology: Symbolic Extension and Topological Sampling

The construction of TQA-Bench relies on a systematic pipeline designed for scalability and logical consistency.

Topological Sampling

To maintain referential integrity across multiple tables, the authors employ a topological sort algorithm. This ensures that when a subset of data is sampled for a specific context length (e.g., 32K tokens), the relationships between tables remain intact. If Table A references Table B, the sampling process ensures that the corresponding rows in Table B are included, allowing for valid "multi-hop" reasoning.

Symbolic Extension

Rather than using static, human-written questions that are prone to memorization, TQA-Bench utilizes "symbolic extensions." This involves template-based question generation paired with Python scripts that compute ground-truth answers directly from the database. This method allows for the generation of over 56,000 unique question instances, ensuring the benchmark remains a robust test of reasoning rather than retrieval.

Overview of the TQA-Bench pipeline, illustrating database structures, template-based question generation, and task categorization.

Task Hierarchy

Tasks are categorized into three levels of increasing complexity:

  • Lookup: Basic entity retrieval.
  • Aggregation: Statistical operations such as Count, Sum, and Average.
  • Complex Calculation: Multi-step logical reasoning, such as calculating correlations between different data fields.

Dataset Characteristics and Scalability

TQA-Bench draws from diverse, real-world sources including WorldBank, DataGov, and the BIRD (Big Bench for Relational Databases) suite. The benchmark includes 10 distinct databases and 400 database instances. A key feature is its scalability; the benchmark provides data configurations tailored to specific context windows, allowing researchers to test the limits of "long-context" models.

Scaling characteristics of TQA-Bench across context lengths from 8K to 64K tokens.

Key Insights and Experimental Results

The evaluation of 22 LLMs, including GPT-4o and Llama 3.1, revealed several critical findings:

  • Serialization Format: Markdown serialization consistently outperformed CSV across nearly all models. This is likely due to the higher frequency of Markdown tables in the web-based corpora used for pre-training.
  • Performance Decay: As context length increases, model accuracy significantly declines. For instance, GPT-4o’s accuracy dropped from 78.68% at 8K tokens to 63.41% at 64K tokens.
  • Reasoning vs. Arithmetic: Models generally handle "Average" calculations better than "Sum" operations, suggesting an intuitive grasp of distribution but a lack of precise cumulative arithmetic capability.
  • Instruction Following: "Instruct" models significantly outperformed "Chat" variants, which often failed to adhere to the required multiple-choice output format in complex scenarios.

Conclusion and Future Directions

TQA-Bench highlights a significant gap in current LLM capabilities: while models can retrieve information from long contexts, their ability to perform complex, multi-step reasoning across relational data degrades as context scales. The authors suggest that future research should move toward "agentic" workflows, where LLMs generate and execute code (SQL/Python) to interact with databases, rather than attempting to reason over raw serialized data in a single pass.

Summary updated

BibTeX
@misc{qiu2024tqa,
  author = {Zipeng Qiu and You Peng and Guangxin He and Binhang Yuan and Chen Wang},
  title = {{TQA-Bench: Evaluating LLMs for Multi-Table Question Answering with Scalable Context and Symbolic Extension}},
  year = {2024},
  eprint = {2411.19504},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.19504},
}
Figure