International Symposium on Leveraging Applications of Formal Methods, Verification, and Validation • Kos, Greece
Time: Thursday, 29.10
Room: Room 2
Authors: Dejan Nickovic
Abstract: The widespread adoption of generative AI (GenAI), such as the foundation models is transforming software and systems engineering. Large language models (LLMs) are increasingly used to generate source code, formalize natural-language requirements into formal specifications, synthesize unit tests, and assist in verification and validation activities. As these models become integral components of engineering toolchains, their robustness becomes essential for ensuring the correctness and predictability of the generated artifacts. While robustness testing is well established for perception models such as image classifiers, extending these techniques to general GenAI systems is considerably more challenging. Both the inputs and outputs are often natural-language or structured-text artifacts rather than fixed-dimensional vectors, making it difficult to define meaningful distance metrics that capture semantic similarity while tolerating superficial variations. Likewise, there is no canonical notion of a small, semantics-preserving mutation of an input (prompt): simple syntactic changes, such as edit-distance perturbations, often fail to reflect the intended meaning, whereas semantically equivalent paraphrases may differ substantially at the lexical level. We present a robustness testing framework that addresses these challenges by introducing domain-specific semantic distance measures and realistic mutation operators tailored to GenAI engineering tasks. Building on this foundation, we further develop a falsification-based testing approach that systematically steers the GenAI-based system toward non-robust behaviour by searching for semantically similar inputs that induce inconsistent outputs, thereby exposing non-robust behaviour.