Author:
Li Haoyang,Zhang Jing,Li Cuiping,Chen Hong
Abstract
One of the recent best attempts at Text-to-SQL is the pre-trained language model. Due to the structural property of the SQL queries, the seq2seq model takes the responsibility of parsing both the schema items (i.e., tables and columns) and the skeleton (i.e., SQL keywords). Such coupled targets increase the difficulty of parsing the correct SQL queries especially when they involve many schema items and logic operators. This paper proposes a ranking-enhanced encoding and skeleton-aware decoding framework to decouple the schema linking and the skeleton parsing. Specifically, for a seq2seq encoder-decode model, its encoder is injected by the most relevant schema items instead of the whole unordered ones, which could alleviate the schema linking effort during SQL parsing, and its decoder first generates the skeleton and then the actual SQL query, which could implicitly constrain the SQL parsing. We evaluate our proposed framework on Spider and its three robustness variants: Spider-DK, Spider-Syn, and Spider-Realistic. The experimental results show that our framework delivers promising performance and robustness. Our code is available at https://github.com/RUCKBReasoning/RESDSQL.
Publisher
Association for the Advancement of Artificial Intelligence (AAAI)
Cited by
16 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Graph Reasoning Enhanced Language Models for Text-to-SQL;Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval;2024-07-10
2. The Dawn of Natural Language to SQL: Are We Fully Ready?;Proceedings of the VLDB Endowment;2024-07
3. Evaluating Ambiguous Questions in Semantic Parsing;2024 IEEE 40th International Conference on Data Engineering Workshops (ICDEW);2024-05-13
4. Metasql: A Generate-Then-Rank Framework for Natural Language to SQL Translation;2024 IEEE 40th International Conference on Data Engineering (ICDE);2024-05-13
5. PURPLE: Making a Large Language Model a Better SQL Writer;2024 IEEE 40th International Conference on Data Engineering (ICDE);2024-05-13