arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.20975cs.SEcs.AIcs.DB
收藏

Geo-FuB:一种利用大语言模型构建地理空间代码生成任务算子-函数知识库的方法

Geo-FuB: A Method for Constructing an Operator-Function Knowledge Base for Geospatial Code Generation Tasks Using Large Language Models

Wuhan University(武汉大学)

Shuyang Hou, Anqi Zhao, Jianyuan Liang, Zhangxiao Shen, Huayi Wu

AI总结:

本文提出Geo-FuB框架,利用大语言模型和检索增强生成构建地理空间算子-函数知识库,通过Geo-FuSE、Geo-FuST和Geo-FuM技术,从154,075个脚本中构建知识库,总体准确率达88.89%,可优化地理空间代码生成。

摘要:

时空数据的兴起以及对高效地理空间建模的需求,激发了人们利用大语言模型(LLMs)自动化完成这些任务的兴趣。然而,通用大语言模型由于缺乏关于函数和算子的领域特定知识,在地理空间代码生成中常常产生错误。为解决这一问题,本文提出了一种检索增强生成(RAG)方法,利用外部的地理空间函数和算子知识库。本研究引入了一个框架来构建这样的知识库,利用地理空间脚本语义。该框架包括:函数语义框架构建(Geo-FuSE)、频繁算子组合统计(Geo-FuST)和语义映射(Geo-FuM)。利用思维链、TF-IDF和APRIORI算法等技术来推导和对齐地理空间函数。一个示例知识库Geo-FuB,基于154,075个Google Earth Engine脚本构建,可在GitHub上获取。评估指标显示高准确性,总体达到88.89%,其中结构准确性和语义准确性分别为92.03%和86.79%。本文强调了Geo-FuB通过RAG和微调范式优化地理空间代码生成的潜力。

英文摘要:

The rise of spatiotemporal data and the need for efficient geospatial modeling have spurred interest in automating these tasks with large language models (LLMs). However, general LLMs often generate errors in geospatial code due to a lack of domain-specific knowledge on functions and operators. To address this, a retrieval-augmented generation (RAG) approach, utilizing an external knowledge base of geospatial functions and operators, is proposed. This study introduces a framework to construct such a knowledge base, leveraging geospatial script semantics. The framework includes: Function Semantic Framework Construction (Geo-FuSE), Frequent Operator Combination Statistics (Geo-FuST), and Semantic Mapping (Geo-FuM). Techniques like Chain-of-Thought, TF-IDF, and the APRIORI algorithm are utilized to derive and align geospatial functions. An example knowledge base, Geo-FuB, built from 154,075 Google Earth Engine scripts, is available on GitHub. Evaluation metrics show a high accuracy, reaching 88.89% overall, with structural and semantic accuracies of 92.03% and 86.79% respectively. Geo-FuB's potential to optimize geospatial code generation through the RAG and fine-tuning paradigms is highlighted.

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

↑