VectorMapNet: End-to-end Vectorized HD Map Learning

Yicheng Liu, Tianyuan Yuan, Yue Wang, Yilun Wang, Hang Zhao

High-Definition (HD) maps are the lifeblood of autonomous driving, providing the precise geometric and semantic context—like lane boundaries and crosswalks—that vehicles need to navigate complex urban environments. Traditionally, these maps are built via expensive, slow manual annotation. While recent AI models have tried to automate this, they usually produce "rasterized" outputs (essentially images of the road) that require messy, hand-crafted code to turn back into the "vector" format (lines and points) that self-driving planners actually use.

Enter VectorMapNet, an innovative approach to autonomous mapping. It is the first end-to-end pipeline that skips the "image" phase entirely, predicting vectorized map elements directly from onboard sensor data.

TL;DR

VectorMapNet is an end-to-end framework that learns to "draw" HD maps as a sparse set of polylines directly from camera and LiDAR data. By treating map learning as a detection and sequence generation task, it outperforms previous state-of-the-art methods by over 14 mAP on major datasets like nuScenes and Argoverse 2.

VectorMapNet takes onboard sensor data and directly outputs a vectorized map using a detect-and-generate pipeline.

What Problem Does This Paper Address?

Most current "online" mapping systems treat the road like a semantic segmentation problem: they look at a Bird’s-Eye View (BEV) and try to color every pixel (e.g., "this pixel is a lane," "this pixel is a curb").

This approach has three major flaws:

  1. Lack of Instance Info: If two lanes are next to each other, a pixel-based map often blurs them together. It doesn't know where one lane ends and the next begins.
  2. Heuristic Post-processing: To get the lines a car needs for planning, you have to run complex algorithms to "thin" the predicted pixel-blobs into lines. This is brittle and hard to scale.
  3. Incompatibility: Modern motion planners and predictors consume vectors, not pictures.

VectorMapNet solves this by moving from pixels to polylines, modeling the map as a collection of distinct geometric objects from the start.

Methods

The architecture of VectorMapNet is a clever three-stage pipeline:

  1. BEV Feature Extractor: It takes multi-view camera images and LiDAR point clouds and projects them into a unified Bird’s-Eye View feature space. It uses standard techniques like Inverse Perspective Mapping (IPM) for cameras and PointPillars for LiDAR.
  2. Map Element Detector: Inspired by the DETR (Detection Transformer) architecture, this stage uses "element queries" to identify the presence and rough location of map features. Instead of a bounding box, it predicts a set of "keypoints" (like the corners of a box or the start/middle/end of a line) to represent the element's initial layout.
  3. Polyline Generator: This is the most novel part. It treats the detailed geometry of a lane or boundary as a sequence generation task. Using an autoregressive Transformer (similar to how GPT predicts words), it takes the detected keypoints and "types out" the exact coordinates of the polyline vertices one by one until it hits an "End of Sequence" (EOS) token.

Datasets

The authors evaluated VectorMapNet on two of the most challenging benchmarks in the field:

  • nuScenes: A massive dataset with 1,000 scenes, featuring 6 cameras and LiDAR.
  • Argoverse 2: A newer dataset that includes 3D (z-axis) annotations, allowing the authors to test VectorMapNet’s ability to predict maps in 3D space.

Key Insights and Ideas

  • Polylines as a Universal Language: The authors argue that polylines are the perfect "primitive." A point is a one-vertex polyline; a line is a multi-vertex polyline; and a closed polygon (like a crosswalk) is just a polyline that loops back to the start.
  • Top-Down is Better Than Bottom-Up: Instead of predicting pixels and trying to group them into lines (bottom-up), VectorMapNet identifies the "object" first and then refines its shape (top-down). This makes it much better at handling overlapping elements, like a lane divider that sits exactly on a road boundary.
  • Learning the "Hidden" Map: Qualitatively, the model is so good at understanding road topology that it can "hallucinate" pedestrian crossings in intersections that were actually missing from the human-annotated ground truth.

Key Results

  • SOTA Performance: On nuScenes, VectorMapNet achieved 53.7 mAP (using sensor fusion), a massive 14.2 point jump over the previous state-of-the-art, HDMapNet.
  • Robustness: It showed significant gains on Argoverse 2 (+14.6 mAP), proving that the vectorized approach is far superior at separating overlapping map elements compared to rasterized methods.
  • Downstream Success: The authors plugged their predicted maps into a motion forecasting model and found that the predicted maps were nearly as effective as human-annotated maps for predicting where other cars would drive.

Limitations and Future Work

Despite its success, the authors highlight a few areas for improvement:

  • Temporal Consistency: Currently, the model processes each frame in isolation. It doesn't "remember" the map from the previous frame, which can lead to slight flickering or inconsistencies over time.
  • The Two-Stage Mismatch: Because the detector and generator are trained separately (using "teacher forcing"), there can be a slight performance gap when they are run together in the real world.
  • Hallucination vs. Reality: While the model's ability to guess occluded areas is helpful for planning, it can occasionally predict road features that aren't actually there, which poses a safety challenge for interpretability.

VectorMapNet represents a significant shift in how we think about machine perception for autonomous driving—moving away from "seeing" pixels and toward "understanding" geometry.

Summary updated

BibTeX
@inproceedings{liu2023vectormapnet,
  author = {Yicheng Liu and Tianyuan Yuan and Yue Wang and Yilun Wang and Hang Zhao},
  title = {{VectorMapNet: End-to-end Vectorized HD Map Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=70TiaXJtyF},
}
Figure