Multi-Hop Table Retrieval for Open-Domain Text-to-SQL

Xuanliang Zhang, Dingzirui Wang, Longxu Dou, Qingfu Zhu, Wanxiang Che · DOI

Abstract

Open-domain text-to-SQL tasks require identifying relevant tables from large databases before query generation. Traditional single-hop retrieval often fails on complex queries requiring multiple joins. This paper introduces MURRE (Multi-hop table Retrieval with REmoval), a strategy that iteratively strips satisfied information from user queries to focus on missing schema components. MURRE achieves a 5.7% performance boost over state-of-the-art methods by avoiding the "redundancy trap" common in standard retrieval-augmented generation.

Introduction

In open-domain text-to-SQL, systems must navigate massive databases to locate the correct tables for a given natural language question. While single-hop retrieval works for simple queries, it struggles with complex questions that necessitate joining multiple tables.

Existing multi-hop retrieval techniques from Open-Domain Question Answering (ODQA) typically use a "supplementary" approach, adding retrieved context to the query. However, in text-to-SQL, this often leads to a redundancy trap. Because table names frequently have synonyms (e.g., "Employee" and "Staff"), a supplementary retriever may repeatedly find similar tables instead of the complementary ones needed for a join.

Comparison of Supplement vs. Removal strategies in multi-hop retrieval.

Methodology: MURRE

The proposed MURRE (Multi-hop table Retrieval with REmoval) framework addresses these challenges through an iterative "retrieval with removal" process using a beam search paradigm.

1. Retrieval Phase

Using SGPT, the system embeds the current "hop question" and candidate tables into a vector space. Relevance is determined by cosine similarity. To maintain robustness against early errors, MURRE employs a beam search, preserving the top $B$ paths throughout the process.

2. Removal Phase

The core innovation of MURRE is the removal step. An LLM (GPT-3.5-turbo) identifies which parts of the original query have been satisfied by the currently retrieved tables. It then rewrites the question to focus exclusively on unretrieved information. To bridge the semantic gap between natural language and structured data, the LLM represents satisfied information in a tabular format.

The iterative workflow of MURRE, showing retrieval, removal, and early stopping mechanisms.

3. Early Stopping and Scoring

If the LLM determines that the retrieved tables are sufficient, it triggers an Early Stop. A final scoring algorithm integrates probabilities across all hops and beams to select the optimal set of tables for SQL generation.

Experimental Evaluation

MURRE was evaluated on two benchmarks:

  • SpiderUnion: An open-domain adaptation of Spider (658 questions).
  • BirdUnion: A more challenging open-domain version of BIRD (1,534 questions) requiring complex joins across three or more tables.

Key Results

MURRE demonstrated a significant performance increase, achieving an average 5.7% improvement in recall and complete recall over the previous state-of-the-art, CRUSH. The gains were most pronounced on the BirdUnion dataset and "Extra Hard" queries, confirming the efficacy of multi-hop retrieval for complex schema mapping. Ablation studies revealed that removing the "Removal" component led to an 18.8% drop in complete recall on SpiderUnion, highlighting "subtraction" as the primary driver of success.

Discussion and Insights

The success of MURRE underscores the importance of subtraction over addition in structured data retrieval. By blinding the retriever to already-found tables, the system is forced to explore the secondary and tertiary entities mentioned in the query. Furthermore, the use of beam search is critical; it prevents the system from being derailed by a single "similar but wrong" table choice in early hops.

Conclusion and Future Work

While MURRE sets a new standard for open-domain table retrieval, it faces challenges regarding latency due to iterative LLM calls. Future work may explore incorporating feedback loops from the SQL generator to refine retrieval and extending the model to handle multi-turn conversational interfaces.

Summary updated

BibTeX
@inproceedings{zhang2025multi,
  author = {Xuanliang Zhang and Dingzirui Wang and Longxu Dou and Qingfu Zhu and Wanxiang Che},
  title = {{Multi-Hop Table Retrieval for Open-Domain Text-to-SQL}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=lpR1HGmhXo},
}
Figure