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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

SPG-SQL: Semantic Path Guided SQL Generation Model with Gumbel-Enhanced Graph Pruning

Haosong Gou, Junrui Zhang, Shaojie Qiao, Gaoyi Zhang et al.
Semantic Web and Ontologies
article

SPG-SQL: Semantic Path Guided SQL Generation Model with Gumbel-Enhanced Graph Pruning

Haosong Gou, Junrui Zhang, Shaojie Qiao, Gaoyi Zhang, Nan Han
article en

Abstract

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.

China Mobile (China) (CN), Chengdu University of Information Technology (CN)
Openalex Percentile: Top 85%
Semantic Web and Ontologies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.