Natural Language to Overpass Query: A Multi-Step Approach Using Task Decomposition and Key-Value Correction
We investigate the challenge of generating OverpassQL from natural language in the Text-to-OverpassQL task and explore the data in the existing OverpassNL dataset. To address the structural mismatch between natural language and OverpassQL, we propose a task decomposition-based multi-step prompting approach that generates auxiliary information to help align natural language with OverpassQL structures, thereby enhancing model performance. Furthermore, we introduce a Key-Value Correction Module specifically targeting key-value pair matching difficulties in Text-to-OverpassQL tasks, designed to rectify potential syntactic errors and key-value mismatches in generated queries. Our experiments on GPT-3.5 Turbo and GPT-4 demonstrate absolute performance gains of <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$\mathbf{1. 4 \%}$</tex> and 0.6 % respectively. Under retrieval-augmented setting ablation, we achieve a more significant 3.5 % improvement with GPT-3.5 Turbo. Experimental results confirm that our method consistently improves performance across various models and configurations, particularly showing enhanced effectiveness in medium and small-scale models.
Authors
- Lin Ma (ORCID: https://orcid.org/0000-0002-7331-6132)
- Xinrui Zhu
- Haodi Zhang (ORCID: https://orcid.org/0000-0001-8470-7246)
- Yuanfeng Song (ORCID: https://orcid.org/0000-0003-2221-9807)
- Xuan Wang (ORCID: https://orcid.org/0000-0002-0011-5663)
Institutions
- Shenzhen University (CN)
- Chinese Academy of Sciences (CN)
- Hebei Academy of Sciences (CN)
- Nanjing University (CN)
Publication Details
- Published
- 2025-06-02
- DOI
- https://doi.org/10.1109/mdm65600.2025.00024
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 0.00