Abstract
Lane detection (LD) is a fundamental task for autonomous driving, yet the high computational demands of modern LD models often preclude their deployment on resource-constrained edge devices. While post-training quantization (PTQ) is a common strategy to reduce model size and power consumption, standard PTQ techniques often degrade performance by treating all output features uniformly. This paper presents Selective Focus, a novel PTQ framework designed specifically for lane detection. By identifying and prioritizing "semantically sensitive" components—such as foreground lane pixels and specific regression heads—Selective Focus significantly mitigates quantization-induced errors. Experimental results on the CULane dataset demonstrate up to a 6.4% improvement in F1 score over state-of-the-art PTQ baselines, with a 6x increase in optimization speed.
Introduction
The deployment of lane detection models in real-world autonomous systems necessitates a balance between accuracy and efficiency. Quantization, particularly 4-bit integer (INT4) representation, offers a path to high-efficiency inference. However, standard PTQ methods frequently introduce noise that manifests as physical distortions in detected lanes, such as spikes or misalignments. These errors occur because standard methods do not distinguish between background noise and critical foreground semantic information. Selective Focus addresses this by focusing quantization optimization on the areas and model components that most impact the final lane geometry.
Methodology
The Selective Focus framework introduces three core components to handle the unique sensitivities of lane detection models.
1. Lane Distortion Score
Traditional metrics like Intersection over Union (IoU) are often too coarse to capture the subtle geometric shifts caused by quantization. To address this, the authors proposed the Lane Distortion Score. This metric quantifies the physical deviation between a "clean" floating-point lane and its quantized counterpart by measuring point-wise distances and penalizing mismatches.
2. Semantic Guided Focus (SGF)
SGF addresses intra-head sensitivity by identifying which spatial regions within a feature map are most critical. Since ground-truth labels are unavailable during PTQ, SGF utilizes the model's own confidence scores as a proxy for a semantic mask. This "self-instruction" mechanism directs the optimization process to prioritize foreground lane pixels, where quantization noise is most damaging, while ignoring irrelevant background areas.
3. Sensitivity Aware Selection (SAS)
Lane detection models typically employ multiple regression heads for different attributes (e.g., offsets, angles, classification). SAS addresses inter-head sensitivity by dynamically identifying which heads are most susceptible to quantization noise using the Lane Distortion Score. By prioritizing these sensitive heads during optimization, the framework ensures that computational effort is spent where it yields the greatest benefit to final accuracy.
Experimental Results
The framework was evaluated on the CULane dataset, a large-scale benchmark for lane detection. Selective Focus was tested across various model architectures, including keypoint-based (CondLaneNet), anchor-based (CLRNet), segmentation-based (RESA), and curve-based (LSTR) models.
Key findings include:
- Accuracy: Selective Focus achieved up to a 6.4% F1 score improvement over competitive PTQ baselines like QDrop and BRECQ, particularly in aggressive W4A4 (4-bit weight and activation) settings.
- Efficiency: The method is highly efficient, producing quantized models in minutes on a single GPU. It offers a 6x speedup over traditional block-wise reconstruction methods by utilizing a streamlined network-wise tuning approach.
- Generalizability: The consistent performance gains across diverse architectures suggest that semantic sensitivity is a fundamental characteristic of lane detection tasks.
Conclusion
Selective Focus demonstrates that accounting for semantic sensitivity is crucial for effective post-training quantization in lane detection. By focusing on the "semantics that matter"—the foreground lanes and sensitive regression heads—the framework enables high-performance, low-bit quantization suitable for edge deployment. Future research may explore deeper integration of semantic information directly into the post-processing pipeline to further enhance robustness and efficiency.
Summary updated