Reusing Attention for One-stage Lane Topology Understanding

Yang Li, Zongzheng Zhang, Xuchong Qiu, Xinrun Li, Ziming Liu, Leichen Wang, Ruikai Li, Zhenxin Zhu, Huan-ang Gao, Xiaojian Lin, Zhiyong Cui, Hang Zhao, Hao Zhao

Abstract

Understanding lane topology relationships accurately is critical for safe autonomous driving. However, existing two-stage methods suffer from inefficiencies due to error propagations and increased computational overheads. To address these challenges, we propose a one-stage architecture that simultaneously predicts traffic elements, lane centerlines and topology relationship, improving both the accuracy and inference speed of lane topology understanding for autonomous driving. Our key innovation lies in reusing intermediate attention resources within distinct transformer decoders. This approach effectively leverages the inherent relational knowledge within the element detection module to enable the modeling of topology relationships among traffic elements and lanes without requiring additional computationally expensive graph networks. Furthermore, we are the first to demonstrate that knowledge can be distilled from models that utilize standard definition (SD) maps to those operates without using SD maps, enabling superior performance even in the absence of SD maps. Extensive experiments on the OpenLane-V2 dataset show that our approach outperforms baseline methods in both accuracy and efficiency, achieving superior results in lane detection, traffic element identification, and topology reasoning.

Introduction

Safe autonomous navigation requires more than just object detection; it necessitates a deep understanding of the road's topology—the complex relationships between lane centerlines and traffic elements (e.g., traffic lights). Traditional approaches typically employ a two-stage pipeline: first detecting road elements and then utilizing a Graph Neural Network (GNN) to infer relationships. However, this sequential process is prone to error propagation and introduces significant computational latency.

Comparison of two-stage methods versus our proposed one-stage approach, highlighting improvements in efficiency and accuracy.

As shown in Figure 1, our proposed one-stage method eliminates the need for a separate topology reasoning stage, resulting in a more streamlined and efficient architecture. By treating detection and topology reasoning as a unified task, the model avoids the pitfalls of error propagation inherent in decoupled systems.

Methodology

Our approach integrates detection and topology reasoning into a single, unified transformer-based framework, centered on two primary innovations.

1. Attention Reuse

The core innovation is the "reuse" of intermediate attention features. During the detection process, transformer decoders generate queries ($Q$) and keys ($K$) that implicitly capture relational information between objects. We extract these features from the Traffic Element (TE) decoder and the Lane Centerline (CL) decoder. By projecting and concatenating these existing features, we can predict the topology relationship matrix directly through lightweight "Topology Heads," bypassing the need for expensive GNNs.

2. Map-to-Mapless Knowledge Distillation

While Standard Definition (SD) maps provide valuable priors, they are not always available or up-to-date. We introduce a Teacher-Student framework to bridge this gap. The Teacher model is trained with both camera images and SD maps, while the Student model operates solely on camera images. Through feature distillation using a Mean Squared Error (MSE) loss, the Student learns to mimic the high-quality Bird’s-Eye-View (BEV) features of the Teacher, achieving "map-like" performance in mapless scenarios.

The overall architecture of our one-stage method, featuring the Teacher-Student distillation framework and the attention reuse mechanism.

Experimental Results

Evaluated on the OpenLane-V2 benchmark, our method demonstrates superior performance across multiple metrics compared to existing baselines like TopoNet and SMERF.

  • Efficiency: Our model achieves a 17% reduction in inference time compared to two-stage baselines, while also reducing the parameter count from 62.6M to 49.4M.
  • Accuracy: On Subset-A, our student model reached an OpenLane-V2 Score (OLS) of 40.6, setting a new state-of-the-art for map-free methods. The teacher model achieved an even higher OLS of 44.4.
  • Topology Reasoning: The attention reuse mechanism proves particularly effective for long-range relationships, such as linking distant traffic lights to the appropriate lanes, which are often missed by graph-based methods.

Conclusion

By treating lane topology understanding as a one-stage task and leveraging internal attention mechanisms, we significantly improve the efficiency and robustness of autonomous driving perception systems. Our work demonstrates that relational knowledge can be extracted "for free" from detection decoders and that SD map priors can be effectively distilled into mapless models, paving the way for safer real-time navigation.

Summary updated

BibTeX
@inproceedings{li2025reusing,
  author = {Yang Li and Zongzheng Zhang and Xuchong Qiu and Xinrun Li and Ziming Liu and Leichen Wang and Ruikai Li and Zhenxin Zhu and Huan-ang Gao and Xiaojian Lin and Zhiyong Cui and Hang Zhao and Hao Zhao},
  title = {{Reusing Attention for One-stage Lane Topology Understanding}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=dhvW9br95a},
}
Figure