Saved in:
Bibliographic Details
Main Authors: Foster, Michael, Hierons, Robert M., Shin, Donghwan, Walkinshaw, Neil, Wild, Christopher
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2504.16526
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909593410469888
author Foster, Michael
Hierons, Robert M.
Shin, Donghwan
Walkinshaw, Neil
Wild, Christopher
author_facet Foster, Michael
Hierons, Robert M.
Shin, Donghwan
Walkinshaw, Neil
Wild, Christopher
contents Software systems with large parameter spaces, nondeterminism and high computational cost are challenging to test. Recently, software testing techniques based on causal inference have been successfully applied to systems that exhibit such characteristics, including scientific models and autonomous driving systems. One significant limitation is that these are restricted to test properties where all of the variables involved can be observed and where there are no interactions between variables. In practice, this is rarely guaranteed; the logging infrastructure may not be available to record all of the necessary runtime variable values, and it can often be the case that an output of the system can be affected by complex interactions between variables. To address this, we leverage two additional concepts from causal inference, namely effect modification and instrumental variable methods. We build these concepts into an existing causal testing tool and conduct an evaluative case study which uses the concepts to test three system-level requirements of CARLA, a high-fidelity driving simulator widely used in autonomous vehicle development and testing. The results show that we can obtain reliable test outcomes without requiring large amounts of highly controlled test data or instrumentation of the code, even when variables interact with each other and are not recorded in the test data.
format Preprint
id arxiv_https___arxiv_org_abs_2504_16526
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Using Causal Inference to Test Systems with Hidden and Interacting Variables: An Evaluative Case Study
Foster, Michael
Hierons, Robert M.
Shin, Donghwan
Walkinshaw, Neil
Wild, Christopher
Software Engineering
Software systems with large parameter spaces, nondeterminism and high computational cost are challenging to test. Recently, software testing techniques based on causal inference have been successfully applied to systems that exhibit such characteristics, including scientific models and autonomous driving systems. One significant limitation is that these are restricted to test properties where all of the variables involved can be observed and where there are no interactions between variables. In practice, this is rarely guaranteed; the logging infrastructure may not be available to record all of the necessary runtime variable values, and it can often be the case that an output of the system can be affected by complex interactions between variables. To address this, we leverage two additional concepts from causal inference, namely effect modification and instrumental variable methods. We build these concepts into an existing causal testing tool and conduct an evaluative case study which uses the concepts to test three system-level requirements of CARLA, a high-fidelity driving simulator widely used in autonomous vehicle development and testing. The results show that we can obtain reliable test outcomes without requiring large amounts of highly controlled test data or instrumentation of the code, even when variables interact with each other and are not recorded in the test data.
title Using Causal Inference to Test Systems with Hidden and Interacting Variables: An Evaluative Case Study
topic Software Engineering
url https://arxiv.org/abs/2504.16526