Introduction
High-definition (HD) maps serve as the "digital rails" for autonomous vehicles, providing critical geometric and semantic information about lanes, boundaries, and intersections. In the current research landscape, online HD map construction—building maps in real-time from onboard sensor data—is dominated by two paradigms: Map Rasterization and Map Vectorization.
Rasterization produces dense, pixel-level semantic maps in a Bird’s-Eye View (BEV). While highly precise, these outputs are difficult for downstream motion planners to consume directly. Conversely, Vectorization predicts compact sets of points and polylines that are "planner-ready" but often struggle with geometric precision, particularly around complex curves. This paper introduces MapVR (Map Vectorization via Rasterization), a framework that bridges this gap by using a differentiable rasterizer to provide pixel-level supervision for vectorized predictions.
The Precision Gap in Online Mapping
Existing vectorization models typically rely on coordinate-based regression losses (such as L1 or L2 distance) to supervise point locations. However, this approach suffers from the "equidistance trap." Because there are often no distinct visual features in the middle of a uniform asphalt lane to indicate where a specific point should be placed, models struggle to learn precise coordinates.
Furthermore, standard evaluation metrics like Chamfer Distance are often "blind" to critical geometric errors. A predicted stopline might be physically close to the ground truth but oriented perpendicularly; Chamfer Distance might award this a high score despite the error being catastrophic for a self-driving car's logic.
Methodology: Map Vectorization via Rasterization
MapVR proposes that rasterization should be treated not as an alternative to vectorization, but as a superior method for supervision. The framework introduces three core components:
1. Differentiable Rasterizer
During the training phase, the model predicts vectorized point sets as usual. These points are passed through a custom, parameter-free "soft" rasterizer that converts the coordinates into a 2D semantic mask. Because this process is fully differentiable, gradients from pixel-level segmentation losses (such as Dice Loss) can flow back to the predicted coordinates, forcing the model to optimize for the overall shape rather than arbitrary point locations.
2. Geometry-Aware Supervision
The rasterizer employs specific strategies based on the map element type:
- Lines (Lanes and Boundaries): Uses a distance-based exponential function to generate a "soft" polyline mask.
- Polygons (Intersections and Crosswalks): Utilizes a signed distance function (SDF) to determine pixel occupancy, ensuring sharp and accurate boundaries.
3. Training-Only Overhead
A key advantage of MapVR is its efficiency. The differentiable rasterizer and its associated losses are utilized exclusively during training. At inference time, the rasterization module is discarded, allowing the model to output standard vectorized data at high speeds without any additional computational cost.
Evaluation and Metrics
To better align model performance with human perception and safety requirements, the authors propose a new metric: $AP_{raster}$. This metric rasterizes both the predicted map and the ground truth, then calculates the Mean Intersection-over-Union (mIoU). Unlike point-set distances, $AP_{raster}$ is highly sensitive to geometric deviations and orientation errors.
The framework was evaluated across several diverse datasets:
- nuScenes Map (Basic & Extended): The industry standard, with the extended version including complex intersections and carparks.
- Argoverse2: Focused on long-range perception.
- 6V-mini-v0.4: A proprietary dataset featuring highly complex, real-world "messy" scenarios to test robustness.
Key Results and Insights
MapVR demonstrates that better supervision is often more effective than increasing model size. When integrated into the state-of-the-art MapTR model, MapVR yielded significant improvements:
- Performance Gains: The model achieved a boost of 3.5% to 5.9% mAP on the nuScenes dataset.
- Efficiency: MapVR maintains high-speed inference (approximately 18 FPS), proving that pixel-level precision does not require sacrificing real-time performance.
- Qualitative Quality: Visual analysis shows that MapVR-trained models produce significantly smoother curves and more accurate boundary definitions compared to models trained with standard regression losses.
Limitations and Future Work
Despite its success, MapVR remains subject to the "BEV Bottleneck." Like all online mapping methods, its accuracy is limited by the quality of Bird's-Eye View feature extraction, which can be degraded by occlusions (e.g., large trucks) or adverse weather. Additionally, while MapVR improves results in low-light conditions, a performance gap remains for nighttime driving.
Future research directions include the integration of "road priors"—such as standard lane widths and common intersection geometries—to help the model reason about occluded areas and improve its predictive consistency in challenging environments.
Summary updated