pith. sign in

arxiv: 2501.17174 · v1 · pith:Q7IQPEXGnew · submitted 2025-01-23 · 💻 cs.DB · cs.AI· cs.CL

Extractive Schema Linking for Text-to-SQL

classification 💻 cs.DB cs.AIcs.CL
keywords schemalinkingapproachdatabasetext-to-sqlcolumnsevenextractive
0
0 comments X
read the original 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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 3 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. ACE-SQL: Adaptive Co-Optimization via Empirical Credit Assignment for Text-to-SQL

    cs.CL 2026-06 unverdicted novelty 7.0

    ACE-SQL jointly optimizes schema linking and SQL generation via RL with empirical credit assignment from execution-correct rollouts, achieving 65.3% greedy execution accuracy on BIRD Dev using 0.93k output tokens.

  2. SemanticAgent: A Semantics-Aware Framework for Text-to-SQL Data Synthesis

    cs.AI 2026-04 unverdicted novelty 6.0

    SemanticAgent introduces a three-stage semantic analysis, synthesis, and verification process that produces higher-quality text-to-SQL training data than prior execution-only methods.

  3. Schema-First Retrieval: Embedding Catalogs for Natural Language Analytics

    cs.IR 2026-06 unverdicted novelty 5.0

    Schema-First Retrieval embeds catalog metadata rather than rows and uses parallel retrieval plus reranking to raise table and column recall and cut SQL execution errors on three benchmarks.