---
title: "Teaching AI to read a map"
description: "MapTrace is a synthetic data pipeline that teaches multimodal LLMs to trace valid routes on maps."
url: "https://swe.quest/articles/teaching-ai-to-read-a-map-fffa0454ee388356"
canonical: "https://research.google/blog/teaching-ai-to-read-a-map/"
source: "Google Research"
published: "2026-02-17"
difficulty: "medium"
kind: "Research"
reading_minutes: 8
tags: ["model-training","llms","computer-vision","geospatial","evals"]
---

# Teaching AI to read a map

A post on [Google Research](https://swe.quest/sources/google-research.md), published 2026-02-17, 8 min read, Research. Original: [https://research.google/blog/teaching-ai-to-read-a-map/](https://research.google/blog/teaching-ai-to-read-a-map/)

## Summary

MapTrace is a synthetic data pipeline that teaches multimodal LLMs to trace valid routes on maps. An LLM writes map prompts, a text-to-image model renders them, color clustering produces walkable-area masks filtered by an MLLM "Mask Critic", and the masks become pixel graphs where Dijkstra finds shortest paths that an MLLM "Path Critic" then vets. Fine-tuning Gemini 2.5 Flash and Gemma 3 27B on 23K generated paths improved MapBench NDTW (Flash 1.29→0.87, Gemma 1.29→1.13) and raised parse success rates. The critics reached 76–83% accuracy with 8–9% false positives, and 2M QA pairs are released openly.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Computer vision](https://swe.quest/tags/computer-vision.md) (AI & ML)
- [Maps & geospatial](https://swe.quest/tags/geospatial.md) (Domains)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)

## Prerequisites

- multimodal LLMs ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- fine-tuning ([easy posts on Model training](https://swe.quest/tags/model-training.md?difficulty=easy))
- shortest-path algorithms ([easy posts on Algorithms](https://swe.quest/tags/algorithms.md?difficulty=easy))

## Keywords

MapTrace, MapBench, Gemini 2.5 Flash, Gemma 3, Imagen-4, dynamic time warping, Dijkstra's algorithm

## Related posts

- [Introducing ConTextual: How well can your Multimodal model jointly reason over text and image in text-rich scenes?](https://swe.quest/articles/introducing-contextual-how-well-can-your-multimodal-model-jointly-reason-over-0e8522b1b7b2a375.md): Hugging Face · 2024-03-05 · Easy · 6 min read · Evaluation, Computer vision, LLMs
  ConTextual is a benchmark of 506 human-written instructions over text-rich images that require joint reasoning over textual and visual cues across 8 scenarios, including time reading, shopping, navigation, infographics, web and mobile UIs.
- [Palette: teaching a small model to build decks in your design language](https://swe.quest/articles/palette-teaching-a-small-model-to-build-decks-in-your-design-language-51907d490a9378a1.md): Hugging Face · 2026-11-03 · Medium · 9 min read · Model training, LLMs, Evaluation
  Palette fine-tunes a 20B open-weight model with a single LoRA adapter to generate slide decks in a specific design language (IBM Design Language), splitting the work into a designer role that writes a structured JSON brief and a coder role that writes per-slide pptxgenjs code in parallel (about 6–7× faster).
- [Building on Nemotron 3.5 Parse: Open Data, Fine-Tuning, and Faster Inference](https://swe.quest/articles/building-on-nemotron-3-5-parse-open-data-fine-tuning-and-faster-inference-4767baccc71a1996.md): Hugging Face · 2026-11-26 · Hard · 7 min read · Model training, Inference & serving, Computer vision, RAG & retrieval
  Nemotron 3.5 Parse, a compact page-image-to-structured-data model for RAG and agents, was trained with SFT followed by RLVR using GRPO.
- [Image search with 🤗 datasets](https://swe.quest/articles/image-search-with-datasets-7a6fd7ae6c6c63ce.md): Hugging Face · 2022-03-16 · Medium · 12 min read · Vector search, Computer vision, Python, Search
  A text-to-image search over 10,000 British Library book embellishments can be built by loading the images with the 🤗 datasets ImageFolder loader and embedding them with the CLIP ViT-B/32 model via sentence\_transformers.
- [Training a coding model to paint watercolours with TRL and OpenEnv](https://swe.quest/articles/training-a-coding-model-to-paint-watercolours-with-trl-and-openenv-0c7283feb6a9fe31.md): Hugging Face · 2026-09-03 · Hard · 22 min read · Model training, LLMs, Evaluation, Computer vision
  An open reproduction of Surya Narreddi's watercolour-painting language model trains Qwen3.5-35B-A3B with GRPO in TRL to write p5.brush JavaScript, using an OpenEnv environment that renders sketches in headless Chromium.

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)
