Validation of Image-Based Neural Network Controllers through Adaptive Stress Testing

Kyle D. Julian, Ritchie Lee, Mykel J. Kochenderfer

TL;DR

Researchers have developed a new way to find "blind spots" in neural network controllers by combining Reinforcement Learning (RL) with formal verification tools. By using this method to stress-test an autonomous aircraft taxiing system, they successfully identified likely sequences of image disturbances that cause the plane to veer off the runway—revealing that the AI is surprisingly easy to fool when it loses sight of centerline dashes.

What Problem Does This Paper Address?

Neural networks (NNs) are the gold standard for computer vision, but they are notoriously "brittle." A tiny, invisible change to an image can cause an NN to misclassify a stop sign as a speed limit sign. While we have tools to verify the local robustness of a single image (ensuring a small nudge doesn't change the output), validating a closed-loop controller is much harder.

In a closed-loop system, the NN makes a decision, the environment changes, and the NN makes another decision based on the new state. To guarantee safety, we need to know if any sequence of plausible disturbances could eventually lead to a catastrophe (like a plane crashing). Because high-fidelity simulators are "black boxes" and images have thousands of dimensions (pixels), traditional formal verification methods simply can't scale.

Methods

The authors propose a hybrid approach that combines Adaptive Stress Testing (AST) with a formal verification tool called Marabou.

  1. Adaptive Stress Testing (AST): This is an RL-based framework (using Monte Carlo Tree Search or Deep Q-Learning) where the "agent" is actually the environment trying to make the controller fail. Its goal is to find the most likely sequence of actions (disturbances) that lead to a failure.
  2. The Dimensionality Trick: Searching through every possible pixel change in every frame is impossible. Instead, the authors used Marabou as an "inner loop." The AST agent only chooses a noise bound ($\delta$). Marabou then mathematically solves for the exact pixel-level disturbance within that bound that changes the NN's output the most.
  3. The Reward Function: The RL agent is rewarded for causing a failure but penalized for using large, "unlikely" disturbances. This forces the system to find the most realistic ways the AI might fail.

Datasets

The study utilized the X-Plane 11 flight simulator, a professional-grade tool used for pilot training.

  • The Task: An autonomous Cessna 208B Grand Caravan must taxi at 5 m/s while staying centered on the runway.
  • The Controller: A neural network trained via supervised learning to map 8x16 downsampled grayscale images from a wing-mounted camera to a crosstrack position ($d$) and heading angle ($\theta$).
  • The Environment: Simulated at Grant County International Airport under various lighting and cloud conditions.

Key Insights and Ideas

  • Bridging the Gap: The core "aha" moment is using formal verification (Marabou) to reduce a high-dimensional search space (thousands of pixels) into a one-dimensional search space (the noise bound $\delta$). This makes stress-testing image-based systems computationally feasible.
  • The "Pendulum" Failure: The system discovered a non-obvious failure mode where the aircraft oscillates across the centerline like a pendulum. By perfectly timing small disturbances, the environment can help the aircraft gain enough momentum to eventually swing entirely off the taxiway.
  • Visual Vulnerabilities: By reconstructing the "perturbed" images, the researchers saw that the AST was effectively "erasing" the taxiway edge lines. This proved that the NN relied heavily on those specific visual cues to stay on track.
  • Dashes Matter: The AI was significantly more susceptible to failure when the aircraft was traveling over the gaps between the dashed centerlines, suggesting the NN uses those dashes as a primary "anchor" for its positioning.

Key Results

  • Efficiency: Using Monte Carlo Tree Search (MCTS) with Marabou, the system found failures in just 1–6 hours on a standard desktop. In contrast, Deep Q-Learning (DQN) took 24–36 hours to achieve similar results.
  • Effectiveness: The AST method found failures with a noise bound ($\delta$) as low as 0.028. When the researchers tried to find failures using random sampling (the baseline), the aircraft never exceeded 5 meters from the centerline—meaning the AST found critical edge cases that standard testing missed entirely.
  • Explainability: The method didn't just say "it fails"; it provided a sequence of images that showed why it failed, allowing engineers to see exactly which visual features (like the boundary lines) needed to be made more robust.

Limitations and Future Work

The authors acknowledge a few areas for improvement:

  • Discrete Actions: The current model uses a discrete set of noise bounds; moving to continuous actions might find even more subtle failures.
  • Semantic Noise: The disturbances were pixel-level "noise." Future work could look at "semantic" disturbances, such as simulating realistic skid marks, puddles, or different types of runway paint that might confuse the AI.
  • Hardware Validation: While X-Plane 11 is high-fidelity, the ultimate test would be applying this validation pipeline to a physical aircraft on a real taxiway to account for real-world sensor noise and lens flare.

Summary updated

BibTeX
@inproceedings{julian2020validation,
  author = {Kyle D. Julian and Ritchie Lee and Mykel J. Kochenderfer},
  title = {{Validation of Image-Based Neural Network Controllers through Adaptive Stress Testing}},
  booktitle = {ITSC},
  year = {2020},
  doi = {10.1109/itsc45102.2020.9294549},
}

Loading related content...

Figure