arXiv:2610.20843cs.CVOct 2026

Manuscript Offprint

arXiv:2610.20843

MARS - A foundational map auto-regressor

Qi Zhang, Suvam Bag, Rupanjali Kukal, Lucas Thai, Jacob Kovarskiy, Mike Bianco, Xiaojie Guo, Raphael Tang, Mikael Figueroa, Rishi Madhok, Nikolaos Karianakis, Fuxun Yu

ABSTRACT

Map generation tasks feature extensive non-structural vectorized data (e.g., points, polylines, and polygons) and thus pose significant challenges to common pixel-wise generative models. Conventional approaches use multiple stages, first segmenting these features at the pixel level and then performing vectorized post-processing, with errors and complexity compounding at each stage. Motivated by the recent success of auto-regressive language modeling, we propose the first map foundation model, named Map Auto-Regressor (MARS), that is capable of generating both multi-polyline road networks and polygon buildings in a unified manner. For training MARS, we collected to our knowledge the largest multi-class map extraction dataset totaling 3.4M examples, which we call MAP-3M. Across four road and building datasets, MARS outperforms or matches the performance of multistage baselines. Additionally, we develop a “Chat with MARS” capability that enables interactive human-in-the-loop map generation and correction, supported by the auto-regressive nature of our end-to-end approach. We release our MAP-3M dataset and project demo page at (1) https://huggingface.co/datasets/bag-lab/MAP-3M and (2) https://huggingface.co/spaces/bag-lab/MARS, respectively.

1 INTRODUCTION

Automatically generating maps from overhead or remote-sensing imagery involves converting rasterized pixels to vectorized geometric primitives including points, polylines, and polygons, which represent diverse map elements such as roads, buildings, and water bodies. A key challenge for map generative modeling lies in the vectorized representation of maps (Congalton, 1997; Jiang et al., 2024). Most current visual generative tasks are rasterized, i.e., producing pixel grids, leveraging off-the-shelf tensor-based generative architectures such as the Segment-Anything Model (SAM; Kirillov et al., 2023) and diffusion models (Rombach et al., 2022). In contrast, map elements are geometric, vector shapes, often consisting of a variable, unstructured set of points, polylines, and polygons, as shown in Fig. 1 (c). This structural mismatch poses unique difficulties for generic map generative architectures.

As a workaround, many papers tackle map generation by first applying rasterized segmentation and then vectorized post-processing in a multistage pipeline (Xu et al., 2023). For example, SAM plus post-processing methods have been explored for road network graph extraction (Kirillov et al., 2023; Hetang et al., 2024). Similarly, Wang et al. (2024) use SAM and design different post-processing logic for building delineation.

Such methods suffer from two major drawbacks that prevent them from serving as a foundation model for map generation: (1) limited generality across map classes and (2) suboptimal performance. For the former, post-processing (e.g., key-point and edge extraction) is typically heuristic-based, and the heuristics differ substantially between feature classes, e.g., road networks (multi-polylines with complex intersections) versus buildings (non-overlapping polygons). As a result, these methods generally support only a single map feature type. For the latter, because the generation is not learned end to end within a unified architecture, performance is often constrained. It also leads to more hyperparameters, such as NMS IoU thresholds for key-point de-duplication or confidence thresholds for edge connections.

In this work, we address map generation tasks by treating vectorized map primitives as a formal language. Our approach is inspired by sequence-to-sequence learning (Radford et al., 2018), where auto-regressive architectures have demonstrated effectiveness in producing complex non-structural outputs. Specifically, we design a novel unified map-to-sequence framework to convert all vectorized map primitives (roads and buildings) into a sequential language representation. Then, we propose an end-to-end map auto-regressor (MARS) architecture to conduct sequence-to-sequence map primitive learning. To ensure generalization and scalability, we do not deviate from conventional standards for the MARS architecture and use only a transformer-based vision encoder and an auto-regressive decoder, without any intermediate or post-processing being applied.

Without bells and whistles, MARS learns to generate all types of map elements at scale. To the best of our knowledge, this is the first map foundation model capable of generating both vectorized roads and buildings within a single end-to-end model without any post-processing, marking an important step toward scalable and generalizable map generation.

Benefiting from the auto-regressive nature of our model, we further identify an emergent prompt-following capability of MARS, like that of GPT (Radford et al., 2018). We then develop a “Chat with MARS” feature, where human users can prompt MARS by giving a starting point of a missing street or a building, which MARS will then auto-complete. This auto-completion of target objects enables a new interactive map generation capability: human-in-the-loop map generation and correction.

Training scalable foundation models relies on large-scale data, but all current map datasets are both single class and limited in quantity. We thus curate MAP-3M, the largest dataset for map generation to date. This collection contains three million images with high-quality annotations for both roads and buildings, 10×10 \times larger in the number of images and 100×100 \times broader in geographic coverage than common benchmarks such as Cityscale (He et al., 2020a), SpaceNet3 (SpaceNet, 2018) and AiCrowd (AICrowd, 2020).

Overall, our main contributions are as follows:

• We proposed a foundational map auto-regressive model architecture: MARS, that can end-to-end generate various vectorized map elements without any post-processing.

• We identified and developed “Chat with MARS” that enables brand-new interactive human-in-the-loop map generation and correction capability.

• We curated by-far the largest multi-class map generation dataset to facilitate the foundational MARS training. Dataset has been released.

We conduct extensive benchmarks on MAP-3M and various downstream applications. Experimental results demonstrate the superior performance of our unified architecture compared to previous state-of-the-art models, laying the foundation for future advancements in map generation.

Figure

(a) Input Image

(b) Rasterized Output

(c) Vectorized Output

Figure 1: Examples of rasterized and vectorized map generation. Source: MARS.