Nabil: A Text-to-SQL Model Based on Brain-Inspired Computing Techniques and Large Language Modeling
Human-database interaction is inevitable in intelligent system applications, and accurately converting user-entered natural language into database query language is a critical step. To improve the accuracy, generalization, and robustness of text-to-SQL, we propose Nabil (a model for natural language conversion query language based on brain-inspired computing technology and a large language model). This model first leverages the spatiotemporal encoding capabilities of spiking neural networks to capture semantic features of natural language, then fuses these features with those generated by a large language model. Finally, a champion model is designed to select the optimal query from multiple candidate SQLs. Experiments were conducted on three database engines, DuckDB, MySQL, and PostgreSQL, and the model’s effectiveness was verified on benchmark datasets such as BIRD. The results show that Nabil outperforms existing baseline methods in both execution accuracy and effective efficiency scores. Furthermore, our proposed normalization and syntax tree abstraction algorithms further enhance the champion model’s discriminative capabilities, providing new insights for text-to-SQL research.
Authors
- Tongming Zhou (ORCID: https://orcid.org/0000-0002-5295-635X)
- Huaizhong Zhu (ORCID: https://orcid.org/0000-0002-8498-5382)
- Xufeng Ling (ORCID: https://orcid.org/0000-0001-5217-3614)
- Yanni Zhao (ORCID: https://orcid.org/0009-0003-3049-3504)
- Shijing Hu (ORCID: https://orcid.org/0009-0001-8509-1751)
- Nan Li (ORCID: https://orcid.org/0000-0002-8261-1352)
- Sitong Shang
- Feng Zhou (ORCID: https://orcid.org/0000-0001-5810-701X)
- Xiaozheng Du
Institutions
- Tongji University (CN)
- Shanghai Normal University (CN)
- Fudan University (CN)
Publication Details
- Journal
- Electronics
- Published
- 2025-09-30
- DOI
- https://doi.org/10.3390/electronics14193910
- Citations
- 1
- Primary Topic
- Neural Networks and Applications
- Type
- article
- Field-Weighted Citation Impact
- 2.48
Funders
- Strong
- Fudan University