cs.SEFeb 17, 2026

Latent Regularization in Generative Test Input Generation

Authors: Giorgi Merabishvili, Oliver Weißl, Andrea Stocco

Organizations: North Carolina State University USA · Technical University of Munich & fortiss GmbH Germany

Abstract

This study investigates the impact of regularization of latent spaces through truncation on the quality of generated test inputs for deep learning classifiers. We evaluate this effect using style-based GANs, a state-of-the-art generative approach, and assess quality along three dimensions: validity, diversity, and fault detection. We evaluate our approach on the boundary testing of deep learning image classifiers across three datasets, MNIST, Fashion MNIST, and CIFAR-10. We compare two truncation strategies: latent code mixing with binary search optimization and random latent truncation for generative exploration. Our experiments show that the latent code-mixing approach yields a higher fault detection rate than random truncation, while also improving both diversity and validity.

Figures & tables

Explore similar work

CardsList
  1. Latent Anchor-Driven Test Generation for Deep Neural Networks

    Jun 3, 2026Bin Duan, Matthew B. Dwyer, Guowei YangDNN TestingAutomated Test Generation

  2. HyperNet-Adaptation for Diffusion-Based Test Case Generation

    Jan 21, 2026Oliver Weißl, Vincenzo Riccio, Severin Kacianka +1HypernetworksAutomated Test Generation

  3. Quantifying the Effect of Test Set Contamination on Generative Evaluations

    Jan 7, 2026Rylan Schaeffer, Joshua Kazdan, Baber Abbasi +8Language Model Generation EvaluationBenchmark Contamination