Persistent Autoregressive Mapping with Traffic Rules for Autonomous Driving

Shiyi Liang, Xinyuan Chang, Changjie Wu, Huiyuan Yan, Yifan Bai, Xinran Liu, Hang Zhang, Yujian Yuan, Shuang Zeng, Mu Xu, Xing WeiarXiv 2025 · DOI

Abstract

High-Definition (HD) map construction is a cornerstone of autonomous driving, yet current methods often struggle with the temporal persistence of traffic rules. This paper introduces PAMR (Persistent Autoregressive Mapping with Traffic Rules), a framework that leverages Multi-modal Large Language Models (MLLMs) to co-construct lane geometries and traffic regulations simultaneously. By incorporating a novel "Map-Rule Cache," PAMR ensures that critical information—such as bus lane restrictions or turn limitations—is maintained even after the physical signs are no longer visible to the vehicle's sensors. Evaluated on the new MapDRv2 dataset, PAMR sets a new state-of-the-art in holistic mapping accuracy.

The Challenge of Semantic Persistence

Most contemporary HD map construction methods are "semantically blind." While they excel at geometric tasks like detecting lane lines and curbs, they often treat traffic rules as secondary classification tasks or point-in-time observations.

The core issue is persistence. A traffic sign, such as a "Bus Lane Only" marker, is visible for only a few seconds as a vehicle passes it. However, the legal rule it establishes may apply for hundreds of meters. Traditional systems frequently "forget" these rules once the sign exits the camera's field of view, potentially leading to illegal or unsafe maneuvers.

Figure 1: Conceptual comparison showing how rule persistence prevents a vehicle from 'forgetting' traffic regulations after a sign is passed.

Furthermore, existing pipelines are typically multi-stage: they detect lanes, then detect signs, and finally attempt to associate them. This modularity often leads to error propagation and a lack of unified understanding between the road's physical shape and its governing laws.

The PAMR Framework

PAMR redefines map-making as a "narrative" task. Instead of using separate detection heads for different features, it employs an autoregressive approach based on the Qwen2-VL-2B model.

1. Map-Rule Co-Construction

The model processes sequences of front-view images and vehicle trajectories to generate a single, interleaved sequence of tokens. It first produces the lane geometry and immediately follows it with the associated traffic rule, ensuring the two are "intrinsically interwoven" in the model's latent space.

2. Map-Rule Cache

To solve the persistence problem, the authors introduced the Map-Rule Cache. The driving environment is divided into temporal segments. The cache extracts vector points from the boundary of one segment and carries them over to the next. This "memory" ensures that a rule identified in an earlier segment remains active and correctly attached to the lane in subsequent segments.

Figure 3: Comparison between traditional multi-stage map construction and the end-to-end, persistent approach of PAMR.

3. Interactive Prompting and Serialization

The framework supports "query-based" mapping, allowing users to provide coordinates or Regions of Interest (ROI) to guide the model's focus. All multimodal data—including images, ego-poses, and historical context—is converted into a unified token stream for processing.

Datasets: MapDRv2

To support this research, the authors released MapDRv2. They identified that previous datasets often had fragmented lane annotations. MapDRv2 features re-annotated, smooth, and continuous lane geometries across 10,000 scene segments and 18,000 driving rules. The dataset includes 400,000 high-resolution images covering diverse weather and traffic conditions, providing a robust benchmark for rule-aware mapping.

Key Insights and Results

  • Rules are Spatially Bound: By generating rules and geometry together, the model learns the spatial logic of where a rule applies, rather than just identifying what the rule is.
  • Memory is Mandatory: Ablation studies showed that removing the Map-Rule Cache caused accuracy to drop from ~70% to ~40%, proving that local perception alone is insufficient for rule-compliant driving.
  • State-of-the-Art Performance: PAMR achieved a Holistic Mapping Accuracy (HMA) F1-score of 70.37, significantly outperforming previous methods like RuleVLM (64.20) and VLE-MEE (65.29).

Limitations and Future Work

While PAMR demonstrates superior performance in associating signs with specific lanes, the authors note that using a 2B-parameter MLLM is computationally intensive for real-time applications. Future research will focus on distilling this knowledge into smaller, more efficient on-device models and validating the framework across a broader range of global mapping scenarios and edge cases.

Summary updated

BibTeX
@misc{liang2025persistent,
  author = {Shiyi Liang and Xinyuan Chang and Changjie Wu and Huiyuan Yan and Yifan Bai and Xinran Liu and Hang Zhang and Yujian Yuan and Shuang Zeng and Mu Xu and Xing Wei},
  title = {{Persistent Autoregressive Mapping with Traffic Rules for Autonomous Driving}},
  year = {2025},
  eprint = {2509.22756},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.22756},
}
Figure