Proceedings

GeoLLM: Comparative Study and Enhancement of Large Language Models for Geospatial Knowledge Using Retrieval Augmented Generation(RAG)

Download BibTeX Cite

Proceedings of the Second IJCAI AI for Good Symposium in Africa hosted by Deep Learning Indaba. Indaba. Pages 15-18.

https://doi.org/10.24963/ijcai.aai4g.2024/2

Abstract

In recent years, large language models (LLMs) have demonstrated exceptional ability in natural language processing tasks, yet their potential to enhance geospatial intelligence remains largely untapped. Geospatial data, which is found not only in maps but also in regular text, presents unique opportunities for the application of LLMs. This research seeks to investigate if Large Language Models can serve as accurate sources of geospatial information.

To achieve this, we assessed the geospatial capability of 6 open LLMs: Mistral, GPT 3.5 and 4.o, LLaMA 2 and 3, and Gemini, using 30 curated geospatial prompts grouped into three categories: geographic coordinates, basic spatial calculations, and descriptions of places. These prompts were translated into Yoruba to ensure contextual relevance. Subsequently, we employed retrieval-augmented generation (RAG) to enhance the models’ geospatial knowledge base. Our findings revealed that GPT 4.o and Mistral consistently outperformed the other models across all categories and languages, while the RAG drastically improved the LLMs’ knowledge. This study demonstrates the potential of LLMs in being an accurate source of geospatial information through the use of retrieval augmented generation (RAG).

  1. [AI, 2023] Meta AI. Llama: Open and efficient foundation language models. https://www.llama.com/, 2023. Link
  2. [AI, 2024] Mistral AI. Mistral ai model. https://mistral.ai, 2024. Link
  3. [Akojenu et al., 2023] Serah Sessi Akojenu, Olubayo Adekanmbi, and Anthony Soronnadi. Geo-visualization of hotspots of citizens dissatisfaction on social services using media print: A case study of fuel and cash scarcity in nigeria. In Submitted to Deep Learning Indaba 2023, 2023. Under review.
  4. [Bhandari et al., 2023] Prabin Bhandari, Antonios Anasta- sopoulos, and Dieter Pfoser. Are large language models geospatially knowledgeable?, 2023.
  5. [Brown et al., 2020] Tom Brown, Benjamin Mann, Nick Ry- der, Melanie Subbiah, Jared D Kaplan, Prafulla Dhari- wal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in Neural Information Processing Sys- tems, 33:1877-1901, 2020.
  6. [DeepMind, 2023] Google DeepMind. Gemini ai model. https://deepmind.google/technologies/gemini/pro/, 2023. Link
  7. [Li et al., 2024] Jiarui Li, Ye Yuan, and Zehua Zhang. En- hancing llm factual accuracy with rag to counter halluci- nations: A case study on domain-specific queries in private knowledge-bases, 2024.
  8. [Mansourian and Oucheikh, 2024] Ali Mansourian and Rachid Oucheikh. Chatgeoai: Enabling geospatial analysis for public through natural language, with large language models. ISPRS International Journal of Geo-Information, 13(10):348, 2024.
  9. [Manvi et al., 2024] Rohin Manvi, Samar Khanna, Gengchen Mai, Marshall Burke, David Lobell, and Stefano Ermon. Geollm: Extracting geospatial knowl- edge from large language models. arXiv preprint arXiv:2310.06213v2, 2024. [OpenAI, 2024] OpenAI. Gpt-4 technical report. https: //openai.com/research/gpt-4, 2024. Link
  10. [Safavi and Koutra, 2021] Tara Safavi and Danai Koutra. Relational world knowledge representation in contextual language models: A review. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 1053-1067. Association for Computa- tional Linguistics, 2021.
  11. [Sikiru et al., 2024] Rashidat Sikiru, Olubayo Adekanmbi, and Anthony Soronnadi. Comparative study of llms for personal financial decision in low resource language. In AfricaNLP Workshop at ICLR 2024, 2024.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards