Uppsats
Evaluating large language model adaptation strategies for geospatial code generation
Master-uppsats
Lunds universitet/Institutionen för naturgeografi och ekosystemvetenskap
Publicerad: 2025
Språk: Engelska
Sammanfattning
Recent advances in Large Language Models (LLMs) offer a promising alternative by enabling code generation from natural language. However, despite progress, LLMs still struggle with spatial reasoning, structural fidelity, and robustness across diverse GIS datasets. This thesis systematically compares three LLM adaptation strategies, i.e., prompt engineering, retrieval-augmented generation (RAG), and QLoRA fine-tuning, for their effectiveness in geospatial code generation. A custom multi-agent evaluation framework is developed, testing six configurations on real-world datasets and validated QGIS scripts. The evaluation combines semantic metrics (CodeBERTScore, embedding similarity) with structural measures (CodeBLEU), and introduces AST-derived indicators of structural complexity and behavioral richness on generated code. Results show that while all strategies affect code structure, their impact on semantic fidelity is limited. Prompting and RAG enhance structural conformity by imposing external scaffolds, whereas QLoRA improves fluency and intent alignment but struggles with structural generalization. These findings highlight the need for structurally diverse supervision and varied training corpora to improve the reliability of fine-tuned LLMs in GIS programming contexts.
Information
- Författare
- Zhu, Kaiyuan
- Lärosäte / institution
- Lunds universitet/Institutionen för naturgeografi och ekosystemvetenskap
- Publiceringsdatum
- 2025
- Uppsatstyp
- Master-uppsats
- Språk
- Engelska
Utforska vidare
Liknande uppsatser
Uppsatser med liknande ämnen och nyckelord.
Yrkesexamen på avancerad nivå, Uppsala universitet/Avdelningen för systemteknik
Vigholm, Albin
Publicerad: 2026
Kandidat-uppsats, Linnéuniversitetet/Institutionen för datavetenskap och medieteknik (DM)
Lindberg, Leia, Hugosson, Ester
Publicerad: 2026
Master-uppsats, KTH/Skolan för elektroteknik och datavetenskap (EECS)
Saleh, Abdelrahman
Publicerad: 2026
Master-uppsats, Lunds universitet/Produktionsekonomi
Iveberg, Emma, Ekstrand, Erik
Publicerad: 2026
Master-uppsats, Stockholms universitet/Institutionen för data- och systemvetenskap
Hansson, Martin
Publicerad: 2026
Master-uppsats, Högskolan i Borås/Akademin för bibliotek, information, pedagogik och IT
Anneling, Marie
Publicerad: 2026