MMQA: Evaluating LLMs with Multi-Table Multi-Hop Complex Questions

Jian Wu, Linyi Yang, Dongyuan Li, Yuliang Ji, Manabu Okumura, Yue Zhang

Introduction

While Large Language Models (LLMs) have become surprisingly adept at reading and extracting information from single tables, they still struggle significantly with the relational complexity inherent in real-world databases. To bridge this gap, researchers have introduced MMQA, a novel benchmark designed specifically for Multi-table and Multi-hop Question Answering. This dataset requires models to navigate primary and foreign keys to find answers, revealing a massive performance gap between the best current models (like OpenAI’s o1-preview) and human baselines, particularly as database complexity scales.

The Challenge of Multi-Table Reasoning

Most existing tabular benchmarks, such as WikiSQL or WikiTableQuestions, focus heavily on "single-table" tasks. In these scenarios, the answer is always contained within one isolated grid of data. However, real-world data is rarely that simple. Enterprise information typically lives in relational databases where data is normalized and spread across multiple tables connected by specific keys (e.g., a "Department ID" in a Management table pointing to a Department table).

To solve complex questions in these environments, a model must perform multi-hop reasoning. It has to identify the correct starting table, find a linking key, "jump" to the next table, and aggregate the necessary information. Current LLMs often trip over these relational "jumps," failing to understand the underlying database schema.

An example of multi-table, multi-hop reasoning required in the MMQA benchmark.

Methodology and the MMQA Dataset

To provide a rigorous way to measure and improve this specific capability, the researchers developed a comprehensive evaluation framework and a new dataset.

Dataset Construction: The MMQA dataset was built using the Spider database as a foundation. The team utilized 45 manually crafted templates to generate complex SQL queries, which were then translated into natural language questions by GPT-4. Finally, human experts verified the data and meticulously annotated the primary and foreign keys. The resulting dataset consists of:

  • 3,312 tables in total.
  • Questions categorized into four distinct types: Numerical (math operations), List (returning multiple items), Count, and Select.
  • Dedicated subsets for 2-table and 3-table reasoning scenarios.

Multi-Table Retrieval (MTR): To help models find the right data before answering, the authors proposed a novel retrieval method called MTR. Instead of searching for all relevant tables simultaneously, MTR utilizes Question Decomposition. It breaks a complex question down into simpler sub-questions and iteratively retrieves tables by evaluating both "question-table relevance" and "table-table relevance" (how well the columns of two tables overlap).

Key Findings and Performance Gaps

The Human-Model Gap

The benchmark reveals a stark difference in performance between humans and AI. On the 2-table task, human annotators achieved an 89.8% Exact Match (EM) score. In contrast, the best-performing model tested, o1-preview, only reached 50.78%.

Key Selection Struggles

The root of this failure often lies in database schema understanding. Even top-tier models struggle to identify how tables connect. For instance, o1-preview achieved only ~49% accuracy in selecting the correct Primary Keys and a mere ~34% for Foreign Keys. If a model cannot identify these links, it cannot successfully perform the required multi-table hop.

The "Elbow Point" of Table Length

The authors discovered an interesting scaling phenomenon: for Multi-Table QA, model performance remains relatively stable until a table reaches about 800 rows. Beyond this "elbow point," performance drops off a cliff. Interestingly, Text-to-SQL generation performance does not drop as sharply at this threshold, likely because writing SQL relies more heavily on understanding table headers rather than processing the actual row content.

Retrieval State-of-the-Art

The proposed MTR method proved highly effective, achieving a precision of 72.3% on the MMQA dataset. By treating multi-table retrieval as a series of single-table retrieval steps linked by column overlap, MTR significantly outperformed standard baselines like BM25 or vanilla SGPT.

Limitations and Future Work

The authors acknowledge several areas for future exploration:

  • Metric Limitations: "Exact Match" (EM) is a notoriously rigid metric. While the team used GPT-4 for "Partial Match" evaluation, they note that more nuanced evaluation methods are needed to accurately capture model reasoning.
  • Execution Uncertainty: While models can generate SQL, the paper does not fully explore whether these generated queries are consistently executable, or if they fail due to syntax versus logical errors.
  • Counterfactual Reasoning: The dataset includes "counterfactual" elements, suggesting a need for deeper research into how LLMs handle tabular data that might contradict their pre-trained parametric knowledge.

By highlighting the "relational gap," the MMQA benchmark serves as a challenging new frontier, pushing researchers to evolve LLMs from simple text-readers into sophisticated, database-aware data analysts.

Summary updated

BibTeX
@inproceedings{wu2025mmqa,
  author = {Jian Wu and Linyi Yang and Dongyuan Li and Yuliang Ji and Manabu Okumura and Yue Zhang},
  title = {{MMQA: Evaluating LLMs with Multi-Table Multi-Hop Complex Questions}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=GGlpykXDCa},
}
Figure