GeoCode-GPT: A Large Language Model for Geospatial Code Generation Tasks
Not on the map. Why?
Abstract (arXiv)
The increasing demand for spatiotemporal data and modeling tasks in geosciences has made geospatial code generation technology a critical factor in enhancing productivity. Although large language models (LLMs) have demonstrated potential in code generation tasks, they often encounter issues such as refusal to code or hallucination in geospatial code generation due to a lack of domain-specific knowledge and code corpora. To address these challenges, this paper presents and open-sources the GeoCode-PT and GeoCode-SFT corpora, along with the GeoCode-Eval evaluation dataset. Additionally, by leveraging QLoRA and LoRA for pretraining and fine-tuning, we introduce GeoCode-GPT-7B, the first LLM focused on geospatial code generation, fine-tuned from Code Llama-7B. Furthermore, we establish a comprehensive geospatial code evaluation framework, incorporating option matching, expert validation, and prompt engineering scoring for LLMs, and systematically evaluate GeoCode-GPT-7B using the GeoCode-Eval dataset. Experimental results show that GeoCode-GPT outperforms other models in multiple-choice accuracy by 9.1% to 32.1%, in code summarization ability by 1.7% to 25.4%, and in code generation capability by 1.2% to 25.1%. This paper provides a solution and empirical validation for enhancing LLMs' performance in geospatial code generation, extends the boundaries of domain-specific model applications, and offers valuable insights into unlocking their potential in geospatial code generation.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 3 of its 21 references that are in the map. First posted on arXiv 22 Oct 2024.
Builds on
3 of 21 references.
References · 3
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2023BloombergGPT: A Large Language Model for Financecited by 923
- 2024Fine-tuning and Utilization Methods of Domain-specific LLMscited by 35
Built on by
Citing papers per year: 2024: 2; 2025: 5; 2026: 4.
11 papers.
- 2025GIScience in the Era of Artificial Intelligence: A Research Agenda Towards Autonomous GIScited by 13
- 2024GEE-OPs: An Operator Knowledge Base for Geospatial Code Generation on the Google Earth Engine Platform Powered by Large Language Modelscited by 3
- 2026Agentic AI in Remote Sensing: Foundations, Taxonomy, and Emerging Systemscited by 3
- 2025GeoSQL-Eval: First Evaluation of LLMs on PostGIS-Based NL2GeoSQL Queriescited by 2
- 2024Geo-FuB: A Method for Constructing an Operator-Function Knowledge Base for Geospatial Code Generation Tasks Using Large Language Modelscited by 1
- 2025From PowerPoint UI Sketches to Web-Based Applications: Pattern-Driven Code Generation for GIS Dashboard Development Using Knowledge-Augmented LLMs, Context-Aware Visual Prompting, and the React Frameworkcited by 1
- 2025Thinking on Maps: How Foundation Model Agents Explore, Remember, and Reason Map Environmentscited by 1
- 2025AutoGEEval: A Multimodal and Automated Framework for Geospatial Code Generation on GEE with Large Language Modelscited by 0
- 2026GISclaw: A Comprehensive Open-Source LLM Agent System for Realistic Multi-Step Geospatial Analysiscited by 0
- 2026GeoContra: From Fluent GIS Code to Verifiable Spatial Analysis with Geography-Grounded Repaircited by 0
- 2026Securing Multi-Agent GIS Systems: Risk Evaluation and Prompt Hardening Optimizationcited by 0
- 2026Securing Multi-Agent GIS Systems: Risk Evaluation and Prompt Hardening Optimization13 Jun 2026
- 2026GeoContra: From Fluent GIS Code to Verifiable Spatial Analysis with Geography-Grounded Repair1 May 2026
- 2026GISclaw: A Comprehensive Open-Source LLM Agent System for Realistic Multi-Step Geospatial Analysis27 Mar 2026
- 2026Agentic AI in Remote Sensing: Foundations, Taxonomy, and Emerging Systems5 Jan 2026
- 2025Thinking on Maps: How Foundation Model Agents Explore, Remember, and Reason Map Environments30 Dec 2025
- 2025GeoSQL-Eval: First Evaluation of LLMs on PostGIS-Based NL2GeoSQL Queries28 Sep 2025
- 2025AutoGEEval: A Multimodal and Automated Framework for Geospatial Code Generation on GEE with Large Language Models19 May 2025
- 2025GIScience in the Era of Artificial Intelligence: A Research Agenda Towards Autonomous GIS31 Mar 2025
- 2025From PowerPoint UI Sketches to Web-Based Applications: Pattern-Driven Code Generation for GIS Dashboard Development Using Knowledge-Augmented LLMs, Context-Aware Visual Prompting, and the React Framework12 Feb 2025
- 2024GEE-OPs: An Operator Knowledge Base for Geospatial Code Generation on the Google Earth Engine Platform Powered by Large Language Models7 Dec 2024
- 2024Geo-FuB: A Method for Constructing an Operator-Function Knowledge Base for Geospatial Code Generation Tasks Using Large Language Models28 Oct 2024