pith. sign in

arxiv: 2302.05965 · v3 · pith:RYR2RWZKnew · submitted 2023-02-12 · 💻 cs.CL

RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQL

classification 💻 cs.CL
keywords parsingschemaskeletonframeworkitemslinkingmodelqueries
0
0 comments X
read the original 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.

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 1 Pith paper

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

  1. Traceable Fault Diagnosis for Battery Energy Storage Systems via Retrieval-Augmented Multi-Agent O&M Assistant

    cs.AI 2026-07 unverdicted novelty 4.0

    A retrieval-augmented multi-agent system for traceable fault diagnosis in battery energy storage systems, with BESS-specific routing, schema-constrained DB access, hybrid retrieval, and preliminary internal evaluation.