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

代码大语言模型在地理空间代码生成任务上的评估

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

AI总结:

本研究构建了面向地理空间代码生成的评估基准与人工标注数据集,覆盖空间推理等三类任务,测试了现有代码LLM的表现,并公开资源以推动地理空间专用编码模型的开发。

摘要:

软件开发支持工具已被研究了很长时间,近期的研究方法开始使用大语言模型(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.

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

↑