NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LanEvil: Benchmarking the Robustness of Lane Detection to Environmental Illusions

Tianyuan Zhang, Lu Wang, Hainan Li, Yisong Xiao, Siyuan Liang, Aishan Liu, Xianglong Liu, Dacheng Tao · DOI

Abstract

Lane detection (LD) is a cornerstone of autonomous driving, yet current state-of-the-art models often fail when encountering "environmental illusions"—natural visual patterns like shadows, tire marks, and reflections that mimic lane markings. This paper introduces LanEvil, a comprehensive benchmark designed to evaluate and improve LD robustness against these deceptions. LanEvil comprises over 90,000 images across 14 illusion types generated in a high-fidelity simulator. Our analysis reveals that shadows are the most disruptive factor, significantly impacting even commercial-grade systems. To address these vulnerabilities, we propose Attention Area Mixing (AAM), a defense strategy that utilizes hard-example attention maps to train models to distinguish between true lanes and deceptive artifacts.

Introduction

Modern autonomous driving systems rely heavily on lane detection for critical functions such as lane-keep assist and automated highway piloting. While models achieve high accuracy on standard benchmarks like TuSimple or CULane, they exhibit a significant "robustness gap" when faced with real-world environmental complexities. These "environmental illusions" are non-lane visual features—such as the sharp shadow of a guardrail or dark streaks from emergency braking—that possess linear, high-contrast characteristics similar to lane markings. For a deep learning model, these features act as natural adversarial examples, potentially leading to dangerous lateral deviations.

The LanEvil Benchmark

To systematically study this phenomenon, we developed the LanEvil benchmark using the CARLA simulator. We categorized environmental illusions into four primary groups:

  1. Road Damage: Cracks and tire marks.
  2. Traffic Obstruction: Occlusions from other vehicles or pedestrians.
  3. Shadows: Linear shadows cast by fences, wires, or overpasses.
  4. Reflections: Specular highlights from sunlight or streetlights on wet pavement.
Examples of environmental illusions in the LanEvil benchmark: (a) overpass shadows, (b) fence shadows, (c) tire marks in a tunnel, and (d) wet road reflections.

The benchmark includes 94 customizable 3D scenarios, resulting in a dataset of 40,000 clean training images and 50,292 test images featuring 14 illusion types with varying levels of severity. This structured approach allows for a granular assessment of how specific environmental factors degrade model performance.

Attention Area Mixing (AAM)

Traditional defense mechanisms, such as random noise injection or standard adversarial training (e.g., PGD), often fail to improve robustness against structured environmental illusions. In some cases, they even decrease performance. We propose Attention Area Mixing (AAM) as a specialized spatial defense.

AAM works by identifying "hard examples"—images where the model's prediction fails due to an illusion. The system generates an "attention map" to pinpoint the High Attention Areas (HAA) that led to the misclassification. These HAA regions, which contain the deceptive patterns, are then extracted and blended into the training data. This process forces the model to focus on the semantic differences between actual lane markings and high-contrast environmental artifacts, effectively teaching it to ignore the "illusions."

Key Insights and Results

Our evaluation yielded several critical findings regarding the current state of lane detection:

  • The Shadow "Boss Fight": Shadows proved to be the most challenging illusion, causing an average accuracy drop of 7.39%. Their geometric similarity to lanes makes them mathematically difficult for spatial filters to distinguish.
  • Commercial Vulnerability: Testing extended beyond academic models to commercial systems like OpenPilot and Baidu Apollo. In collaborative simulations, tire marks and road damage induced a 92.31% Attack Success Rate (ASR) on OpenPilot, causing the system to make unsafe steering adjustments.
  • AAM Performance: The AAM defense strategy improved model robustness by 3.76% under difficult illumination conditions compared to vanilla detectors.
  • Real-World Validation: Validation on 1,400 real-world images confirmed the simulator's findings, with shadows remaining the primary cause of failure (13.55% accuracy drop).
Shadow illusions from overpasses (a) and fences (b) represent the most challenging scenarios for current lane detection models.

Conclusion and Future Work

The LanEvil benchmark highlights a critical safety gap in autonomous perception. While modular lane detection is the current focus, future research should explore how these illusions affect end-to-end foundation models that integrate perception and planning. Additionally, the concept of environmental illusions can be expanded to other tasks, such as 3D obstacle detection and traffic sign recognition. By bridging the sim-to-real gap with larger real-world datasets, we can build more resilient autonomous systems capable of navigating the visual complexities of the real world.

Summary updated

BibTeX
@inproceedings{zhang2024lanevil,
  author = {Tianyuan Zhang and Lu Wang and Hainan Li and Yisong Xiao and Siyuan Liang and Aishan Liu and Xianglong Liu and Dacheng Tao},
  title = {{LanEvil: Benchmarking the Robustness of Lane Detection to Environmental Illusions}},
  booktitle = {ACM Multimedia},
  year = {2024},
  url = {https://openreview.net/forum?id=Og8PCNxZ7g},
}
Figure