Skip to main navigation Skip to search Skip to main content

Generating Latent Space-Aware Test Cases for Neural Networks using Gradient-Based Search

  • Technical University of Munich

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Autonomous vehicles rely on deep learning (DL) models like object detectors and traffic sign classifiers. Assessing the robustness of these safety-critical components requires good test cases that are both realistic, lying in the distribution of the real-world data, and cost-effective in revealing potential failures. Unlike previous methods that use adversarial attacks on the pixel space, our approach identifies latent space-aware test cases using a conditional variational autoencoder (CVAE) through three steps: (1) Train a CVAE on the dataset. (2) Generate test cases by computing adversarial examples in the CVAE's latent space. (3) Cluster challenging test cases based on their latent representations. The resulting clusters characterize regions that reveal potential defects in the DL model, which require further analysis. Our results show that our approach is capable of generating failing test cases for all classes of the MNIST and GTSRB datasets in a purely data-driven way, surpassing the baseline of random latent space sampling by up to 75 times. Finally, we validate our approach by detecting previously introduced faults in a faulty DL model. We suggest complementing expert-driven testing methods with our purely data-driven approach to uncover defects experts otherwise might miss. To strengthen transparency and facilitate replication, we provide a replication package and digital appendix to make our code, models, visualizations, and results publicly available.

Original languageEnglish
Title of host publication2025 IEEE International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2025
EditorsAnna Rita Fasolino, Sebastiano Panichella, Aldeida Aleti, Ali Mesbah
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages1-8
Number of pages8
ISBN (Electronic)9798331534677
DOIs
StatePublished - 2025
Event18th IEEE International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2025 - Naples, Italy
Duration: 31 Mar 20254 Apr 2025

Publication series

Name2025 IEEE International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2025

Conference

Conference18th IEEE International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2025
Country/TerritoryItaly
CityNaples
Period31/03/254/04/25

Keywords

  • autoencoders
  • automotive
  • clustering
  • deep learning
  • search-based test case generation
  • software testing

Fingerprint

Dive into the research topics of 'Generating Latent Space-Aware Test Cases for Neural Networks using Gradient-Based Search'. Together they form a unique fingerprint.

Cite this