MambaMap: Online Vectorized HD Mapping
- MambaMap is an online vectorized HD mapping framework that integrates long-range temporal information from surround-view cameras.
- It employs dual-stage fusion in BEV and instance-query domains with a restricted memory bank to counter occlusions and noisy observations.
- The system uses DSS-based gated state-space blocks for efficient real-time map prediction, achieving competitive performance on nuScenes and Argoverse2.
Searching arXiv for the MambaMap paper and closely related Mamba-based spatial mapping work. MambaMap is an online vectorized HD map construction framework for autonomous driving that uses state space modeling to fuse long-range temporal information from surround-view camera streams while maintaining online operation (Yang et al., 27 Jul 2025). Its stated goal is to infer vectorized map elements directly from onboard images in real time, rather than relying on expensive offline SLAM pipelines. The framework operates in bird’s-eye-view (BEV) space, maintains a restricted memory bank of historical BEV features and instance queries, and performs temporal fusion at both the dense spatial level and the instance-query level. In the reported formulation, the evaluated map classes are lane dividers, pedestrian crossings, and road boundaries, and the framework is motivated by the need to improve robustness against occlusion, noisy observations, and extended perception range (Yang et al., 27 Jul 2025).
1. Problem formulation and scope
MambaMap addresses online vectorized HD map construction from multi-view camera imagery for autonomous driving (Yang et al., 27 Jul 2025). The target representation is explicitly vectorized rather than rasterized, and the outputs correspond to map instances with class labels and regressed polyline point coordinates. The reported classes are lane dividers, pedestrian crossings, and road boundaries (Yang et al., 27 Jul 2025).
The paper situates the method in a standard camera-only mapping pipeline: multi-view images are processed by an image backbone and feature pyramid network, transformed into a bird’s-eye-view (BEV) representation, and then decoded using DETR-style map queries (Yang et al., 27 Jul 2025). The central claim is that single-frame map construction is limited by occlusions, long-range perception challenges, and noisy observations, whereas temporal integration can recover structures that are weakly visible or fully occluded in the current frame (Yang et al., 27 Jul 2025).
The method is explicitly designed to avoid two limitations attributed to prior temporal HD mapping systems. First, some earlier methods propagate only a single recurrent hidden feature, which the paper argues is too limited for rich long-range temporal dependencies. Second, more direct history processing can create substantial memory and computation cost, reducing suitability for real-time deployment (Yang et al., 27 Jul 2025). This motivates the use of a state space model (SSM) together with a restricted memory bank, with the intended effect of capturing long-range temporal structure more efficiently than transformer-style temporal attention.
A plausible implication is that MambaMap belongs to a broader class of Mamba-inspired dense spatial prediction systems in which efficient long-range dependency modeling is introduced at intermediate representation levels rather than by replacing the entire perception stack. Related Mamba-based work in dense spatial reconstruction and segmentation adopts a similar logic in radio map construction and high-resolution remote sensing segmentation (Jia et al., 28 Jul 2025, Zhu et al., 2024).
2. Architectural organization
MambaMap separates temporal fusion into two coupled stages: BEV Mamba Fusion (BMF) for dense spatial features and Instance Mamba Fusion (IMF) for decoded map queries (Yang et al., 27 Jul 2025). At time step , the pipeline is described as follows:
- input surround-view images;
- extract image features with a backbone and FPN;
- lift them into an initial BEV representation ;
- fuse current and historical BEV features through BMF to obtain refined BEV ;
- decode map instances using a Deformable-DETR-style map decoder to obtain ;
- fuse current and historical instance queries through IMF to obtain refined queries ;
- apply classification and regression heads to predict categories and polyline point coordinates;
- update the memory bank with and (Yang et al., 27 Jul 2025).
The implementation details reported in the paper instantiate this pipeline with ResNet-50 as backbone, FPN as image neck, BEVFormer as BEV encoder, and a Deformable DETR-based decoder as map decoder (Yang et al., 27 Jul 2025). The query feature dimension is given as , the BEV spatial dimensions as , , and the number of queries appears intended as 0 (Yang et al., 27 Jul 2025).
Although the title uses “MambaMap,” the paper later states that the state-space operator used inside the gated temporal block is actually DSS (Diagonal State Spaces), selected because it performed best in ablation (Yang et al., 27 Jul 2025). This is important for terminology: the framework is Mamba-inspired in its use of efficient state-space temporal fusion, gating, and scan-based sequence construction, but its best-performing reported instantiation is DSS-based rather than vanilla Mamba or Mamba-2.
3. Memory bank and BEV-level temporal fusion
The memory bank has two components,
1
with
2
and
3
where 4 is the memory size (Yang et al., 27 Jul 2025). The bank is explicitly size-restricted, and the reported best value is 5 (Yang et al., 27 Jul 2025). The paper argues that overly long history introduces redundancy and noise, whereas a short window retains the most relevant recent context.
For BEV fusion, historical BEV features are first aligned to the current ego frame: 6 where 7 is the 8 ego-motion transformation (Yang et al., 27 Jul 2025). These aligned features are concatenated with the current BEV feature,
9
then projected by a convolution and normalized: 0 This fused BEV tensor is then converted into sequences by four directional scans,
1
so that the state-space block can process directional road geometry and elongated structures in BEV space (Yang et al., 27 Jul 2025).
Each directional sequence is passed through a gated state-space block. The gate branch is
2
and the SSM branch is
3
After projection,
4
the final directional output is
5
The paper interprets this gating mechanism as a way to suppress less relevant context and emphasize useful long-range dependencies while remaining computationally lighter than attention (Yang et al., 27 Jul 2025). The outputs from the four directions are reshaped back into BEV feature maps and averaged to obtain the refined BEV representation 6.
4. Instance-query temporal fusion
Instance Mamba Fusion operates after the map decoder and is intended to stabilize vectorized map instances over time (Yang et al., 27 Jul 2025). The current decoder outputs
7
while the memory bank stores past refined query sets 8 (Yang et al., 27 Jul 2025).
Because query identities are not inherently aligned across frames, MambaMap first matches historical and current queries using squared 9 distance,
0
and uses the Hungarian algorithm to find a permutation
1
Historical queries are then reordered: 2 The paper emphasizes that this is done without additional temporal supervision (Yang et al., 27 Jul 2025).
Two complementary sequence organizations are then constructed. The Instance-First Sequence is
3
and the Temporal-First Sequence is
4
The first ordering emphasizes within-frame spatial interactions among instances, whereas the second emphasizes temporal continuity of query slots across frames (Yang et al., 27 Jul 2025). Both are processed by the same style of gated state-space block used in BMF, and the features corresponding to the current frame are split and aggregated into refined instance queries 5. The exact aggregation operator between the two streams is not explicitly specified in the paper (Yang et al., 27 Jul 2025).
This dual-order design is one of the method’s characteristic features. It encodes the view that temporal consistency in vectorized HD mapping is not reducible to either pure BEV feature recurrence or pure instance-slot tracking; instead, it depends on both scene-level completion and query-level stabilization.
5. Training, inference, and empirical results
The overall map loss is
6
where 7 is a polyline-wise matching cost using Smooth 8 loss and 9 is a classification cost using Focal loss. The weights are
0
The paper further states that both the original decoder queries and the fused queries are supervised by these losses, following Hungarian matching in the style of StreamMapNet (Yang et al., 27 Jul 2025).
Training uses 2 NVIDIA A30 GPUs, batch size 8, AdamW, and learning rate 1 (Yang et al., 27 Jul 2025). The optimization is staged: single-frame training is performed first, followed by temporal training on consecutive sequences. Memory-bank features are detached, so gradients do not backpropagate into historical frames (Yang et al., 27 Jul 2025). Online inference proceeds with fixed recent history only, updating the memory bank frame by frame.
The method is evaluated on nuScenes and Argoverse2, with three classes—pedestrian crossing, lane divider, and road boundary—under two perception ranges: 2 m and 3 m (Yang et al., 27 Jul 2025). The metric is Average Precision (AP) per class and mAP over classes, using distance thresholds 4 m for the small range and 5 m for the large range (Yang et al., 27 Jul 2025).
On the nuScenes original split, MambaMap reports:
- small range 6 m: AP7 66.6, AP8 68.0, AP9 67.2, mAP 67.3, FPS 12.7;
- large range 0 m: AP1 68.7, AP2 67.8, AP3 62.9, mAP 66.5 (Yang et al., 27 Jul 2025).
On the Argoverse2 original split, it reports:
- small range 4 m: AP5 65.4, AP6 61.1, AP7 68.3, mAP 64.9, FPS 13.6;
- large range 8 m: AP9 68.6, AP0 56.1, AP1 57.5, mAP 60.7 (Yang et al., 27 Jul 2025).
The paper also reports geographically disjoint splits. On the nuScenes new split, MambaMap achieves AP2 40.2, AP3 33.4, AP4 46.6, mAP 40.1; on the Argoverse2 new split, it achieves AP5 59.4, AP6 58.4, AP7 65.2, mAP 61.0 (Yang et al., 27 Jul 2025). These results are presented as evidence of improved generalization to unseen geography.
6. Ablations, interpretation, and broader context
The ablations show that both temporal fusion stages matter. Starting from a baseline without streaming strategy at 61.5 mAP, adding BMF only yields 65.2 mAP, adding IMF only yields 63.7 mAP, and using BMF + IMF yields 67.3 mAP (Yang et al., 27 Jul 2025). The BEV scan ablation reports 64.9 for single direction, 66.1 for horizontal bidirectional, 66.3 for vertical bidirectional, and 67.3 for the reported four-direction multi-directional scan (Yang et al., 27 Jul 2025). At the instance level, spatial only gives 66.4, temporal only gives 66.6, and spatial-temporal gives 67.3 (Yang et al., 27 Jul 2025). These results support the paper’s claim that dense spatial completion and instance-level temporal consistency are complementary.
The SSM comparison is especially notable: S4 gives 64.6, DSS gives 67.3, Mamba gives 65.3, and Mamba-2 gives 65.2 (Yang et al., 27 Jul 2025). This indicates that the framework’s gains derive less from adherence to a specific branded SSM and more from the overall design of gated state-space temporal fusion, restricted memory, and task-specific scan strategies. The memory-bank ablation likewise favors moderate history: 8 gives 66.6, 9 gives 67.1, 0 gives 67.3, and 1 drops to 66.5 (Yang et al., 27 Jul 2025).
The paper presents MambaMap as an efficient alternative to transformer temporal fusion, but the reported runtime numbers show a more specific picture. On one A30 GPU, MambaMap reaches 12.7 FPS on nuScenes and 13.6 FPS on Argoverse2 at 2 m, compared with 14.9/15.9 FPS for StreamMapNet and 14.4/15.4 FPS for SQD-MapNet (Yang et al., 27 Jul 2025). Thus, the method remains in a practical real-time range, but it is not the fastest among the compared streaming baselines. A plausible implication is that its primary advantage lies in improved temporal fusion quality rather than raw throughput.
Within the broader Mamba literature, MambaMap is a concrete example of using scan-based state-space modeling for structured spatial prediction under temporal constraints. Related Mamba-based work has applied comparable global-local design logic to radio map construction, where a hybrid Mamba-UNet captures long-range spatial propagation with linear complexity (Jia et al., 28 Jul 2025), and to remote sensing semantic segmentation, where a UNet-like decoder uses Mamba selective scan to handle high-resolution scenes efficiently (Zhu et al., 2024). This suggests that MambaMap belongs to a wider methodological family in which Mamba-style sequence operators are used not as generic replacements for convolution or attention, but as targeted mechanisms for efficient long-range dependency modeling in spatially structured outputs.
The main limitation that can be stated directly from the paper is that some design details remain under-specified: the exact aggregation of the two IMF streams is not given in equation form, exact temporal consistency metrics are not separately quantified, and the best-performing operator is DSS rather than Mamba or Mamba-2 (Yang et al., 27 Jul 2025). Nevertheless, the reported evidence supports a stable characterization of MambaMap as a two-level temporal fusion framework for online vectorized HD map construction, built around a restricted memory bank, gated state-space processing, and specialized BEV and instance scanning strategies.