When Anchors Meet Cold Diffusion: A Multi-Stage Approach to Lane Detection

Bo-Lun Huang, Zi-Xiang Ni, Feng-Kai Huang, Hong-Han Shuai, Wen-Huang Cheng

TL;DR

This paper introduces CDiffLane, a novel approach to lane detection that leverages "cold diffusion" to iteratively refine lane predictions, starting from predefined anchors. By avoiding the random noise injection of traditional diffusion models and incorporating multi-resolution image processing and a learnable parameter, CDiffLane achieves state-of-the-art accuracy, particularly in challenging scenarios.

What Problem Does This Paper Address?

Accurate and stable lane detection is a critical component for autonomous driving systems. However, existing deep learning methods, especially one-shot prediction paradigms, struggle with complex scenarios like curved roads, low visibility, or ambiguous lane markings. While diffusion models offer a promising iterative refinement approach, directly applying them to lane detection (e.g., "hot diffusion") can lead to unrealistic lane shapes due to random noise injection and a lack of a true coarse-to-fine image processing strategy. This paper aims to bridge this gap by developing a diffusion-based lane detection method that is robust, adaptable, and achieves high precision.

Methods

CDiffLane builds upon the concept of cold diffusion, which uses deterministic degradation processes instead of random noise. The core idea is to start with predefined lane anchors (structured reference points) and iteratively refine them using a diffusion model.

Key methodological contributions include:

  • Cold Diffusion for Lane Detection: Instead of injecting random noise, CDiffLane uses a deterministic degradation process that interpolates between a predefined anchor and the ground-truth lane. This preserves strong lane priors and avoids unrealistic perturbations.
  • Multi-Stage Refinement: The model employs a multi-resolution image processing strategy. At different diffusion timesteps, images are processed at varying resolutions, allowing the model to capture both global and local lane structures progressively. This is achieved through a resolution scheduling mechanism (parameter $\gamma_t$).
  • Learnable Parameter ($\alpha$): A learnable parameter $\alpha$ controls the interpolation between the anchor and the ground truth during the degradation process. This allows the model to dynamically adjust its learning based on the confidence of its predictions at each step, leading to more adaptive refinement.
  • Anchor-Based Initialization: The diffusion process is initiated with a set of lane anchors, which are then dynamically updated to fit the data distribution. This provides a more structured and semantically meaningful starting point compared to random noise.
  • Training Loss: The overall training loss includes a classification loss (focal loss) and a regression loss (smooth L1 and IoU loss). Crucially, the regression loss is weighted by the variation magnitude of $\alpha$ between steps ($v_t$), allowing the model to dynamically adjust the influence of regression at different timesteps.

Datasets

The paper evaluates CDiffLane on two widely recognized lane detection benchmarks:

  • CULane: A challenging dataset with diverse environments (urban streets, rural roads, traffic) and nine specific conditions (e.g., crowded, night, no line) to test robustness.
  • TuSimple: A dataset focused on highway scenarios.

Key Insights and Ideas

  • Cold Diffusion is Crucial for Structured Data: The paper highlights that for tasks with strong structural constraints like lane detection, deterministic "cold diffusion" is superior to "hot diffusion" because it avoids injecting random noise that can lead to unrealistic shapes and disrupt geometric priors.
  • Iterative Refinement is Key for Precision: The multi-stage, iterative refinement process allows the model to gradually improve lane predictions, leading to significantly better performance at stricter IoU thresholds (e.g., F₁@75). This is particularly effective in challenging scenarios where single-pass methods fail.
  • Multi-Resolution Processing Enhances Coarse-to-Fine Learning: By processing images at different resolutions across diffusion steps, the model can effectively learn a coarse-to-fine representation, focusing on high-level features initially and then progressively refining finer details.
  • Learnable Parameters Offer Adaptability: The learnable parameter $\alpha$ allows the model to adapt its learning process based on the confidence of its predictions, making it more robust to noise and uncertainty.

Key Results

  • CULane Performance: CDiffLane achieves state-of-the-art results on CULane, with an F₁ score of 81.26 at 50% IoU (F₁@50) and 65.31 at 75% IoU (F₁@75). This represents a significant improvement over baselines, especially at the higher F₁@75 threshold, indicating superior localization precision.
  • TuSimple Performance: On TuSimple, CDiffLane achieves a high F₁@50 of 97.71 and a reduced false positive rate of 1.62%.
  • Robustness: The method demonstrates robust performance across various challenging conditions on CULane, such as "night" and "crowded" scenarios, with reduced false positives.
  • Ablation Studies:
    • Switching from "hot diffusion" to "cold diffusion" alone significantly improves performance.
  • "Resolution" and "DCT" degradation strategies yield the largest gains among tested degradation methods.
  • A learnable $\alpha$ with a scheduled $\gamma$ provides the best performance.
  • Efficiency: While diffusion models inherently add inference steps, CDiffLane still surpasses strong baselines like GSENet even at a single iterative step (achieving >140 FPS).

Limitations and Future Work

  • Inference Overhead: The primary limitation acknowledged is the increased inference time due to the iterative nature of diffusion models.
  • Future Work: The authors suggest progressive distillation as a promising approach to alleviate the inference overhead by training a student model to inherit knowledge from the diffusion model and produce reliable predictions in fewer steps. They also anticipate that the CDiffLane architecture can be extended to other perception-based applications beyond lane detection.

Summary updated

BibTeX
@inproceedings{huang2025when,
  author = {Bo-Lun Huang and Zi-Xiang Ni and Feng-Kai Huang and Hong-Han Shuai and Wen-Huang Cheng},
  title = {{When Anchors Meet Cold Diffusion: A Multi-Stage Approach to Lane Detection}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure