Plugging Schema Graph into Multi-Table QA: A Human-Guided Framework for Reducing LLM Reliance

Xixi Wang, Miguel Costa, Jordanka Kovaceva, Shuai Wang, Francisco C. Pereira

Abstract

Large language models (LLMs) have shown promise in table Question Answering (Table QA). However, extending these capabilities to multi-table QA remains challenging due to unreliable schema linking across complex tables. Existing methods based on semantic similarity work well only on simplified handcrafted datasets and struggle to handle complex, real-world scenarios with numerous and diverse columns. To address this, we propose a graph-based framework that leverages human-curated relational knowledge to explicitly encode schema links and join paths. Given a natural language query, our method searches on graph to construct interpretable reasoning chains, aided by pruning and sub-path merging strategies to enhance efficiency and coherence. Experiments on both standard benchmarks and a realistic, large-scale dataset demonstrate the effectiveness of our approach. To our knowledge, this is the first multi-table QA system applied to truly complex industrial tabular data.

Introduction: The Schema Linking Bottleneck

While Large Language Models (LLMs) excel at answering questions from a single table, multi-table QA remains a significant hurdle. The core challenge is schema linking: identifying which columns across disparate tables relate to each other and determining the correct "join" paths to retrieve an answer.

Most current approaches rely on semantic similarity, comparing embeddings of the query and table headers. While effective for "toy" benchmarks with limited columns, this strategy collapses in real-world industrial scenarios. For instance, in the CISS dataset, a single database might contain dozens of tables with hundreds of columns. In such complex environments, LLMs frequently hallucinate incorrect join paths or fail to identify relevant attributes entirely.

The SGAM Framework

The Schema Graph-Assisted Multi-table QA (SGAM) framework addresses this bottleneck by replacing unreliable LLM-based semantic matching with a human-curated schema graph. The framework follows a three-step process to scaffold the LLM’s reasoning:

  1. Attribute-Level Retrieval: The system decomposes a natural language query into constraints (e.g., "Case ID 1234") and a question focus (e.g., "driver's age"). A keyword-based embedding strategy then maps these segments to specific database attributes.
  2. Graph-Based Information Extraction: This core innovation utilizes a directed Schema Graph where nodes represent columns and edges represent relationships (Primary Keys, semantic dependencies, or inter-table joins). The system performs a directed path search to find the most logical reasoning chain connecting retrieved attributes.
  3. Path Pruning and Merging: To maintain efficiency, redundant paths are truncated and sub-paths within the same table are merged. This ensures the LLM receives only the minimal, necessary context to generate a natural language answer or SQL query.
The SGAM framework workflow, illustrating the transition from user query to graph-based extraction and final LLM answer generation.

Experimental Evaluation

The framework was evaluated on two primary benchmarks:

  • BIRD: A Text-to-SQL benchmark, specifically the complex Olympics and Financial subsets.
  • CISS (Crash Investigation Sampling System): A realistic dataset based on US crash data, featuring 38 tables and an average of 30.2 attributes per table—significantly more complex than standard benchmarks like BIRD (~7 attributes/table).

Key Results and Insights

The integration of a schema graph significantly reduces reliance on the LLM's internal structural knowledge, allowing it to focus on linguistic synthesis.

Performance Gains

On the BIRD Olympics dataset, SGAM achieved an Execution Accuracy (EX) of 83.19%, outperforming previous state-of-the-art methods like AskData, even when those methods utilized "oracle" human hints. In the Financial dataset, adding graph assistance to GPT-4o resulted in an F1 score jump from 17.68% to 56.87%.

Handling Multi-Hop Complexity

The most striking improvements were observed in multi-hop reasoning. On the CISS dataset, questions requiring jumps across three or more tables saw a dramatic accuracy increase. For example, GPT-4o’s accuracy on 3-hop questions improved from 62.16% to 91.89% when utilizing SGAM’s decomposition and graph-search modules.

Performance comparison across different hop complexities, showing how graph guidance (Q-d model) enhances accuracy for various LLMs on the CISS dataset.

Model Efficiency

A key finding is that graph guidance enables smaller, open-source models (e.g., Qwen2.5-7B) to perform competitively with proprietary models like GPT-4o. This suggests that structural database understanding can be effectively offloaded to a lightweight graph, democratizing high-performance multi-table QA.

Conclusion

SGAM demonstrates that human-curated relational knowledge is a powerful tool for overcoming the limitations of LLMs in complex tabular environments. By explicitly encoding join paths, the framework provides a transparent and controllable "map" for reasoning, significantly improving accuracy and reducing hallucinations in industrial-scale multi-table QA.

Summary updated

BibTeX
@misc{wang2025plugging,
  author = {Xixi Wang and Miguel Costa and Jordanka Kovaceva and Shuai Wang and Francisco C. Pereira},
  title = {{Plugging Schema Graph into Multi-Table QA: A Human-Guided Framework for Reducing LLM Reliance}},
  year = {2025},
  eprint = {2506.04427},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.04427},
}
Figure