arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.17031cs.SEcs.AI
收藏

GeoCode-GPT:面向地理空间代码生成任务的大型语言模型

GeoCode-GPT: A Large Language Model for Geospatial Code Generation Tasks

State Key Laboratory of Information Engineering in Surveying, Mapping and Remote Sensing, Wuhan University(武汉大学测绘遥感信息工程国家重点实验室)

Shuyang Hou, Zhangxiao Shen, Anqi Zhao, Jianyuan Liang, Zhipeng Gui, Xuefeng Guan, Rui Li, Huayi Wu

AI总结:

本文提出并开源GeoCode语料与评估数据集,基于Code Llama-7B微调出首个地理空间代码生成大模型GeoCode-GPT-7B,并通过系统评估验证其在多项指标上显著优于其他模型。

摘要:

地球科学领域对时空数据和建模任务日益增长的需求,使地理空间代码生成技术成为提升生产力的关键因素。尽管大型语言模型(LLMs)在代码生成任务中已展现出潜力,但由于缺乏领域特定知识和代码语料,它们在地理空间代码生成中经常遇到拒绝编码或产生幻觉等问题。为应对这些挑战,本文提出并开源了GeoCode-PT和GeoCode-SFT语料库,以及GeoCode-Eval评估数据集。此外,通过利用QLoRA和LoRA进行预训练和微调,我们推出了GeoCode-GPT-7B,这是首个专注于地理空间代码生成的LLM,基于Code Llama-7B微调而来。进一步地,我们建立了一个全面的地理空间代码评估框架,融合了选项匹配、专家验证和面向LLM的提示工程评分,并利用GeoCode-Eval数据集对GeoCode-GPT-7B进行了系统评估。实验结果表明,GeoCode-GPT在多项选择准确率上比其他模型高出9.1%至32.1%,在代码摘要能力上高出1.7%至25.4%,在代码生成能力上高出1.2%至25.1%。本文为提升LLM在地理空间代码生成中的性能提供了解决方案和实证验证,拓展了领域特定模型应用的边界,并为释放其在地理空间代码生成中的潜力提供了有价值的见解。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑