Extractive Schema Linking for Text-to-SQL

Michael Glass, Mustafa Eyceoz, Dharmashankar Subramanian, Gaetano Rossiello, Long Vu +1 more
1/23/2025
cs.DBcs.AIcs.CL

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Text-to-SQL is emerging as a practical interface for real world databases. The dominant paradigm for Text-to-SQL is cross-database or schema-independent, supporting application schemas unseen during training. The schema of a database defines the tables, columns, column types and foreign key connections between tables. Real world schemas can be large, containing hundreds of columns, but for any particular query only a small fraction will be relevant. Placing the entire schema in the prompt for an LLM can be impossible for models with smaller token windows and expensive even when the context window is large enough to allow it. Even apart from computational considerations, the accuracy of the model can be improved by focusing the SQL generation on only the relevant portion of the database. Schema linking identifies the portion of the database schema useful for the question. Previous work on schema linking has used graph neural networks, generative LLMs, and cross encoder classifiers. We introduce a new approach to adapt decoder-only LLMs to schema linking that is both computationally more efficient and more accurate than the generative approach. Additionally our extractive approach permits fine-grained control over the precision-recall trade-off for schema linking.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{glass2025extractive,
  title  = {Extractive Schema Linking for Text-to-SQL},
  author = {Michael Glass and Mustafa Eyceoz and Dharmashankar Subramanian and Gaetano Rossiello and Long Vu and Alfio Gliozzo},
  year   = {2025},
  eprint = {2501.17174},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.17174v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.17174.svg)](https://codeofpaper.com/paper/2501.17174)

Discussion