TL;DR
MARS (Map Auto-Regressor) is the first foundational model designed to generate vectorized maps—specifically roads and buildings—directly from satellite imagery. By treating map geometry as a "formal language" and using an auto-regressive, sequence-to-sequence approach, MARS eliminates the need for complex, multi-stage post-processing. Furthermore, its architecture enables an interactive "Chat with MARS" feature for human-in-the-loop map editing.
The Structural Mismatch Problem
Traditional map generation suffers from a "structural mismatch." Satellite imagery consists of rasterized pixels (grids), while functional maps are composed of vectorized primitives (unstructured points, polylines, and polygons).
Most current systems attempt to bridge this gap using a messy, multi-stage pipeline. First, they perform pixel-wise segmentation to identify "road pixels" or "building pixels." Then, they apply heuristic-based post-processing to extract vectors from those pixels. This approach has two major flaws:
- Error Compounding: Small mistakes in the pixel segmentation phase inevitably lead to broken geometries in the vector phase.
- Lack of Generality: The heuristics used to extract a road network (a complex graph) are completely different from those used to delineate a building (a closed polygon). This makes it nearly impossible to create a single, unified model for all map features.
The MARS Approach
Researchers at Microsoft propose MARS, a model that skips the intermediate pixel-segmentation step entirely.
1. Map-to-Sequence Conversion
The core innovation of MARS is treating map data as a language. The model converts geometric shapes into a sequence of tokens:
- Buildings: Represented as a class token followed by a sequence of $[x, y]$ coordinates forming a closed polygon.
- Roads: Because roads form complex graphs, the authors use a stroke-based algorithm to decompose them into individual polylines based on angle tolerances. For example, segments that curve less than 30° are grouped into a single "stroke."
- Ordering: To make the sequence predictable for the model, objects are sorted by their distance from the image center in a spiral pattern.
2. Architecture
MARS utilizes a standard encoder-decoder transformer setup:
- Vision Encoder: A Swin Transformer (Swin-L) extracts rich features from the input satellite image.
- Auto-regressive Decoder: A vanilla transformer decoder predicts the next coordinate or class token in the sequence, conditioned on the image features and all previously generated tokens.
3. "Chat with MARS"
Because the model is auto-regressive, it naturally supports interactive prompts. A user can click a starting point for a missing road (Start-of-Sequence chatting) or correct a drifting line (Mid-sequence chatting), and the model will "auto-complete" the rest of the geometry.
The MAP-3M Dataset
To train MARS, the authors introduced MAP-3M, the largest multi-class map extraction dataset to date.
- Scale: Contains approximately 3 million high-resolution images (512x512).
- Coverage: Offers 100x broader geographic coverage than previous benchmarks, sampling 5,000 cities across the US.
- Comparison: It is 10x larger than existing datasets like Cityscale or AICrowd and uniquely includes both roads and buildings.
Key Insights
- Geometry as Language: The most significant breakthrough is realizing that map generation doesn't have to be a traditional computer vision task; it can be framed as a translation task (Pixels $\rightarrow$ Geometry Language).
- Pre-training is Essential: Unlike raster-based models, auto-regressive models are highly sensitive to data scarcity. Pre-training on the massive MAP-3M dataset was the critical factor for achieving high accuracy on smaller, specialized benchmarks.
- Unified Ontology: By simply adding new class tokens (e.g.,
<Road>,<Building>,<Water>), the model can scale to any number of map features without altering the underlying architecture.
Performance and Results
MARS matches or outperforms specialized, state-of-the-art (SOTA) models designed for single tasks:
- Roads (Cityscale): Achieved an F1 score of 82.88%, outperforming the previous best (RNGDet++) at 78.44%.
- Buildings (AICrowd): Achieved results on par with SOTA models like GeoFormer, but without requiring custom hyper-parameters or complex post-processing logic.
- Interactive Gains: In "Chat" mode, providing just one or two ground-truth points to the model significantly boosted precision and recall, proving its immense utility for human-in-the-loop map maintenance.
Limitations and Future Work
- Computational Efficiency: Because auto-regressive decoding generates one token at a time, it is computationally heavier and slower than "one-shot" segmentation models. Future versions may explore KV-cache acceleration.
- Complex Occlusions: The model still struggles with extremely dense tree canopies or shadows that completely obscure building boundaries.
- Ontology Expansion: While the framework supports it, the current version focuses primarily on roads and buildings. Future work will likely expand this to water bodies, parking lots, and land-use classifications.
Summary updated