MapAgent: An Industrial-Grade Agentic Framework for City-scale Lane-level Map Generation

Deguo Xia, Zihan Li, Haochen Zhao, Dong Xie, Yuyao Kong, Xiyan Liu, Jizhou Huang, Mengmeng Yang, Diange YangarXiv 2026 · DOI

TL;DR

MapAgent is an industrial-grade agentic framework designed to refine lane-level maps generated by end-to-end deep learning backbones. By introducing a bounded, verification-driven Judge-Planner-Worker loop, it automatically corrects geometric and topological errors while enforcing strict cartographic standards. Deployed at Baidu Maps across 360+ cities, it has boosted map production automation to over 95%.

What Problem Does This Paper Address?

Creating high-definition (HD), lane-level maps for autonomous driving and navigation is traditionally a slow, labor-intensive process. While recent end-to-end deep learning models can predict lane geometry directly from sensor data (like bird's-eye-view images), they struggle in complex scenarios like faded lane markings, occlusions, or complicated intersections.

Because these models lack explicit knowledge of traffic rules and cartographic specifications, their outputs often contain geometric artifacts or topological violations. Consequently, commercial pipelines still require massive human post-editing to fix these errors. MapAgent addresses this gap by acting as an automated, specification-aware refinement layer on top of existing perception models.

Methods

Instead of trying to fix errors by retraining the underlying perception model, MapAgent treats the backbone's output as a mutable draft map and refines it through a structured, multi-agent workflow.

Figure 2: Overall MapAgent system. Given a BEV image and a draft vector map from a backbone, a Quality Agent first performs confidence-based early filtering. High-confidence tiles are directly accepted, while the rest enter a bounded Judge–Planner– Worker refinement loop. The Judge detects rule violations and produces structured reports, the Planner generates an ordered correction plan under constraints, and the Worker applies deterministic edits such as removal, type correction, smoothing, or regeneration. Each iteration is re-validated, and after at most three rounds, the system outputs the validated refined map or the best intermediate result.

The framework consists of three core stages:

  1. Quality Agent (Early Filtering): To remain computationally efficient, a lightweight agent checks the confidence scores of the initial draft map. High-confidence tiles bypass the agent loop entirely, while low-confidence "hard tiles" are routed to the core refinement loop.
  2. The Judge-Planner-Worker Loop: This loop is strictly bounded to a maximum of three iterations to ensure predictable latency:
  3. Judge Agent: A Vision-Language Model (VLM, specifically Qwen3-VL-8B-Thinking) inspects the visual evidence alongside the draft vectors. It uses a priority-based short-circuit reasoning mechanism to detect specific error types (e.g., extra lanes, category mismatches, structural misalignments) and outputs a structured diagnosis.
  4. Planner Agent: A rule-based decision module takes the Judge's report and generates a strict, constraint-compliant action plan using a closed set of tools.
  5. Worker Agent: A suite of deterministic tools executes the plan (e.g., deleting a lane, correcting a category, smoothing geometry, or regenerating local segments using a specialized model like SAM3).
  6. Feasibility Gate: Every edit is passed through an immutable validation gate to ensure it satisfies geometric and topological sanity checks before being accepted.

Datasets

The authors evaluated MapAgent using a large-scale dataset derived from the Baidu Map Database. The dataset features high-quality offline bird's-eye-view (BEV) images generated via multi-trajectory camera-LiDAR fusion.

To rigorously test the framework, they curated a challenging hard subset characterized by high junction complexity and severe occlusions. The training split contains 3,712 BEV images (59,434 ground-truth lane instances), and the test split contains 656 images (10,254 ground-truth lanes).

Key Insights and Ideas

  • Refinement over Retraining: Instead of forcing an end-to-end neural network to implicitly learn complex, rule-based cartographic specifications, it is far more effective to freeze the perception backbone and let an agent layer enforce hard validity checks.
  • Reasoning Matters for Actionability: Ablation studies revealed that reducing the VLM Judge to a simple error classifier degrades performance. The explicit chain-of-thought reasoning provided by the VLM is crucial for generating localized, actionable evidence that the Planner can reliably translate into safe edits.
  • Efficiency via Selective Triggering: Running VLMs on every single map tile is computationally prohibitive for city-scale production. By filtering out easy tiles, MapAgent is only triggered on roughly 30% of tiles, keeping the average latency to a modest 420 ms per tile.

Key Results

MapAgent was evaluated as a post-hoc refinement module on top of two strong vectorization backbones: GeMap and DuMapNet.

  • GeMap + MapAgent: Improved mapping accuracy from 52.8% to 61.3% and the F1-score from 69.1% to 76.0%.
  • DuMapNet + MapAgent: Lifted accuracy from 52.2% to 63.9% and the F1-score from 68.6% to 78.0%.
  • Production Deployment: MapAgent has been integrated into Baidu Maps, supporting lane-level map generation for over 360 cities nationwide and elevating overall production automation to over 95%.

Limitations and Future Work

MapAgent operates under strict safety constraints, meaning it uses conservative, local tools. It currently avoids making large-scale structural changes or adding entirely new lanes when visual evidence is completely missing or highly ambiguous. As a result, the final map quality is still fundamentally bounded by the initial backbone's performance.

The authors suggest that future work should focus on a unified agentic framework capable of dynamically scheduling and orchestrating multiple specialized perception backbones (e.g., models optimized specifically for junctions or occlusions) to handle these extreme edge cases.

Summary updated

BibTeX
@misc{xia2026mapagent,
  author = {Deguo Xia and Zihan Li and Haochen Zhao and Dong Xie and Yuyao Kong and Xiyan Liu and Jizhou Huang and Mengmeng Yang and Diange Yang},
  title = {{MapAgent: An Industrial-Grade Agentic Framework for City-scale Lane-level Map Generation}},
  year = {2026},
  eprint = {2606.04513},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.04513},
}
Figure