Skip to content

mahadi-nahid/BiSchemaLink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Rethinking Schema Linking: A Context-Aware Bidirectional Retrieval Approach for Text-to-SQL [EACL 2026]

BiSchemaLink implements a context-aware bidirectional schema linking framework for Text-to-SQL, combining table-first and column-first retrieval to improve schema recall, reduce false positives, and boost execution accuracy on large databases.

Abstract

Schema linking -- the process of aligning natural language questions with database schema elements -- is a critical yet underexplored component of Text-to-SQL systems. While recent methods have focused primarily on improving SQL generation, they often neglect the retrieval of relevant schema elements, which can lead to hallucinations and execution failures. In this work, we propose a context-aware bidirectional schema retrieval framework that treats schema linking as a standalone problem. Our approach combines two complementary strategies: table-first retrieval followed by column selection, and column-first retrieval followed by table selection. It is further augmented with techniques such as question decomposition, keyword extraction, and keyphrase extraction. Through comprehensive evaluations on challenging benchmarks such as BIRD and Spider, we demonstrate that our method significantly improves schema recall while reducing false positives. Moreover, SQL generation using our retrieved schema consistently outperforms full-schema baselines and closely approaches oracle performance, all without requiring query refinement. Notably, our method narrows the performance gap between full and perfect schema settings by 50%. Our findings highlight schema linking as a powerful lever for enhancing Text-to-SQL accuracy and efficiency.

Method Overview

Code and Data

Coming soon.

Paper

If you want to cite our papers, please use:

@inproceedings{nahid-etal-2026-rethinking,
    title = "Rethinking Schema Linking: A Context-Aware Bidirectional Retrieval Approach for Text-to-{SQL}",
    author = "Nahid, Md Mahadi Hasan  and
      Rafiei, Davood  and
      Zhang, Weiwei  and
      Zhang, Yong",
    editor = "Demberg, Vera  and
      Inui, Kentaro  and
      Marquez, Llu{\'i}s",
    booktitle = "Findings of the {A}ssociation for {C}omputational {L}inguistics: {EACL} 2026",
    month = mar,
    year = "2026",
    address = "Rabat, Morocco",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2026.findings-eacl.236/",
    doi = "10.18653/v1/2026.findings-eacl.236",
    pages = "4516--4546",
    ISBN = "979-8-89176-386-9",
    abstract = "Schema linking{---}the process of aligning natural language questions with database schema elements{---}is a critical yet underexplored component of Text-to-SQL systems. While recent methods have focused primarily on improving SQL generation, they often neglect the retrieval of relevant schema elements, which can lead to hallucinations and execution failures. In this work, we propose a context-aware bidirectional schema retrieval framework that treats schema linking as a standalone problem. Our approach combines two complementary strategies: table-first retrieval followed by column selection, and column-first retrieval followed by table selection. It is further augmented with techniques such as question decomposition, keyword extraction, and keyphrase extraction. Through comprehensive evaluations on challenging benchmarks such as BIRD and Spider, we demonstrate that our method significantly improves schema recall while reducing false positives. Moreover, SQL generation using our retrieved schema consistently outperforms full-schema baselines and closely approaches oracle performance, all without requiring query refinement. Notably, our method narrows the performance gap between full and perfect schema settings by 50{\%}. Our findings highlight schema linking as a powerful lever for enhancing Text-to-SQL accuracy and efficiency."
}

About

[EACL 2026] Rethinking Schema Linking: A Context-Aware Bidirectional Retrieval Approach for Text-to-SQL

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors