Specifying and Testing k-Safety Properties for Machine-Learning Models
Not on the map. Why?
Abstract (arXiv)
Machine-learning models are becoming increasingly prevalent in our lives, for instance assisting in image-classification or decision-making tasks. Consequently, the reliability of these models is of critical importance and has resulted in the development of numerous approaches for validating and verifying their robustness and fairness. However, beyond such specific properties, it is challenging to specify, let alone check, general functional-correctness expectations from models. In this paper, we take inspiration from specifications used in formal methods, expressing functional-correctness properties by reasoning about k different executions, so-called k-safety properties. Considering a credit-screening model of a bank, the expected property that "if a person is denied a loan and their income decreases, they should still be denied the loan" is a 2-safety property. Here, we show the wide applicability of k-safety properties for machine-learning models and present the first specification language for expressing them. We also operationalize the language in a framework for automatically validating such properties using metamorphic testing. Our experiments show that our framework is effective in identifying property violations, and that detected bugs could be used to train better models.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 26 of its 73 references that are in the map. First posted on arXiv 13 Jun 2022.
Builds on
26 of 73 references.
References · 26
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,998
- 2016OpenAI Gymcited by 1,736
- 2018Speech Commands: A Dataset for Limited-Vocabulary Speech Recognitioncited by 752
- 2017Reluplex: An Efficient SMT Solver for Verifying Deep Neural Networkscited by 744
- 2018Universal Sentence Encodercited by 489
- 2016Safety Verification of Deep Neural Networkscited by 263
- 2017DeepTest: Automated Testing of Deep-Neural-Network-driven Autonomous Carscited by 251
- 2021Beta-CROWN: Efficient Bound Propagation with Per-neuron Split Constraints for Complete and Incomplete Neural Network Robustness Verificationcited by 228
- 2018Formal Security Analysis of Neural Networks using Symbolic Intervalscited by 185
14 more
- 2017Fairness Testing: Testing Software for Discriminationcited by 126
- 2018Automated Directed Fairness Testingcited by 78
- 2020Metamorphic Testing: A New Approach for Generating Next Test Casescited by 75
- 2018Concolic Testing for Deep Neural Networkscited by 51
- 2017Feature-Guided Black-Box Safety Testing of Deep Neural Networkscited by 49
- 2018Probabilistic Verification of Fairness Properties via Concentrationcited by 45
- 2019Perfectly Parallel Fairness Certification of Neural Networkscited by 42
- 2018Identifying Implementation Bugs in Machine Learning based Image Classifiers using Metamorphic Testingcited by 31
- 2020Improving Neural Network Verification through Spurious Region Guided Refinementcited by 31
- 2019Structure-Invariant Testing for Machine Translationcited by 28
- 2019Testing DNN Image Classifiers for Confusion & Bias Errorscited by 18
- 2021Make Sure You're Unsure: A Framework for Verifying Probabilistic Specificationscited by 18
- 2020A Declarative Metamorphic Testing Framework for Autonomous Drivingcited by 10
- 2021NEUROSPF: A tool for the Symbolic Analysis of Neural Networkscited by 4
Built on by
Citing papers per year: 2023: 2; 2024: 2; 2025: 1.
5 papers.
- 2023Evaluating Superhuman Models with Consistency Checkscited by 47
- 2024Consistency Checks for Language Model Forecasterscited by 27
- 2025Neural Network Verification is a Programming Language Challengecited by 12
- 2024Context-Aware Testing: A New Paradigm for Model Testing with Large Language Modelscited by 8
- 2023Automatically Testing Functional Properties of Code Translation Modelscited by 3
- 2025Neural Network Verification is a Programming Language Challenge10 Jan 2025
- 2024Consistency Checks for Language Model Forecasters24 Dec 2024
- 2024Context-Aware Testing: A New Paradigm for Model Testing with Large Language Models31 Oct 2024
- 2023Automatically Testing Functional Properties of Code Translation Models7 Sep 2023
- 2023Evaluating Superhuman Models with Consistency Checks16 Jun 2023