AutoGEEval++: A multi-level and multi-geospatial-modality automated evaluation framework for large language models in geospatial code generation on Google Earth Engine

Huayi Wu, Zhangxiao Shen, Shuyang Hou, Haoyue Jiao, Ziqi Liu, Lutong Xie, Jianyuan Liang, Yaxian Qing, Xiaopu Zhang, Zhipeng Gui, Xuefeng GuanBig Earth Data 2025 · DOI · OpenReview

TL;DR

This paper introduces AutoGEEval++, a novel automated framework for evaluating Large Language Models (LLMs) that generate geospatial code for Google Earth Engine (GEE). It addresses the lack of standardized evaluation tools in this domain by providing a comprehensive benchmark and a robust evaluation pipeline, enabling systematic assessment of LLMs' capabilities in complex geospatial tasks.

What Problem Does This Paper Address?

The integration of AI, particularly LLMs, into geospatial analysis is a rapidly growing field. LLMs show promise in generating code for platforms like Google Earth Engine (GEE), which is crucial for processing vast amounts of satellite imagery and geospatial data. However, a significant challenge lies in the lack of standardized, automated evaluation frameworks. Existing benchmarks are often limited in scope, rely on manual evaluation, or don't adequately cover the diverse data types and complex task structures inherent in geospatial analysis. This gap hinders the systematic comparison and improvement of LLMs for this specialized domain.

Methods

The core of this work is the AutoGEEval++ framework, which builds upon a previous version (AutoGEEval). It comprises three main components:

  • AutoGEEval++-Bench: A newly constructed benchmark dataset featuring 6,365 test cases across 26 GEE data types and three task levels:
  • Unit Tests: Focus on single GEE function calls, assessing basic API comprehension. This includes both "normal" and "boundary" tests to evaluate robustness.
  • Combination Tests: Evaluate the ability to chain multiple functions together, mimicking real-world script compositions. These are mined from existing user scripts.
  • Theme Tests: Represent complete analysis workflows for specific geospatial themes (e.g., climate, land cover change), requiring higher-level planning and multimodal understanding. These are curated from research papers.
  • Submission Program: This module takes a prompt (function declaration and task description) and guides the LLM to generate GEE Python code. It then executes this code locally.
  • Judge Program: This module automatically verifies the generated code's correctness by comparing its output against ground truth. It also logs metrics related to resource consumption, execution time, and error types.

The framework uses YAML for test case definition, enabling human readability and machine interpretability.

Datasets

The primary dataset introduced is AutoGEEval++-Bench, a newly created benchmark for evaluating LLMs on GEE geospatial code generation. It contains 6,365 test cases, categorized into:

  • 5,078 Unit Tests (2,799 general, 2,279 boundary)
  • 1,199 Combination Tests
  • 88 Theme Tests

This benchmark covers 26 core GEE data types and aims to be more comprehensive than previous efforts like GeoCode-Bench or the GeoSpatial-Code-LLMs Dataset.

Key Insights and Ideas

  • Complexity Matters: Combination tests (average 5.14 operators) showed better accuracy and stability than unit tests (1 operator) or thematic tests (average 16.86 operators). This suggests that moderate functional complexity helps LLMs activate structural understanding, while highly semantic thematic tasks remain challenging.
  • Multi-round Generation Improves Accuracy: Iterative generation (e.g., from the 1st to 3rd generation) significantly reduces hallucinations and boosts accuracy, but diminishing returns are observed beyond that, highlighting a trade-off between redundancy and resource cost.
  • Model Type Trade-offs: General-purpose reasoning models excel at complex thematic tasks but are computationally expensive. Lightweight models like "o4-mini" offer a good balance of accuracy and efficiency. Geospatial-specific models, when well-tuned, can perform exceptionally well.
  • Parameter Scale and Efficiency: 7B-scale models often strike an optimal balance between accuracy, stability, and resource efficiency. Fine-tuned geospatial models can outperform larger general-purpose models.
  • Common Errors: Parameter misusage, type mismatches, and semantic deviations are the most frequent errors. Syntax errors are rare, indicating LLMs are maturing in structural code generation. However, inconsistencies in function invocation and edge case handling remain issues. Code hallucination is still a significant barrier.

Key Results

  • The framework was used to evaluate 24 mainstream LLMs released up to June 2025.
  • DeepSeek-V3 and GPT-4.1 consistently ranked high across all tasks, demonstrating strong overall performance.
  • GeoCode-GPT-7B, a specialized geospatial model, ranked fourth overall, showcasing the effectiveness of domain-specific fine-tuning.
  • o4-mini and GPT-4.1-mini achieved high rankings in combination and thematic tests, demonstrating excellent parameter compression and stability.
  • The study found that combination tests generally outperform unit and thematic tests in accuracy and stability.
  • Parameter-related errors were found to be balanced across models, but syntax errors were notably higher in the Qwen-3-Thinking series.

Limitations and Future Work

  • Combination Test Limitations: Current combination tests are primarily based on structural concatenation and lack complex control logic or real semantic constraints. Future work could incorporate task intent-driven mechanisms.
  • Theme Test Coverage: Theme tests face trade-offs between coverage and annotation precision. Future work could leverage remote sensing and GIS data platforms for automated task extraction.
  • Evaluation Scope: The current pipeline focuses on single-turn generation and does not assess multi-turn dialogue, contextual memory, or incremental debugging. Future versions could address this by designing debugging tasks and repair scenarios.
  • Understanding Hallucinations: The root causes of code hallucination and reasoning deviation are not fully understood. Future work could use controlled experiments to analyze these mechanisms.
  • Open Evaluation Platform: Building an open, continuously updated evaluation platform is suggested for long-term geospatial AI assessment.

Summary updated

BibTeX
@misc{wu2025autogeeval,
  author = {Huayi Wu and Zhangxiao Shen and Shuyang Hou and Haoyue Jiao and Ziqi Liu and Lutong Xie and Jianyuan Liang and Yaxian Qing and Xiaopu Zhang and Zhipeng Gui and Xuefeng Guan},
  title = {{AutoGEEval++: A multi-level and multi-geospatial-modality automated evaluation framework for large language models in geospatial code generation on Google Earth Engine}},
  year = {2025},
  eprint = {2506.10365},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.10365},
}
Figure