arXiv:2505.17136cs.CLcs.AI2025-05被引 54

测试大模型理解地理空间关系的能力,发现GPT-4表现最佳。

Foundation Models for Geospatial Reasoning: Assessing Capabilities of Large Language Models in Understanding Geometries and Topological Spatial Relations

  • 用WKT格式输入几何数据,通过提示工程和嵌入方法让大模型推理空间关系
  • GPT-4在拓扑关系识别上平均准确率达0.66,优于其他模型
  • 适合研究地理认知、空间推理或想构建地理大模型的开发者

将人工智能基础模型直接应用于地理空间数据仍具挑战,因其难以表征和推理向量几何及复杂空间关系。本文研究了知名文本(WKT)表示的几何及其拓扑关系在传入GPT-3.5-turbo、GPT-4和DeepSeek-R1-14B等大语言模型时的保留情况。采用三种方法完成空间推理任务:基于几何嵌入、基于提示工程、基于日常语言评估。实验显示,嵌入与提示工程方法在拓扑关系识别任务中平均准确率均超0.6;其中GPT-4在少样本提示下表现最优,准确率超过0.66。大模型还能正确理解逆向拓扑关系,且生成几何可提升地理实体检索效果。此外,GPT-4能将非正式描述转化为正式拓扑关系,添加几何类型或场所类型上下文可提升部分实例的推理精度。这些结果为构建具备地理知识的大模型提供重要参考。

原文摘要 · Abstract (English)

Applying AI foundation models directly to geospatial datasets remains challenging due to their limited ability to represent and reason with geographical entities, specifically vector-based geometries and natural language descriptions of complex spatial relations. To address these issues, we investigate the extent to which a well-known-text (WKT) representation of geometries and their spatial relations (e.g., topological predicates) are preserved during spatial reasoning when the geospatial vector data are passed to large language models (LLMs) including GPT-3.5-turbo, GPT-4, and DeepSeek-R1-14B. Our workflow employs three distinct approaches to complete the spatial reasoning tasks for comparison, i.e., geometry embedding-based, prompt engineering-based, and everyday language-based evaluation. Our experiment results demonstrate that both the embedding-based and prompt engineering-based approaches to geospatial question-answering tasks with GPT models can achieve an accuracy of over 0.6 on average for the identification of topological spatial relations between two geometries. Among the evaluated models, GPT-4 with few-shot prompting achieved the highest performance with over 0.66 accuracy on topological spatial relation inference. Additionally, GPT-based reasoner is capable of properly comprehending inverse topological spatial relations and including an LLM-generated geometry can enhance the effectiveness for geographic entity retrieval. GPT-4 also exhibits the ability to translate certain vernacular descriptions about places into formal topological relations, and adding the geometry-type or place-type context in prompts may improve inference accuracy, but it varies by instance. The performance of these spatial reasoning tasks offers valuable insights for the refinement of LLMs with geographical knowledge towards the development of geo-foundation models capable of geospatial reasoning.

地理推理大模型空间关系GPT-4

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。