用空间分析反推大模型如何理解地理信息
Geospatial Mechanistic Interpretability of Large Language Models
- 通过空间自相关分析模型内部表征的地理分布模式
- 发现地名特征呈现与地理位置相关的空间聚集性
- 为地理领域大模型可解释性提供新方法,适合研究者参考
大语言模型(LLMs)在自然语言处理任务中展现出前所未有的能力,其生成文本和代码的能力已广泛应用于多个领域。在地理学中,研究关注于评估模型的地理知识和空间推理能力,但对其内部工作机制仍知之甚少,尤其是如何处理地理信息。本文提出一种新的地理空间机制可解释性框架,利用空间分析技术逆向解析大模型对地理信息的处理方式。首先介绍探针(probing)在揭示模型内部结构中的应用;随后讨论机制可解释性中的叠加假设及稀疏自编码器在解耦多义内部表征方面的作用。实验中,通过空间自相关分析发现,地名对应的特征具有与实际地理位置相关的空间模式,表明这些特征可进行地理空间解读。本研究为理解大模型如何‘思考’地理信息提供了新视角,并有助于推动基础模型在地理学中的研究与应用。
原文摘要 · Abstract (English)
Large Language Models (LLMs) have demonstrated unprecedented capabilities across various natural language processing tasks. Their ability to process and generate viable text and code has made them ubiquitous in many fields, while their deployment as knowledge bases and "reasoning" tools remains an area of ongoing research. In geography, a growing body of literature has been focusing on evaluating LLMs' geographical knowledge and their ability to perform spatial reasoning. However, very little is still known about the internal functioning of these models, especially about how they process geographical information. In this chapter, we establish a novel framework for the study of geospatial mechanistic interpretability - using spatial analysis to reverse engineer how LLMs handle geographical information. Our aim is to advance our understanding of the internal representations that these complex models generate while processing geographical information - what one might call "how LLMs think about geographic information" if such phrasing was not an undue anthropomorphism. We first outline the use of probing in revealing internal structures within LLMs. We then introduce the field of mechanistic interpretability, discussing the superposition hypothesis and the role of sparse autoencoders in disentangling polysemantic internal representations of LLMs into more interpretable, monosemantic features. In our experiments, we use spatial autocorrelation to show how features obtained for placenames display spatial patterns related to their geographic location and can thus be interpreted geospatially, providing insights into how these models process geographical information. We conclude by discussing how our framework can help shape the study and use of foundation models in geography.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。