Abstract
MultiTabQA introduces a novel framework and model for answering complex questions that span multiple relational tables. While previous research in tabular Question Answering (QA) has largely focused on single-table constraints, real-world data is often normalized across multiple tables. MultiTabQA addresses this by performing operations like joins and intersections to generate structured tabular answers. By employing a specialized multi-stage curriculum pre-training, the model outperforms state-of-the-art baselines on complex multi-table benchmarks.
Introduction: The Multi-Table Challenge
Most existing tabular QA research operates under a "one question, one table" assumption. However, in relational databases, information is typically distributed. To answer a question such as "What is the zip code of trips made with humidity below 70?", a model must perform a join operation between a Weather table and a Trip table, filter by humidity, and select the relevant zip codes.
Existing models face three primary hurdles in this domain: schema disambiguation across multiple tables, the execution of complex set operations (like intersections or Cartesian products), and the generation of structured tabular outputs rather than simple text spans.
Methodology
MultiTabQA is a sequence-to-sequence (Seq2Seq) model built upon the tapex-base architecture. It treats multi-table QA as a string-to-string transformation task.
Architecture
The model flattens multiple input tables into a single linear sequence. It utilizes special tokens such as <table_name>, col:, and row i: to preserve structural information. The model is trained to generate a similarly flattened "answer table," effectively treating tables as first-class output objects.
Curriculum Learning
A core innovation of MultiTabQA is its three-stage pre-training curriculum, which progressively increases reasoning complexity:
- Stage 1 (Single Table): Learning basic tabular answer generation from single-table SQL queries.
- Stage 2 (Multi-Table SQL): Training on the Spider dataset to generate answer tables from ground-truth multi-table SQL queries.
- Stage 3 (Synthetic Multi-Table): Scaling via 132,645 synthetic SQL-to-table pairs covering diverse join and set operations.
Following these stages, the model is fine-tuned on natural language questions to bridge the gap between formal SQL logic and human language.
Experimental Setup and Results
The model was evaluated on several semantic parsing benchmarks adapted for the QA-to-Table task, including Spider, GeoQuery, and Atis. To accurately assess performance, the authors introduced granular metrics: Table, Row, Column, and Cell Exact Match (EM).
MultiTabQA demonstrated significant improvements over the tapex-base baseline:
- GeoQuery: Table EM increased from 39.84% to 52.22%.
- Spider: Table EM increased from 18.99% to 25.19%.
- Scalability: MultiTabQA showed greater robustness as the number of input tables increased, maintaining a 4.37% lead over the baseline for two-table queries on Spider.
Discussion and Limitations
The "warm start" provided by SQL-based pre-training proved crucial for initializing the model's structured reasoning capabilities. However, challenges remain. Like many large language models, MultiTabQA struggles with precise floating-point numeracy, occasionally hallucinating decimal values in calculations. Additionally, the model is constrained by transformer context windows; very large databases require truncation, which may exclude relevant data. Future work may involve integrating Retrieval-Augmented Generation (RAG) to pre-filter relevant rows and columns.
Summary updated