SPG-SQL: Semantic Path Guided SQL Generation Model with Gumbel-Enhanced Graph Pruning
Aiming to reduce the learning cost of database operations, Text-to-SQL methods provide a strategy of automatically generating structured query language (SQL), which is an active research direction by integrating natural language processing and database techniques. However, the existing approaches still have disadvantages in complex structure modeling, semantic path selection, and graph structure pruning, which affect the accuracy and robustness of query generation. To address these challenges, we propose a Semantic Path Guided SQL generation model (called SPG-SQL) that integrates heterogeneous graph modeling, path attention mechanisms, and soft pruning techniques to model semantic relationships between natural languages and database schemas in a hierarchical manner. Extensive experiments on the Spider benchmark demonstrate that SPG-SQL outperforms the state-of-the-art models in exact match accuracy, which validates its effectiveness and practicability.
Authors
- Haosong Gou (ORCID: https://orcid.org/0000-0002-7800-6248)
- Junrui Zhang (ORCID: https://orcid.org/0009-0005-8244-2770)
- Shaojie Qiao (ORCID: https://orcid.org/0000-0002-4703-780X)
- Gaoyi Zhang
- Nan Han (ORCID: https://orcid.org/0000-0003-3188-2811)
Institutions
- China Mobile (China) (CN)
- Chengdu University of Information Technology (CN)
Publication Details
- Published
- 2025-06-20
- DOI
- https://doi.org/10.1109/caibda65784.2025.11182823
- Primary Topic
- Semantic Web and Ontologies
- Type
- article
- Field-Weighted Citation Impact
- 0.00