paper-with-me

홈 › Papers

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

2025-02-18 · Zheng Yuan, Hao Chen, Zijin Hong, Qinggang Zhang, Feiran Huang, Qing Li, Xiao Huang

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 struggle with missing relevant schema elements or an excess of redundant ones. A crucial reason for this is that commonly used metrics, recall and precision, fail to capture relevant element missing and thus cannot reflect actual schema linking performance. Motivated by this, we propose enhanced schema linking metrics by introducing a restricted missing indicator. Accordingly, we introduce Knapsack optimization-based Schema Linking Approach (KaSLA), a plug-in schema linking method designed to prevent the missing of relevant schema elements while minimizing the inclusion of redundant ones. KaSLA employs a hierarchical linking strategy that first identifies the optimal table linking and subsequently links columns within the selected table to reduce linking candidate space. In each linking process, it utilizes a knapsack optimization approach to link potentially relevant elements while accounting for a limited tolerance of potentially redundant ones. With this optimization, KaSLA-1.6B achieves superior schema linking results compared to large-scale LLMs, including deepseek-v3 with the state-of-the-art (SOTA) schema linking method. Extensive experiments on Spider and BIRD benchmarks verify that KaSLA can significantly improve the SQL generation performance of SOTA Text2SQL models by substituting their schema linking processes.

📄 PDF Abstract BibTeX arXiv:2502.12911

Code (0)

등록된 구현이 없습니다.

Tasks

Text to SQLText-To-SQL

Similar Papers 제목 키워드 기반

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

SQL-to-Schema Enhances Schema Linking in Text-to-SQL

2024-05-15 · Sun Yang, Qiong Su, Zhishuai Li, Ziyue Li 외

In sophisticated existing Text-to-SQL methods exhibit errors in various proportions, including schema-linking errors (incorrect columns, tables, or extra columns), join errors, nested errors, and group-by errors. Consequ…

Text to SQLText-To-SQL

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

2026-06-04 · Xiaobing Chen, Ai Jian, Eryu Guo, Zhiqi Pang arxiv

Text-to-SQL maps natural language questions to executable SQL queries. Modern databases often contain large and complex schemas, making schema linking a critical step for accurate SQL generation. Existing methods either …

Reinforcement Learning

Rethinking Schema Linking: A Context-Aware Bidirectional Retrieval Approach for Text-to-SQL

2025-10-16 · Md Mahadi Hasan Nahid, Davood Rafiei, Weiwei Zhang, Yong Zhang arxiv

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 impro…

Keyphrase ExtractionKeyword Extraction

Extractive Schema Linking for Text-to-SQL

2025-01-23 · Michael Glass, Mustafa Eyceoz, Dharmashankar Subramanian, Gaetano Rossiello 외

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 …

Text to SQLText-To-SQL