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.
Foundation Models for Geospatial Reasoning: Assessing Capabilities of Large Language Models in Understanding Geometries and Topological Spatial Relations
GeoDS Lab, Department of Geography, University of Wisconsin-Madison, USA(威斯康星大学麦迪逊分校地理系GeoDS实验室);Department of Geography and Regional Research, University of Vienna, Austria(维也纳大学地理与区域研究系);Department of Geography, University of California-Santa Barbara, USA(加州大学圣塔芭芭拉分校地理系)
GeoGPT: Understanding and Processing Geospatial Tasks through An Autonomous GPT
School of Geography and Information Engineering, China University of Geosciences(中国地质大学地理与信息工程学院);National Engineering Research Center for Geographic Information System, China University of Geosciences(中国地质大学地理信息系统国家工程研究中心)
IC-EO: Interpretable Code-based assistant for Earth Observation
Université Paris Cité, LIPADE, F-75006 Paris, France askEarth AG, Zurich, Switzerland ESA -lab, Frascati, Italy ESA, Advanced Concepts;Studies Office, Noordwijk, the Netherlands
ShapefileGPT: A Multi-Agent Large Language Model Framework for Automated Shapefile Processing
School of Mathematics and Computer Science, Zhejiang Agriculture and Forestry University(浙江农林大学数学与计算机科学学院);School of Earth Sciences, Zhejiang University(浙江大学地球科学学院);Xiaohongshu(小红书);Baichuan Inc.(百川智能)
CURIE: Evaluating LLMs On Multitask Scientific Long Context Understanding and Reasoning
Google(谷歌);Harvard(哈佛大学);University of Zurich(苏黎世大学);NIST(国家标准与技术研究院);UMD College Park(大学公园大学分校);Rutgers(罗格斯大学);FU Berlin(柏林自由大学);Modelyst;Cornell(康奈尔大学)