[Paper Review] End-to-end Lane Shape Prediction with Transformers
This paper proposes an end-to-end lane shape prediction method using a transformer-based network that directly regresses parameters of a physically interpretable lane shape model, enabling accurate detection of long, thin lane markings by capturing global context and spatial dependencies. The approach achieves state-of-the-art performance with the smallest model size and fastest inference speed on the TuSimple benchmark, while demonstrating strong zero-shot generalization to a challenging self-collected dataset (FVL).
Lane detection, the process of identifying lane markings as approximated curves, is widely used for lane departure warning and adaptive cruise control in autonomous vehicles. The popular pipeline that solves it in two steps -- feature extraction plus post-processing, while useful, is too inefficient and flawed in learning the global context and lanes' long and thin structures. To tackle these issues, we propose an end-to-end method that directly outputs parameters of a lane shape model, using a network built with a transformer to learn richer structures and context. The lane shape model is formulated based on road structures and camera pose, providing physical interpretation for parameters of network output. The transformer models non-local interactions with a self-attention mechanism to capture slender structures and global context. The proposed method is validated on the TuSimple benchmark and shows state-of-the-art accuracy with the most lightweight model size and fastest speed. Additionally, our method shows excellent adaptability to a challenging self-collected lane detection dataset, showing its powerful deployment potential in real applications. Codes are available at https://github.com/liuruijin17/LSTR.
Motivation & Objective
- Address the limitations of two-stage lane detection pipelines that are inefficient and fail to capture global context and slender lane structures.
- Overcome the shortcomings of CNN-based methods in modeling long-range dependencies and handling occlusions in lane markings.
- Develop a lightweight, efficient, and deployable lane detection system suitable for mobile and real-time autonomous driving applications.
- Improve generalization and transferability to unseen environments, including night scenes and diverse traffic conditions.
- Enable interpretable output by formulating lane parameters based on physical road geometry and camera pose.
Proposed method
- Formulate lane detection as direct regression of parameters in a physics-based lane shape model derived from camera pose and road geometry.
- Design a transformer-based encoder-decoder network that uses self-attention mechanisms to model non-local, long-range feature interactions across the image.
- Employ a Hungarian loss with bipartite matching to assign predictions to ground truth lanes one-to-one, eliminating the need for non-maximum suppression.
- Use a learnable set of predicted curve heads (7 in ablation) to serve as anchors for end-to-end training, balancing positive and negative sample ratios.
- Integrate spatial and contextual features through multi-head self-attention to enhance detection of thin, elongated lane structures.
- Train the entire network end-to-end using a differentiable loss that optimizes both lane parameter regression and instance matching.
Experimental results
Research questions
- RQ1Can a transformer-based end-to-end network outperform existing two-stage and anchor-based methods in lane detection accuracy while reducing model size and inference time?
- RQ2To what extent can a physically interpretable lane shape model improve the generalization and interpretability of lane detection outputs?
- RQ3How well does the proposed method generalize to unseen environments, such as night scenes and diverse urban conditions, without fine-tuning?
- RQ4What is the optimal number of predicted curve heads for balancing detection performance and training efficiency?
- RQ5Does the self-attention mechanism effectively capture global context and long-range dependencies necessary for detecting thin, occluded, or curved lane markings?
Key findings
- The proposed method achieves state-of-the-art accuracy on the TuSimple benchmark with a 96.8% F1 score, the lowest false positive rate, and the fastest inference speed among all methods compared.
- The model achieves the smallest parameter count (under 1.5M parameters) among SOTA methods, making it highly suitable for mobile deployment.
- On the self-collected Forward View Lane (FVL) dataset, the model generalizes effectively to challenging conditions such as night scenes, urban traffic, and variable weather without any fine-tuning.
- Ablation studies show that 7 predicted curve heads yield the best performance, as both fewer and more heads degrade generalization and fitting accuracy.
- Visual attention maps confirm that the decoder focuses on local lane structures, enabling direct instance separation without post-processing.
- The Hungarian loss with one-to-one matching enables robust training and eliminates the need for non-maximal suppression, simplifying the inference pipeline.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.