Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
119 tokens/sec
GPT-4o
56 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

GeoLLM: Extracting Geospatial Knowledge from Large Language Models (2310.06213v2)

Published 10 Oct 2023 in cs.CL and cs.LG

Abstract: The application of ML in a range of geospatial tasks is increasingly common but often relies on globally available covariates such as satellite imagery that can either be expensive or lack predictive power. Here we explore the question of whether the vast amounts of knowledge found in Internet language corpora, now compressed within LLMs, can be leveraged for geospatial prediction tasks. We first demonstrate that LLMs embed remarkable spatial information about locations, but naively querying LLMs using geographic coordinates alone is ineffective in predicting key indicators like population density. We then present GeoLLM, a novel method that can effectively extract geospatial knowledge from LLMs with auxiliary map data from OpenStreetMap. We demonstrate the utility of our approach across multiple tasks of central interest to the international community, including the measurement of population density and economic livelihoods. Across these tasks, our method demonstrates a 70% improvement in performance (measured using Pearson's $r2$) relative to baselines that use nearest neighbors or use information directly from the prompt, and performance equal to or exceeding satellite-based benchmarks in the literature. With GeoLLM, we observe that GPT-3.5 outperforms Llama 2 and RoBERTa by 19% and 51% respectively, suggesting that the performance of our method scales well with the size of the model and its pretraining dataset. Our experiments reveal that LLMs are remarkably sample-efficient, rich in geospatial information, and robust across the globe. Crucially, GeoLLM shows promise in mitigating the limitations of existing geospatial covariates and complementing them well. Code is available on the project website: https://rohinmanvi.github.io/GeoLLM

Definition Search Book Streamline Icon: https://streamlinehq.com
References (65)
  1. The demographic and health surveys (dhs) program, 2023. URL http://www.dhsprogram.com.
  2. Census bureau tables, 2023. URL https://data.census.gov/table.
  3. Housing data, 2023. URL https://www.zillow.com/research/data/.
  4. Spatial statistical machine learning models to assess the relationship between development vulnerabilities and educational factors in children in queensland, australia. BMC Public Health, 22, 2022. URL https://api.semanticscholar.org/CorpusID:254071901.
  5. Comprehensive survey of deep learning in remote sensing: theories, tools, and challenges for the community. Journal of Applied Remote Sensing, 11, 2017. URL https://api.semanticscholar.org/CorpusID:7069900.
  6. Chatgpt is a knowledgeable but inexperienced solver: An investigation of commonsense problem in large language models. ArXiv, abs/2303.16421, 2023. URL https://api.semanticscholar.org/CorpusID:257804619.
  7. Predicting poverty and wealth from mobile phone metadata. Science, 350:1073 – 1076, 2015. URL https://api.semanticscholar.org/CorpusID:206638993.
  8. On the opportunities and risks of foundation models. arXiv preprint arXiv:2108.07258, 2021.
  9. Language models are few-shot learners. ArXiv, abs/2005.14165, 2020. URL https://api.semanticscholar.org/CorpusID:218971783.
  10. Using satellite imagery to understand and promote sustainable development. Science, 371, 2019. URL https://api.semanticscholar.org/CorpusID:222305990.
  11. The role of alcohol outlet visits derived from mobile phone location data in enhancing domestic violence prediction at the neighborhood level. Health & Place, 73:102736, 2022.
  12. Xgboost: A scalable tree boosting system. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2016. URL https://api.semanticscholar.org/CorpusID:4650265.
  13. Microestimates of wealth for all low- and middle-income countries. Proceedings of the National Academy of Sciences of the United States of America, 119, 2021. URL https://api.semanticscholar.org/CorpusID:233289683.
  14. Language modeling is compression. 2023. URL https://api.semanticscholar.org/CorpusID:262054258.
  15. Learning a foundation language model for geoscience knowledge understanding and utilization. arXiv preprint arXiv:2306.05064, 2023.
  16. Qlora: Efficient finetuning of quantized llms. ArXiv, abs/2305.14314, 2023. URL https://api.semanticscholar.org/CorpusID:258841328.
  17. Bert: Pre-training of deep bidirectional transformers for language understanding. ArXiv, abs/1810.04805, 2019. URL https://api.semanticscholar.org/CorpusID:52967399.
  18. Time-aware language models as temporal knowledge bases. Transactions of the Association for Computational Linguistics, 10:257–273, 2021. URL https://api.semanticscholar.org/CorpusID:235669861.
  19. Unified language model pre-training for natural language understanding and generation. In Neural Information Processing Systems, 2019. URL https://api.semanticscholar.org/CorpusID:147704286.
  20. Commonsense knowledge mining from pretrained models. ArXiv, abs/1909.00505, 2019. URL https://api.semanticscholar.org/CorpusID:202541043.
  21. Prompt tuning or fine-tuning - investigating relational knowledge in pre-trained language models. In 3rd Conference on Automated Knowledge Base Construction, 2021. URL https://openreview.net/forum?id=o7sMlpr9yBW.
  22. Can human development be measured with satellite imagery? Proceedings of the Ninth International Conference on Information and Communication Technologies and Development, 2017. URL https://api.semanticscholar.org/CorpusID:1763100.
  23. Sarah Hoffmann. Nominatim, 2023. URL https://nominatim.org.
  24. Lora: Low-rank adaptation of large language models. ArXiv, abs/2106.09685, 2021. URL https://api.semanticscholar.org/CorpusID:235458009.
  25. Extracting and analyzing semantic relatedness between cities using news articles. International Journal of Geographical Information Science, 31(12):2427–2451, 2017.
  26. Combining satellite imagery and machine learning to predict poverty. Science, 353:790 – 794, 2016. URL https://api.semanticscholar.org/CorpusID:16154009.
  27. How can we know what language models know? Transactions of the Association for Computational Linguistics, 8:423–438, 2019. URL https://api.semanticscholar.org/CorpusID:208513249.
  28. Bag of tricks for efficient text classification. arXiv preprint arXiv:1607.01759, 2016.
  29. Scaling laws for neural language models. ArXiv, abs/2001.08361, 2020. URL https://api.semanticscholar.org/CorpusID:210861095.
  30. Birds have four legs?! numersense: Probing numerical commonsense knowledge of pre-trained language models. In Conference on Empirical Methods in Natural Language Processing, 2020. URL https://api.semanticscholar.org/CorpusID:218486812.
  31. Probing across time: What does roberta know and when? In Conference on Empirical Methods in Natural Language Processing, 2021. URL https://api.semanticscholar.org/CorpusID:233289478.
  32. Roberta: A robustly optimized bert pretraining approach. ArXiv, abs/1907.11692, 2019. URL https://api.semanticscholar.org/CorpusID:198953378.
  33. On the opportunities and challenges of foundation models for geospatial artificial intelligence. arXiv preprint arXiv:2304.06798, 2023a.
  34. Csp: Self-supervised contrastive spatial pre-training for geospatial-visual representations. In the Fortieth International Conference on Machine Learning (ICML 2023), 2023b.
  35. Sphere2vec: A general-purpose location representation learning over a spherical surface for large-scale geospatial predictions. ISPRS Journal of Photogrammetry and Remote Sensing, 202:439–462, 2023c.
  36. Catherine Nakalembe. Characterizing agricultural drought in the karamoja subregion of uganda with meteorological and satellite-based indices. Natural Hazards, 91:837–862, 2018. URL https://api.semanticscholar.org/CorpusID:133875170.
  37. P-adapters: Robustly extracting factual information from language models with diverse prompts. ArXiv, abs/2110.07280, 2021. URL https://api.semanticscholar.org/CorpusID:238856973.
  38. A review of geospatial methods for population estimation and their use in constructing reproductive, maternal, newborn, child and adolescent health service indicators. BMC Health Services Research, 21, 2021. URL https://api.semanticscholar.org/CorpusID:237487421.
  39. Roland Olbricht. Overpass api, 2023. URL https://wiki.openstreetmap.org/wiki/Overpass_API.
  40. OpenAI. Gpt-3.5 turbo: Fine-tuning and api updates, 2023a. URL https://openai.com/blog/gpt-3-5-turbo-fine-tuning-and-api-updates.
  41. OpenAI. Introducing chatgpt, 2023b. URL https://openai.com/blog/chatgpt.
  42. OpenAI. Gpt-4 technical report. ArXiv, abs/2303.08774, 2023c. URL https://api.semanticscholar.org/CorpusID:257532815.
  43. OpenStreetMap contributors. Planet dump retrieved from https://planet.osm.org . https://www.openstreetmap.org, 2017.
  44. You are what you tweet: Analyzing twitter for public health. Proceedings of the International AAAI Conference on Web and Social Media, 2011. URL https://api.semanticscholar.org/CorpusID:9270435.
  45. Poverty prediction with public landsat 7 satellite imagery and machine learning. ArXiv, abs/1711.03654, 2017. URL https://api.semanticscholar.org/CorpusID:23748178.
  46. Language models as knowledge bases? ArXiv, abs/1909.01066, 2019. URL https://api.semanticscholar.org/CorpusID:202539551.
  47. Learning how to ask: Querying lms with mixtures of soft prompts. ArXiv, abs/2104.06599, 2021. URL https://api.semanticscholar.org/CorpusID:233231453.
  48. Improving language understanding by generative pre-training. 2018. URL https://api.semanticscholar.org/CorpusID:49313245.
  49. How much knowledge can you pack into the parameters of a language model? In Conference on Empirical Methods in Natural Language Processing, 2020. URL https://api.semanticscholar.org/CorpusID:211205183.
  50. A deep learning approach for population estimation from satellite imagery. Proceedings of the 1st ACM SIGSPATIAL Workshop on Geospatial Humanities, 2017. URL https://api.semanticscholar.org/CorpusID:12713975.
  51. Predicting economic development using geolocated wikipedia articles. Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, 2019. URL https://api.semanticscholar.org/CorpusID:146120697.
  52. Eliciting knowledge from language models using automatically generated prompts. In Conference on Empirical Methods in Natural Language Processing, 2020. URL https://api.semanticscholar.org/CorpusID:226222232.
  53. The use of twitter to track levels of disease activity and public concern in the u.s. during the influenza a h1n1 pandemic. PLoS ONE, 6, 2011. URL https://api.semanticscholar.org/CorpusID:6808103.
  54. Development and delivery of species distribution models to inform decision-making. BioScience, 2019. URL https://api.semanticscholar.org/CorpusID:195384775.
  55. Can language models be biomedical knowledge bases? ArXiv, abs/2109.07154, 2021. URL https://api.semanticscholar.org/CorpusID:237513360.
  56. Andrew J. Tatem. Worldpop, open data for spatial demography. Scientific Data, 4, 2017. URL https://api.semanticscholar.org/CorpusID:3544507.
  57. Llama 2: Open foundation and fine-tuned chat models. ArXiv, abs/2307.09288, 2023. URL https://api.semanticscholar.org/CorpusID:259950998.
  58. WorldPop and Columbia University CIESIN. Global high resolution population denominators project - funded by the bill and melinda gates foundation, 2018. URL https://dx.doi.org/10.5258/SOTON/WP00647. www.worldpop.org - School of Geography and Environmental Science, University of Southampton; Department of Geography and Geosciences, University of Louisville; Departement de Geographie, Universite de Namur.
  59. Cross-region traffic prediction for china on openstreetmap. Proceedings of the 9th ACM SIGSPATIAL International Workshop on Computational Transportation Science, 2016. URL https://api.semanticscholar.org/CorpusID:15751676.
  60. Using publicly available satellite imagery and deep learning to understand economic well-being in africa. Nature Communications, 11, 2020. URL https://api.semanticscholar.org/CorpusID:218773287.
  61. Sustainbench: Benchmarks for monitoring the sustainable development goals with machine learning. ArXiv, abs/2111.04724, 2021. URL https://api.semanticscholar.org/CorpusID:243847865.
  62. Do language embeddings capture scales? In BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP, 2020. URL https://api.semanticscholar.org/CorpusID:222290454.
  63. Geogpt: Understanding and processing geospatial tasks through an autonomous gpt. arXiv preprint arXiv:2307.07930, 2023.
  64. A survey of large language models. ArXiv, abs/2303.18223, 2023. URL https://api.semanticscholar.org/CorpusID:257900969.
  65. Factual probing is [mask]: Learning vs. learning to recall. In North American Chapter of the Association for Computational Linguistics, 2021. URL https://api.semanticscholar.org/CorpusID:233210199.
User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (6)
  1. Rohin Manvi (3 papers)
  2. Samar Khanna (12 papers)
  3. Gengchen Mai (46 papers)
  4. Marshall Burke (26 papers)
  5. David Lobell (25 papers)
  6. Stefano Ermon (279 papers)
Citations (34)

Summary

We haven't generated a summary for this paper yet.

Github Logo Streamline Icon: https://streamlinehq.com