Papers
Topics
Authors
Recent
Search
2000 character limit reached

MambaMap: Online Vectorized HD Mapping

Updated 7 July 2026
  • 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 tt, the pipeline is described as follows:

  1. input surround-view images;
  2. extract image features with a backbone and FPN;
  3. lift them into an initial BEV representation Ft\mathbf{F}_t;
  4. fuse current and historical BEV features through BMF to obtain refined BEV Ft\mathbf{F}'_t;
  5. decode map instances using a Deformable-DETR-style map decoder to obtain Qt\mathbf{Q}_t;
  6. fuse current and historical instance queries through IMF to obtain refined queries Qt\mathbf{Q}'_t;
  7. apply classification and regression heads to predict categories and polyline point coordinates;
  8. update the memory bank with Ft\mathbf{F}'_t and Qt\mathbf{Q}'_t (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 D=512D=512, the BEV spatial dimensions as H=50H=50, W=100W=100, and the number of queries appears intended as Ft\mathbf{F}_t0 (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,

Ft\mathbf{F}_t1

with

Ft\mathbf{F}_t2

and

Ft\mathbf{F}_t3

where Ft\mathbf{F}_t4 is the memory size (Yang et al., 27 Jul 2025). The bank is explicitly size-restricted, and the reported best value is Ft\mathbf{F}_t5 (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: Ft\mathbf{F}_t6 where Ft\mathbf{F}_t7 is the Ft\mathbf{F}_t8 ego-motion transformation (Yang et al., 27 Jul 2025). These aligned features are concatenated with the current BEV feature,

Ft\mathbf{F}_t9

then projected by a convolution and normalized: Ft\mathbf{F}'_t0 This fused BEV tensor is then converted into sequences by four directional scans,

Ft\mathbf{F}'_t1

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

Ft\mathbf{F}'_t2

and the SSM branch is

Ft\mathbf{F}'_t3

After projection,

Ft\mathbf{F}'_t4

the final directional output is

Ft\mathbf{F}'_t5

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 Ft\mathbf{F}'_t6.

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

Ft\mathbf{F}'_t7

while the memory bank stores past refined query sets Ft\mathbf{F}'_t8 (Yang et al., 27 Jul 2025).

Because query identities are not inherently aligned across frames, MambaMap first matches historical and current queries using squared Ft\mathbf{F}'_t9 distance,

Qt\mathbf{Q}_t0

and uses the Hungarian algorithm to find a permutation

Qt\mathbf{Q}_t1

Historical queries are then reordered: Qt\mathbf{Q}_t2 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

Qt\mathbf{Q}_t3

and the Temporal-First Sequence is

Qt\mathbf{Q}_t4

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 Qt\mathbf{Q}_t5. 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

Qt\mathbf{Q}_t6

where Qt\mathbf{Q}_t7 is a polyline-wise matching cost using Smooth Qt\mathbf{Q}_t8 loss and Qt\mathbf{Q}_t9 is a classification cost using Focal loss. The weights are

Qt\mathbf{Q}'_t0

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 Qt\mathbf{Q}'_t1 (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: Qt\mathbf{Q}'_t2 m and Qt\mathbf{Q}'_t3 m (Yang et al., 27 Jul 2025). The metric is Average Precision (AP) per class and mAP over classes, using distance thresholds Qt\mathbf{Q}'_t4 m for the small range and Qt\mathbf{Q}'_t5 m for the large range (Yang et al., 27 Jul 2025).

On the nuScenes original split, MambaMap reports:

  • small range Qt\mathbf{Q}'_t6 m: APQt\mathbf{Q}'_t7 66.6, APQt\mathbf{Q}'_t8 68.0, APQt\mathbf{Q}'_t9 67.2, mAP 67.3, FPS 12.7;
  • large range Ft\mathbf{F}'_t0 m: APFt\mathbf{F}'_t1 68.7, APFt\mathbf{F}'_t2 67.8, APFt\mathbf{F}'_t3 62.9, mAP 66.5 (Yang et al., 27 Jul 2025).

On the Argoverse2 original split, it reports:

  • small range Ft\mathbf{F}'_t4 m: APFt\mathbf{F}'_t5 65.4, APFt\mathbf{F}'_t6 61.1, APFt\mathbf{F}'_t7 68.3, mAP 64.9, FPS 13.6;
  • large range Ft\mathbf{F}'_t8 m: APFt\mathbf{F}'_t9 68.6, APQt\mathbf{Q}'_t0 56.1, APQt\mathbf{Q}'_t1 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 APQt\mathbf{Q}'_t2 40.2, APQt\mathbf{Q}'_t3 33.4, APQt\mathbf{Q}'_t4 46.6, mAP 40.1; on the Argoverse2 new split, it achieves APQt\mathbf{Q}'_t5 59.4, APQt\mathbf{Q}'_t6 58.4, APQt\mathbf{Q}'_t7 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: Qt\mathbf{Q}'_t8 gives 66.6, Qt\mathbf{Q}'_t9 gives 67.1, D=512D=5120 gives 67.3, and D=512D=5121 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 D=512D=5122 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.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to MambaMap.