Abstract
In this paper we propose a framework for assessing the risk associated with deploying a machine learning model in a specified environment. For that we carry over the risk definition from decision theory to machine learning. We develop and implement a method that allows to define deployment scenarios, test the machine learning model under the conditions specified in each scenario, and estimate the damage associated with the output of the machine learning model under test. Using the likelihood of each scenario together with the estimated damage we define key risk indicators of a machine learning model. The definition of scenarios and weighting by their likelihood allows for standardized risk assessment in machine learning throughout multiple domains of application. In particular, in our framework, the robustness of a machine learning model to random input corruptions, distributional shifts caused by a changing environment, and adversarial perturbations can be assessed.
Introduction
In safety-critical applications like autonomous driving, simple accuracy metrics are insufficient. Knowing a model is "90% accurate" does not quantify the risk of deployment: how likely is a failure, and how severe will the consequences be?
Current robustness metrics often focus on the "minimal perturbation" needed to cause a misclassification. However, these metrics suffer from two major flaws. First, they ignore likelihood; a highly damaging but physically impossible perturbation should not carry the same weight as a common sensor glitch. Second, they ignore severity; in a self-driving context, mistaking a pedestrian for a pole is far more dangerous than mistaking a mailbox for a trash can. This research addresses the gap between theoretical robustness and practical safety by providing a standardized way to calculate risk based on specific operational environments.
The Risk Assessment Framework
The proposed framework translates risk definitions from statistical decision theory into the machine learning domain. The core approach utilizes a double integral that accounts for both the underlying data distribution (the environment) and the distribution of perturbations (noise or attacks).
To make this computationally feasible, the authors introduce two key concepts:
- Key Risk Indicators (KRIs): Modular risk scores for specific scenarios (e.g., "Risk under heavy rain" or "Risk against FGSM attacks").
- The Risk Tensor ($R$): A data-efficient storage structure that decouples expensive model inference from risk assessment. By storing model results on various perturbed inputs in a multi-dimensional array, users can "query" the tensor with different weights and filters to calculate various KRIs without re-running the model.
Experimental Evaluation
The framework was evaluated using the CIFAR-10 dataset and 20 different ResNet architectures. To simulate real-world risks, the authors applied a variety of synthetic perturbations:
- Sensor Corruptions: Changes in brightness, contrast, shadows, and rotations.
- Random Noise: Gaussian, uniform, and salt-and-pepper noise.
- Weather Phenomena: Simulated layers of rain and fog.
- Adversarial Attacks: Fast Gradient Sign Method (FGSM), CarliniL2, and DeepFool.
This decoupling allows engineers to perform "what-if" analysis for different environments without retraining. Furthermore, it enables the creation of standardized "deployment scenarios" that could serve as safety certificates for specific industries.
Key Results and Discussion
The case study revealed that a model robust against "natural" noise (like fog) is not necessarily robust against "adversarial" attacks. The framework allows for tracking these distinct risks simultaneously.
Several practical findings emerged from the ResNet evaluation:
- Data Augmentation: Adding Gaussian noise or standard image augmentations during training improved robustness against both random noise and adversarial attacks by similar margins.
- Loss Functions: Switching from standard cross-entropy to Guided Complement Entropy (GCE) loss significantly boosted robustness against adversarial attacks without significantly impacting vulnerability to natural noise like weather.
- Model Comparison: The framework successfully identified which specific ResNet variants were the "safest" overall by aggregating multiple KRIs, providing a clearer safety profile than simple accuracy scores.
Limitations and Future Work
While the paper uses "probability of class change" as a proxy for risk, developing truly representative "damage functions" for complex tasks remains a challenge. Future work will focus on scaling this framework to more complex tasks like semantic segmentation or object detection, where damage is harder to quantify. Additionally, the accuracy of the assessment depends heavily on how well the chosen deployment scenarios match real-world conditions; incorrect scenario modeling will lead to misleading KRIs.
Summary updated