VectorMapNet: End-to-end Vectorized HD Map Learning

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

TL;DR

VectorMapNet is the first end-to-end framework designed to learn vectorized High-Definition (HD) maps directly from onboard sensor data. By representing map elements as polylines and utilizing a detection-then-generation transformer architecture, it bypasses the need for messy rasterization and manual post-processing, delivering maps that are immediately ready for autonomous driving planners.

What Problem Does This Paper Address?

High-Definition (HD) semantic maps are the lifeblood of autonomous driving, providing critical information about lanes, boundaries, and pedestrian crossings. Traditionally, these maps are created through expensive, slow, and non-scalable manual offline annotation.

While recent AI research has attempted to automate this via "online" mapping, most methods produce rasterized outputs—essentially top-down images where pixels are labeled. This approach has three major flaws:

  1. Lack of Instance Info: It’s hard to tell where one lane boundary ends and another begins if they have the same label.
  2. Spatial Inconsistency: Nearby pixels might have contradictory labels or geometries.
  3. Incompatibility: Downstream modules like motion forecasting and path planning typically require vectorized data (coordinates and lines), not images. Converting pixels to vectors usually requires brittle, hand-designed heuristic algorithms.

VectorMapNet solves this by treating map learning as a direct vector prediction problem.

Methods

The authors propose a two-stage pipeline that transforms raw sensor data into a sparse set of polylines in Bird’s-Eye View (BEV).

  1. BEV Feature Extractor: The model takes inputs from multi-camera rigs and LiDAR. Camera images are projected into BEV space using Inverse Perspective Mapping (IPM), while LiDAR points are processed via PointPillars. These are fused into a unified BEV feature representation.
  2. Map Element Detector: Inspired by the DETR (Detection Transformer) architecture, this stage uses "element queries" to identify the presence and approximate location of map elements. Instead of bounding boxes, it predicts a small set of keypoints (like corners or extreme points) to represent the element's rough footprint.
  3. Polyline Generator: This is an autoregressive transformer that takes the detected keypoints and BEV features to "draw" the final polyline. It predicts a sequence of vertices one by one, allowing it to capture complex, variable-length geometries like curved road boundaries.
Figure 1: An overview of VectorMapNet. Sensor data is encoded to BEV features in the same coordinate as map elements. VectorMapNet detects the locations of map elements from BEV features by leveraging element queries. The vectorized HD map is built upon a sparse set of polylines that are generated from the detection results. Since our polylines are directional, we can infer drivable area of a map.

Datasets

The model was evaluated on two major autonomous driving benchmarks:

  • nuScenes: A large-scale dataset featuring 1,000 scenes in Boston and Singapore.
  • Argoverse2: A dataset providing 3D annotations, which the authors used to demonstrate VectorMapNet's ability to predict map elements in both 2D and 3D.

Key Insights and Ideas

  • Polylines as the Primary Primitive: Polylines are highly flexible; they can represent points, lines, and closed polygons (like pedestrian crossings). Crucially, they encode directionality, which is vital for understanding traffic flow.
  • Detection as a Precursor to Generation: By first detecting the "element" and then generating its "details," the model breaks down a complex geometric problem into two manageable steps.
  • Discrete Coordinate Modeling: Rather than regressing continuous coordinates (which often results in "blurry" or averaged lines), the model quantizes the map into a grid and treats vertex prediction as a classification task. This allows it to better represent sharp corners and irregular shapes.
  • Implicit Topology Learning: Because the model uses self-attention between different element queries, it can learn spatial relationships—for example, recognizing that a pedestrian crossing is likely to exist where two road boundaries intersect.

Key Results

VectorMapNet sets a new state-of-the-art for online map learning:

  • Performance Leap: On the nuScenes dataset, it outperformed the previous best method (HDMapNet) by 14.2 mAP in sensor fusion mode and 17.9 mAP in camera-only mode.
  • Qualitative Superiority: Visualizations show that VectorMapNet successfully preserves sharp corners and avoids the "loopy," ambiguous artifacts common in raster-based methods.
  • Downstream Impact: The authors plugged their predicted maps into a motion forecasting module. Using VectorMapNet's predicted maps reduced the "miss rate" of future trajectory predictions to within 0.2% of the performance achieved using perfect, human-annotated ground-truth maps.
Figure 2: The network architecture of VectorMapNet. The top row is the pipeline of VectorMapNet generating polylines from raw sensor inputs. The bottom row illustrates detailed structures and inference procedures of three primary components of VectorMapNet: BEV feature extractor, map element detector, and polyline generator. Numbers in polyline embeddings indicate predicted vertex indexes.

Limitations and Future Work

Despite its success, the authors note several areas for improvement:

  • Temporal Consistency: Currently, the model processes each frame independently. In a real-world driving scenario, map elements shouldn't "flicker" or shift between frames; future work will likely involve temporal fusion.
  • Training Complexity: The two-stage training process (using "teacher forcing") can be tricky to schedule and fine-tune.
  • Hallucination vs. Interpretability: The model is capable of "hallucinating" map elements in occluded areas (e.g., seeing a lane continue behind a parked truck). While this shows high-level scene understanding, it can reduce the system's interpretability if the hallucination is incorrect.

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