Chain-of-programming (CoP): empowering large language models for geospatial code generation task
International Journal of Digital Earth · 25.08.2025 · 18 (1)
DOI: 10.1080/17538947.2025.2509812 ↗Kurz gefasst
Fachartikel in der Zeitschrift International Journal of Digital Earth, online erschienen am 27.05.2025. Verfasst von Shuyang Hou und 7 weiteren Autor:innen. Die Arbeit wurde bisher 29-mal zitiert (Crossref) und nennt 69 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY-NC 4.0). Gefördert von: National Natural Science Foundation of China.
Abstract (Originalsprache)
Large Language Models (LLMs) have driven the development of geospatial code generation but face challenges such as incomplete user requirements and insufficient knowledge of platform-specific syntax, often leading to ‘code hallucination.’ To address this issue, this paper proposes the Chain-of-Programming (CoP) framework, which divides the generation process into five steps: requirement analysis, algorithm design, code implementation, debugging, and annotation. The framework incorporates a shared information pool, knowledge base retrieval, and user feedback mechanisms, enabling end-to-end code generation without the need for model fine-tuning. Based on geospatial problem classification and evaluation benchmarks, CoP significantly improves the logical clarity, syntactical correctness, and executability of the generated code, achieving performance improvements ranging from 3.0% to 48.8%. Comparative and ablation experiments further validate the advantages of CoP and the necessity of its core components. Case studies on building visualization and fire data analysis demonstrate the practical value of the framework. This study also develops and open-sources a prototype system, offering a systematic, step-by-step solution for LLM-based geospatial code generation and providing valuable insights for code generation in other specialized domains.
Förderung
- National Natural Science Foundation of China
Zitieren
APA
Hou, S., Jiao, H., Shen, Z., Liang, J., Zhao, A., Zhang, X., Wang, J., & Wu, H. (2025). Chain-of-programming (CoP): empowering large language models for geospatial code generation task. International Journal of Digital Earth, 18(1). https://doi.org/10.1080/17538947.2025.2509812
Vancouver
Hou S, Jiao H, Shen Z, Liang J, Zhao A, Zhang X, et al. Chain-of-programming (CoP): empowering large language models for geospatial code generation task. International Journal of Digital Earth. 2025;18(1). doi:10.1080/17538947.2025.2509812
BibTeX
@article{Hou2025,
author = {Hou, Shuyang and Jiao, Haoyue and Shen, Zhangxiao and Liang, Jianyuan and Zhao, Anqi and Zhang, Xiaopu and Wang, Jianxun and Wu, Huayi},
title = {Chain-of-programming (CoP): empowering large language models for geospatial code generation task},
journal = {International Journal of Digital Earth},
year = {2025},
volume = {18},
number = {1},
doi = {10.1080/17538947.2025.2509812}
}
EUVIMED