Uncertainty-Instructed Structure Injection for Generalizable HD Map Construction

Xiaolu Liu, Ruizi Yang, Song Wang, Wentong Li, Junbo Chen, Jianke Zhu

Abstract

Online high-definition (HD) map construction is a critical component for autonomous driving, yet current methods struggle with generalization to unseen geographical regions. This paper introduces UIGenMap, a framework designed to bridge the generalization gap by injecting explicit structural priors from perspective-view (PV) detections into bird's-eye-view (BEV) space. By incorporating an uncertainty-aware decoder and a mimic query distillation module, UIGenMap achieves state-of-the-art performance on geographically disjoint datasets, improving mAP by up to 5.7 on nuScenes while maintaining real-time efficiency.

Introduction

High-definition (HD) maps provide essential geometric and semantic information for vehicle localization and path planning. While "online" mapping methods—which generate maps in real-time from onboard sensors—have advanced significantly, they often fail when deployed in new cities. This "generalization gap" stems from models memorizing specific road layouts in training data rather than learning general structural principles. Additionally, the transformation from perspective-view (PV) to bird's-eye-view (BEV) frequently introduces geometric distortions and loses fine-grained details, further hindering performance in unfamiliar environments.

Methodology

UIGenMap addresses these challenges through three core components: an Uncertainty-Aware Decoder, a UI2DPrompt module with Hybrid Injection, and Mimic Query Distillation.

Overview of the UIGenMap architecture, including the UA-Decoder and UI2DPrompt modules.

Uncertainty-Aware Decoder (UA-Decoder)

Traditional transformer decoders use deterministic attention. The UA-Decoder models attention weights as Gaussian distributions, allowing for dynamic resampling that better handles scene variability. Furthermore, the detection head predicts both coordinates ($P_{map}$) and their associated uncertainty ($\sigma_{map}$), modeled as a Laplace distribution. This enables the model to quantify its confidence at a point-specific level.

UI2DPrompt & Hybrid Injection

To mitigate BEV transformation errors, UIGenMap utilizes a 2D PV detection branch to extract explicit structural features, such as lane boundaries. These features are projected into BEV space via Inverse Perspective Mapping (IPM). The predicted uncertainty from the PV branch serves as a weighting mechanism: high-confidence detections act as strong "prompts" that guide the BEV features and map queries toward accurate road structures.

Mimic Query Distillation (MQ-Distillation)

To maintain real-time performance, the PV detection branch is only used during training. A set of "mimic queries" is trained to replicate the structural guidance provided by the PV branch. During inference, the PV branch is discarded, and the lightweight mimic queries provide the necessary structural injection without the computational overhead.

Experimental Results

The framework was evaluated on the nuScenes and Argoverse2 benchmarks using geographically disjoint splits to rigorously test generalization.

Performance comparison and visual results showing UIGenMap's superior generalization in new environments.

Quantitative Performance

UIGenMap significantly outperforms existing state-of-the-art models like StreamMapNet and MapTRv2. On the nuScenes region-based split, it achieved 39.8 mAP (+5.7 improvement). On the more challenging city-based split, it reached 23.6 mAP (+4.3 improvement). Similar gains were observed on Argoverse2, where the model achieved 60.4 mAP on region-based splits.

Qualitative Analysis and Efficiency

Visual comparisons demonstrate that UIGenMap produces more coherent and accurate road topologies in unseen environments compared to baselines. Despite the added complexity during training, the distilled version (UIGenMap-d) operates at 12.2 FPS on an RTX A40 GPU, making it suitable for real-time onboard deployment.

Conclusion

UIGenMap demonstrates that uncertainty-instructed structural injection is a powerful tool for improving the generalization of online HD mapping. By leveraging explicit 2D cues and modeling predictive uncertainty, the framework effectively navigates the domain shifts encountered in new driving environments. Future work will explore scaling these methods to even larger global datasets and addressing complex multi-level road topologies.

Summary updated

BibTeX
@inproceedings{liu2025uncertainty,
  author = {Xiaolu Liu and Ruizi Yang and Song Wang and Wentong Li and Junbo Chen and Jianke Zhu},
  title = {{Uncertainty-Instructed Structure Injection for Generalizable HD Map Construction}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02083},
}
Figure