arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2509.08863cs.SE
收藏

GeoJSON代理:一种用于地理空间分析的多智能体LLM架构——功能调用与代码生成

GeoJSON Agents:A Multi-Agent LLM Architecture for Geospatial Analysis-Function Calling vs Code Generation

Zhejiang Agriculture and Forestry University(浙江农林大学);Zhejiang University(浙江大学);Moganshan Geospatial Information Laboratory(莫干山地理信息实验室)

Qianqian Luo, Qingming Lin, Liuchang Xu, Sensen Wu, Ruichen Mao, Chao Wang, Hailin Feng, Bo Huang, Zhenhong Du

AI总结:

GeoJSON代理通过功能调用与代码生成技术,提升地理空间分析任务的准确性和稳定性,展现多智能体LLM在复杂任务中的优势。

摘要:

大型语言模型(LLM)在任务自动化和自然语言理解方面已取得显著进展。然而,缺乏地理信息科学(GIS)领域专业知识,它们在处理复杂任务时仍然面临准确性降低和性能不稳定的问题。为解决这些挑战,我们提出了GeoJSON代理——一种专门用于地理空间分析的新型多智能体LLM架构。该框架通过两种LLM增强技术:功能调用和代码生成,将自然语言指令转换为结构化的GeoJSON操作。该架构集成了三个核心组件:任务解析、智能体协作和结果整合。规划智能体系统地将用户定义的任务分解为可执行的子任务,而工作智能体通过调用预定义的功能API或生成并执行基于Python的分析代码来执行空间数据处理和分析。系统通过迭代优化产生可重用、符合标准的GeoJSON输出。为评估这两种方法,我们构建了一个包含70个任务的基准测试集,涵盖基础、中级和高级复杂性级别,并使用OpenAI的GPT-4o作为核心模型进行实验。结果显示,基于代码生成的智能体准确率为97.14%,而基于功能调用的智能体准确率为85.71%,均显著高于最佳表现的一般用途模型(48.57%)。比较分析显示,代码生成在复杂、开放性任务中具有更高的灵活性,而功能调用在结构化操作中提供了更强的执行稳定性。本研究代表了首次系统地将GeoJSON数据与多智能体LLM框架相结合,并提供了在地理空间背景下比较两种主流增强方法的实证证据。

英文摘要:

Large Language Models (LLMs) have demonstrated substantial progress in task automation and natural language understanding. However, without domain expertise in geographic information science (GIS), they continue to encounter limitations including reduced accuracy and unstable performance when processing complex tasks. To address these challenges, we propose GeoJSON Agents-a novel multi-agent LLM architecture specifically designed for geospatial analysis. This framework transforms natural language instructions into structured GeoJSON operations through two LLM enhancement techniques: Function Calling and Code Generation. The architecture integrates three core components: task parsing, agent collaboration, and result integration. The Planner agent systematically decomposes user-defined tasks into executable subtasks, while Worker agents perform spatial data processing and analysis either by invoking predefined function APIs or by generating and executing Python-based analytical code. The system produces reusable, standards-compliant GeoJSON outputs through iterative refinement. To evaluate both approaches, we constructed a benchmark comprising 70 tasks spanning basic, intermediate, and advanced complexity levels, conducting experiments with OpenAI's GPT-4o as the core model. Results indicate that the Code Generation-based agent achieved 97.14% accuracy, while the Function Calling-based agent attained 85.71%-both significantly outperforming the best-performing general-purpose model (48.57%). Comparative analysis reveals Code Generation offers superior flexibility for complex, open-ended tasks, whereas Function Calling provides enhanced execution stability for structured operations. This study represents the first systematic integration of GeoJSON data with a multi-agent LLM framework and provides empirical evidence comparing two mainstream enhancement methodologies in geospatial context.

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

↑