---
title: "Mapping the modern world: How S2Vec learns the language of our cities"
description: "S2Vec learns general-purpose embeddings of the built environment by partitioning the Earth into S2 Geometry cells, rasterizing counts of feature types (buildings, businesses, roads) into multi-channel images, and training a masked autoencoder to reconstruct hidden patches."
url: "https://swe.quest/articles/mapping-the-modern-world-how-s2vec-learns-the-language-of-our-cities-d9ed2db8cfd623b3"
canonical: "https://research.google/blog/mapping-the-modern-world-how-s2vec-learns-the-language-of-our-cities/"
source: "Google Research"
published: "2026-03-24"
difficulty: "easy"
kind: "Research"
reading_minutes: 6
tags: ["geospatial","machine-learning","computer-vision"]
---

# Mapping the modern world: How S2Vec learns the language of our cities

A post on [Google Research](https://swe.quest/sources/google-research.md), published 2026-03-24, 6 min read, Research. Original: [https://research.google/blog/mapping-the-modern-world-how-s2vec-learns-the-language-of-our-cities/](https://research.google/blog/mapping-the-modern-world-how-s2vec-learns-the-language-of-our-cities/)

## Summary

S2Vec learns general-purpose embeddings of the built environment by partitioning the Earth into S2 Geometry cells, rasterizing counts of feature types (buildings, businesses, roads) into multi-channel images, and training a masked autoencoder to reconstruct hidden patches. On regression benchmarks for population density, median income, carbon emissions, tree cover and elevation, S2Vec was typically the best single model for zero-shot geographic extrapolation on socioeconomic tasks. It was weaker on environmental tasks such as tree cover and elevation. Fusing S2Vec with satellite-image embeddings like RS-MaMMUT gave the best results overall.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Maps & geospatial](https://swe.quest/tags/geospatial.md) (Domains)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Computer vision](https://swe.quest/tags/computer-vision.md) (AI & ML)

## Prerequisites

- embeddings ([easy posts on RAG & retrieval](https://swe.quest/tags/rag.md?difficulty=easy))
- self-supervised learning

## Keywords

S2Vec, S2 Geometry, masked autoencoder, RS-MaMMUT, Google Earth AI, SatCLIP, GeoCLIP

## Related posts

- [Introducing OlmoEarth embeddings: Custom embedding exports from OlmoEarth Studio for downstream analysis](https://swe.quest/articles/introducing-olmoearth-embeddings-custom-embedding-exports-from-olmoearth-studio-6f049054a6151c9d.md): Hugging Face · 2026-08-12 · Medium · 8 min read · Maps & geospatial, Machine learning, Computer vision, Python
  OlmoEarth Studio can now compute on-demand embedding exports from Ai2's open OlmoEarth Earth-observation foundation models, configurable by area, 1-12 monthly periods, encoder size (Nano 128-dim, Tiny 192-dim, Base 768-dim), 10-80 m resolution, and Sentinel-2/Sentinel-1 inputs.
- [From pixels to planning: Earth AI for nature restoration](https://swe.quest/articles/from-pixels-to-planning-earth-ai-for-nature-restoration-80e16e72321d459d.md): Google Research · 2026-06-16 · Medium · 5 min read · Maps & geospatial, Computer vision, Machine learning
  Google Research released a vectorized version of Farmscapes 2020, turning a high-resolution raster map of England's hedgerows, stone walls and copses into an inventory of individual features for restoration planning and carbon accounting.
- [Unlocking Earth AI’s planetary geospatial foundation models for global public health](https://swe.quest/articles/unlocking-earth-ai-s-planetary-geospatial-foundation-models-for-global-public-4e4a054bea859c89.md): Google Research · 2026-10-06 · Easy · 9 min read · Maps & geospatial, Machine learning, Evaluation
  Google's Population Dynamics Foundation Model (PDFM) produces monthly location embeddings from aggregated search trends, mobility, built-environment density and environmental data, which can be dropped into existing epidemiological models without task-specific fine-tuning.
- [Hybrid search over California embeddings with Modal, MongoDB, and Clay](https://swe.quest/articles/hybrid-search-over-california-embeddings-with-modal-mongodb-and-clay-59ebc96e9326e33e.md): Modal · 2024-09-24 · Easy · 3 min read · Vector search, Maps & geospatial, Serverless, Search, Inference & serving
  A hybrid search app over California combines timestamps, geolocation and satellite image embeddings using Modal, MongoDB Atlas and Clay's foundation model.
- [How mobility gives language models a deeper understanding of place](https://swe.quest/articles/how-mobility-gives-language-models-a-deeper-understanding-of-place-d4cbf55b5b94d687.md): Google Research · 2026-08-21 · Easy · 7 min read · Maps & geospatial, Machine learning, LLMs
  ME-POIs builds place (POI) embeddings that combine text metadata with aggregated, anonymized mobility patterns such as arrival times and stay durations, treating mobility as an input feature that defines a place rather than a next-visit prediction target.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
