Evaluation of Code LLMs on Geospatial Code Generation
Wrocław University of Science and Technology(弗罗茨瓦夫理工大学);INESC-ID;LUMLIS (Lisbon ELLIS Unit)(LUMLIS(里斯本ELLIS单元));Instituto Superior Técnico(高等技术学院);University of Lisbon(里斯本大学)
Piotr Gramacki, Bruno Martins, Piotr Szymański
备注:
7th ACM SIGSPATIAL International Workshop on AI for Geographic Knowledge Discovery (GeoAI'24)
软件开发支持工具已被研究了很长时间,近期的研究方法开始使用大语言模型(Large Language Models, LLMs)来生成代码。这类模型能够为数据科学和机器学习应用生成Python代码,对软件工程师很有帮助,因为它们可以提升日常工作的生产力。LLM还可以充当经验不足的软件开发人员的“导师”,是一种可行的学习支持工具。利用LLM生成高质量代码在地理空间数据科学领域也能发挥作用,但该领域存在不同的挑战,而且代码生成LLM通常未经过地理空间任务的评估。\n在本研究中,我们展示了如何基于一组精选的地理空间任务构建代码生成模型的评估基准。我们根据任务复杂度和所需工具对地理空间任务进行了分类,随后创建了一个数据集,其中的任务用于测试模型在空间推理、空间数据处理和地理空间工具使用方面的能力。该数据集由人工创建的特定编码问题构成,以保证高质量。针对每个问题,我们都提出了一组测试场景,能够自动检查生成代码的正确性。\n此外,我们还测试了一批现有的代码生成LLM在地理空间领域的代码生成能力。我们在公开GitHub仓库中分享了数据集和可复现的评估代码,认为该基准可在未来用于评估新的LLM。我们的数据集有望助力开发能够高精度解决地理空间编码任务的新模型,这类模型将推动打造专为地理空间应用定制的编码助手。
英文摘要:
Software development support tools have been studied for a long time, with recent approaches using Large Language Models (LLMs) for code generation. These models can generate Python code for data science and machine learning applications. LLMs are helpful for software engineers because they increase productivity in daily work. An LLM can also serve as a "mentor" for inexperienced software developers, and be a viable learning support. High-quality code generation with LLMs can also be beneficial in geospatial data science. However, this domain poses different challenges, and code generation LLMs are typically not evaluated on geospatial tasks. Here, we show how we constructed an evaluation benchmark for code generation models, based on a selection of geospatial tasks. We categorised geospatial tasks based on their complexity and required tools. Then, we created a dataset with tasks that test model capabilities in spatial reasoning, spatial data processing, and geospatial tools usage. The dataset consists of specific coding problems that were manually created for high quality. For every problem, we proposed a set of test scenarios that make it possible to automatically check the generated code for correctness. In addition, we tested a selection of existing code generation LLMs for code generation in the geospatial domain. We share our dataset and reproducible evaluation code on a public GitHub repository, arguing that this can serve as an evaluation benchmark for new LLMs in the future. Our dataset will hopefully contribute to the development new models capable of solving geospatial coding tasks with high accuracy. These models will enable the creation of coding assistants tailored for geospatial applications.
Mitigating Geospatial Knowledge Hallucination in Large Language Models: Benchmarking and Dynamic Factuality Aligning
College of AI, Tsinghua University(清华大学人工智能学院);Department of Electronic Engineering, BNRist, Tsinghua University(清华大学电子工程系);School of Electronic and Information Engineering, Beijing Jiaotong University(北京交通大学电子信息学院);Department of Computer Science and Technology, Tsinghua University(清华大学计算机科学与技术系)
AutoGEEval: A Multimodal and Automated Framework for Geospatial Code Generation on GEE with Large Language Models
Wuhan University(武汉大学);State Key Laboratory of Information Engineering in Surveying, Mapping and Remote Sensing, Wuhan University(武汉大学测绘遥感信息工程国家重点实验室);Collaborative Innovation Center of Geospatial Technology, Wuhan University(武汉大学地理空间技术协同创新中心);School of Resource and Environmental Sciences, Wuhan University(武汉大学资源与环境科学学院);School of Remote Sensing and Information Engineering, Wuhan University(武汉大学遥感信息工程学院)
Mil-SCORE: Benchmarking Long-Context Geospatial Reasoning and Planning in Large Language Models
University of Maryland, College Park MD, USA(马里兰大学);ERA Lab, University of South Florida, Tampa FL, USA(佛罗里达大学埃拉实验室);DEVCOM Army Research Laboratory, Aberdeen Proving Ground MD, USA(国防部陆军研究实验室);EEHPC Lab, Johns Hopkins University, Baltimore MD, USA(约翰霍普金斯大学EEHPC实验室)
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(中国地质大学地理信息系统国家工程研究中心)
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(加州大学圣塔芭芭拉分校地理系)
MapQaTor: An Extensible Framework for Efficient Annotation of Map-Based QA Datasets
Department of Computer Science and Engineering(计算机科学与工程系);Bangladesh University of Engineering and Technology (BUET)(孟加拉工程与技术大学);Faculty of Information Technology(信息技术学院);Monash University(墨尔本大学);Qatar Computing Research Institute (QCRI)(卡塔尔计算研究中心)
CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based Verification
Hong Kong Baptist University(香港浸会大学);UC Santa Barbara(加州大学圣巴巴拉分校);UC Berkeley(加州大学伯克利分校);Alibaba Group(阿里巴巴集团);The University of Tokyo(东京大学);University of Alberta(阿尔伯塔大学)
CityGPT: Empowering Urban Spatial Cognition of Large Language Models
Department of Electronic Engineering, BNRist, Tsinghua University(电子工程系、BNRist、清华大学);School of Electronic and Information Engineering, Beijing Jiaotong University(电子信息工程学院、北京交通大学);Department of Electronic Engineering, Tsinghua University(电子工程系、清华大学);Department of Urban Planning, Tsinghua University(城市规划系、清华大学)
Social Construction of Urban Space: Using LLMs to Identify Neighborhood Boundaries From Craigslist Ads
University of Washington, Department of Sociology(华盛顿大学社会学系);Northwestern University, Department of Linguistics(西北大学语言学系);University of Illinois Chicago, Department of Sociology(伊利诺伊大学芝加哥分校社会学系);Kennesaw State University, Department of Sociology and Criminal Justice(凯斯韦尔州立大学社会学与犯罪学系)
Technische Universität Darmstadt(达姆施塔特工业大学);AI Quality & Testing Hub(AI质量与测试中心);Hessian Center for Artificial Intelligence(黑森人工智能中心);National Research Center for Applied Cybersecurity ATHENE(国家应用网络安全研究中心ATHENE)
LLMs as World Models: Data-Driven and Human-Centered Pre-Event Simulation for Disaster Impact Assessment
University of South Florida(佛罗里达州立大学);Arizona State University(亚利桑那州立大学);Massachusetts Institute of Technology(麻省理工学院);New York University(纽约大学);University of Alabama(阿拉巴马大学);Texas Tech University(德克萨斯科技大学)