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

TL;DR

This paper introduces a novel one-stage transformer architecture for autonomous driving that simultaneously detects road elements and predicts their topological relationships. By "reusing" intermediate attention queries and keys from the detection decoders, the model eliminates the need for computationally expensive Graph Neural Networks (GNNs), resulting in a 17% faster inference speed and state-of-the-art accuracy on the OpenLane-V2 benchmark.

What Problem Does This Paper Address?

For an autonomous vehicle to navigate safely, it isn't enough to just "see" a lane line or a traffic light; it must understand the topology—how these elements connect and interact (e.g., which traffic light controls which lane).

Current state-of-the-art methods typically use a two-stage approach: first, they detect the objects (lanes, traffic lights), and then they build a graph and use a Graph Neural Network (GNN) to reason about their relationships. This approach has two major flaws:

  1. Error Propagation: If the detector makes a mistake in the first stage, the topology reasoning in the second stage is almost guaranteed to fail.
  2. Efficiency Bottlenecks: Constructing graphs and running GNNs adds significant computational overhead and latency, which is critical for real-time driving systems.

Methods

The authors propose a one-stage architecture that treats detection and topology reasoning as a unified task. Their approach centers on two main innovations:

1. Attention Reuse

Instead of building a separate GNN, the authors realized that the internal "thoughts" of a transformer—specifically the queries ($Q$) and keys ($K$) used during the detection process—already contain rich relational information.

  • They extract these intermediate $Q$ and $K$ features from two distinct transformer decoders: one for Traffic Elements (TE) in perspective view and one for Lane Centerlines (CL) in Bird’s-Eye-View (BEV).
  • These features are projected, concatenated, and passed through lightweight "Topology Heads" to predict the relationship matrix directly.

2. Map-to-Mapless Knowledge Distillation

Standard Definition (SD) maps provide helpful priors but aren't always available or up-to-date. To bridge this gap, the authors used a Teacher-Student framework:

  • Teacher: A high-performance model trained with both camera images and SD maps.
  • Student: A lightweight model trained only on camera images.
  • By using a Mean Squared Error (MSE) loss, the student is forced to mimic the rich BEV features of the teacher, allowing it to achieve "map-like" performance even when no map is present at inference time.

Datasets

The models were trained and evaluated on OpenLane-V2, the primary large-scale benchmark for lane topology understanding. The authors reported results on both Subset-A and Subset-B to demonstrate the generalizability of their approach.

Key Insights and Ideas

  • Relational Knowledge is "Free": The most striking insight is that the attention mechanism used for object detection already performs a form of implicit relational reasoning. By tapping into these intermediate layers, the authors essentially get topology features "for free" without the overhead of a GNN.
  • Cross-View Reasoning: The paper successfully bridges the gap between perspective-view features (ideal for traffic lights) and BEV features (ideal for lanes). This dual-decoder setup allows the model to reason across fundamentally different feature spaces.
  • Simplicity Wins: By removing the complex GNN stage, the model becomes easier to optimize. The joint training of detection and topology leads to better feature sharing, where the two tasks actually help each other improve.

Key Results

The proposed method, dubbed "Ours," outperformed existing baselines like TopoNet and SMERF across the board:

  • Speed: Achieved a 17% reduction in inference time and used significantly fewer parameters (49.4M vs. 62.6M for TopoNet).
  • Accuracy: On OpenLane-V2 Subset-A, the student model achieved an OLS (OpenLane-V2 Score) of 40.6, surpassing the previous map-free state-of-the-art.
  • Qualitative Superiority: Qualitative results show the model is much better at identifying "long-range" relationships, such as connecting the ego-vehicle's current lane to a distant traffic light that two-stage methods often overlook.

Limitations and Future Work

  • Feature Interaction Limits: Interestingly, the authors found that allowing too much interaction between all features (using the full relationship matrix) actually degraded performance. Finding the "sweet spot" of task-relevant feature interaction remains an open area.
  • Hardware Deployment: While the 17% speedup is significant, the model still relies on heavy transformer backbones. Future work could involve further compressing these backbones for deployment on lower-power automotive chips.
  • Direct Planning: The authors suggest that the next logical step is integrating this one-stage topology understanding directly into the vehicle's planning and control modules.

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},
}

Loading related content...

Figure