PSM-SQL: Progressive Schema Learning with Multi-granularity Semantics for Text-to-SQL
Zhuopan Yang, Yuanzhen Xie, Ruichao Zhong, Yunzhi Tan, Enjie Liu,, Zhenguo Yang, Mochi Gao, Bo Hu, Zang Li

TL;DR
This paper introduces PSM-SQL, a framework that progressively links schemas at multiple levels to improve the conversion of natural language questions into SQL queries, effectively reducing schema redundancy and domain shift issues.
Contribution
It proposes a novel multi-granularity schema linking framework with a chain loop strategy, enhancing semantic learning and schema reasoning in text-to-SQL tasks.
Findings
Achieves 1-3% higher accuracy than existing methods.
Effectively models schema interactions at multiple levels.
Reduces schema redundancy through progressive linking.
Abstract
It is challenging to convert natural language (NL) questions into executable structured query language (SQL) queries for text-to-SQL tasks due to the vast number of database schemas with redundancy, which interferes with semantic learning, and the domain shift between NL and SQL. Existing works for schema linking focus on the table level and perform it once, ignoring the multi-granularity semantics and chainable cyclicity of schemas. In this paper, we propose a progressive schema linking with multi-granularity semantics (PSM-SQL) framework to reduce the redundant database schemas for text-to-SQL. Using the multi-granularity schema linking (MSL) module, PSM-SQL learns the schema semantics at the column, table, and database levels. More specifically, a triplet loss is used at the column level to learn embeddings, while fine-tuning LLMs is employed at the database level for schema…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNatural Language Processing Techniques · Topic Modeling
MethodsFocus · Triplet Loss
