paper-with-me

홈 › Papers

Extractive Schema Linking for Text-to-SQL

2025-01-23 · Michael Glass, Mustafa Eyceoz, Dharmashankar Subramanian, Gaetano Rossiello, Long Vu, Alfio Gliozzo

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.

📄 PDF Abstract BibTeX arXiv:2501.17174

Code (0)

등록된 구현이 없습니다.

Tasks

Text to SQLText-To-SQL

Similar Papers 제목 키워드 기반

Track-SQL: Enhancing Generative Language Models with Dual-Extractive Modules for Schema and Context Tracking in Multi-turn Text-to-SQL

2026-03-06 · Bingfeng Chen, Shaobin Shi, Yongqi Luo, Boyan Xu 외 arxiv

Generative language models have shown significant potential in single-turn Text-to-SQL. However, their performance does not extend equivalently to multi-turn Text-to-SQL. This is primarily due to generative language mode…

Re-examining the Role of Schema Linking in Text-to-SQL

2020-11-01 · EMNLP 2020 11 · Wenqiang Lei, Weixin Wang, Zhixin Ma, Tian Gan 외

In existing sophisticated text-to-SQL models, schema linking is often considered as a simple, minor component, belying its importance. By providing a schema linking corpus based on the Spider text-to-SQL dataset, we syst…

Text to SQLText-To-SQL

Knapsack Optimization-based Schema Linking for LLM-based Text-to-SQL Generation

2025-02-18 · Zheng Yuan, Hao Chen, Zijin Hong, Qinggang Zhang 외

Generating SQLs from user queries is a long-standing challenge, where the accuracy of initial schema linking significantly impacts subsequent SQL generation performance. However, current schema linking models still strug…

Text to SQLText-To-SQL

The Death of Schema Linking? Text-to-SQL in the Age of Well-Reasoned Language Models

2024-08-14 · Karime Maamari, Fadhil Abubaker, Daniel Jaroslawicz, Amine Mhedhbi

Schema linking is a crucial step in Text-to-SQL pipelines. Its goal is to retrieve the relevant tables and columns of a target database for a user's query while disregarding irrelevant ones. However, imperfect schema lin…

Natural Language QueriesText to SQLText-To-SQL

Schema-R1: A reasoning training approach for schema linking in Text-to-SQL Task

2025-06-13 · Wuzhenghong Wen, Su Pan, Yuwei Sun

Schema linking is a critical step in Text-to-SQL task, aiming to accurately predict the table names and column names required for the SQL query based on the given question. However, current fine-tuning approaches for sch…

reinforcement-learningReinforcement LearningText to SQLText-To-SQL