Runtime Verification for Visual Deep Learning Systems With Loss Prediction

Deep neural networks often demonstrate remarkable performance on benchmarks, but have been shown to readily fail once they leave lab-conditions and are deployed in real-world conditions. This can be attributed to their sensitivity to minor changes in the nature of the data, typically referred to as distributional shifts. To address this, a growing body of work has emerged implementing distributional shift detectors, a form of runtime verification intended to detect when a neural network encounters data for which it is unlikely to predict correctly. These methods generally involve extracting features which characterize the degree to which a given point is out-of-distribution and setting a suitable threshold for this feature which sufficiently separates in-distribution and out-of-distribution data. In this paper, we advocate for a significant methodological shift from framing the detection of distributional-shift as a classification problem to framing it as a regression problem. We first justify this view through an empirical analysis of several popular methods of distributional shift detection, where we show that optimal thresholds for one type and severity of shift does not necessarily generalize to other shifts and that classification generally lacks the granularity and expressivity for use as a form of runtime verification in deployment scenarios. We then show that the relationships between the features these classifiers are based upon and network loss are often fairly strong. Motivated by these results, we perform a feasibility study wherein we train a generalized linear model on synthetically-augmented data, which we assess on instances of organic distributional shift in several domain-adaptation datasets. We attain promising results, with for instance, an average percentage error of 5% when predicting network loss for a polyp segmentation benchmark, equivalent to predicting intersection-over-union scores with an average error of only 0.03. We discuss the implications this has for practitioners and advocate for the continued development of loss-regression models as runtime monitors for deep learning systems.

Authors

Institutions

Publication Details

Journal
IEEE Access
Published
2025-01-01
DOI
https://doi.org/10.1109/access.2025.3552157
Citations
1
Primary Topic
Adversarial Robustness in Machine Learning
Type
article
Field-Weighted Citation Impact
2.48
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Runtime Verification for Visual Deep Learning Systems With Loss Prediction

Dag Johansen, Birk Torpmann-Hagen, Pål Halvorsen, Michael A. Riegler
1 citations
IEEE Access
Adversarial Robustness in Machine Learning
2.48
article

Runtime Verification for Visual Deep Learning Systems With Loss Prediction

Dag Johansen, Birk Torpmann-Hagen, Pål Halvorsen, Michael A. Riegler
article en
1 citations

Abstract

Deep neural networks often demonstrate remarkable performance on benchmarks, but have been shown to readily fail once they leave lab-conditions and are deployed in real-world conditions. This can be attributed to their sensitivity to minor changes in the nature of the data, typically referred to as distributional shifts. To address this, a growing body of work has emerged implementing distributional shift detectors, a form of runtime verification intended to detect when a neural network encounters data for which it is unlikely to predict correctly. These methods generally involve extracting features which characterize the degree to which a given point is out-of-distribution and setting a suitable threshold for this feature which sufficiently separates in-distribution and out-of-distribution data. In this paper, we advocate for a significant methodological shift from framing the detection of distributional-shift as a classification problem to framing it as a regression problem. We first justify this view through an empirical analysis of several popular methods of distributional shift detection, where we show that optimal thresholds for one type and severity of shift does not necessarily generalize to other shifts and that classification generally lacks the granularity and expressivity for use as a form of runtime verification in deployment scenarios. We then show that the relationships between the features these classifiers are based upon and network loss are often fairly strong. Motivated by these results, we perform a feasibility study wherein we train a generalized linear model on synthetically-augmented data, which we assess on instances of organic distributional shift in several domain-adaptation datasets. We attain promising results, with for instance, an average percentage error of 5% when predicting network loss for a polyp segmentation benchmark, equivalent to predicting intersection-over-union scores with an average error of only 0.03. We discuss the implications this has for practitioners and advocate for the continued development of loss-regression models as runtime monitors for deep learning systems.

IEEE AccessVol. 13
Simula Metropolitan Center for Digital Engineering (NO), UiT The Arctic University of Norway (NO)
Openalex Percentile: Top 11%
Adversarial Robustness in Machine Learning
2.48
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.