Learning Contextual Runtime Monitors for Safe AI-Based Autonomy

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Luque-Cerpa, Alejandro, Wang, Mengyuan, Carlsson, Emil, Seshia, Sanjit A., Dubhashi, Devdatt, Torfah, Hazem
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910095922692096
author Luque-Cerpa, Alejandro
Wang, Mengyuan
Carlsson, Emil
Seshia, Sanjit A.
Dubhashi, Devdatt
Torfah, Hazem
author_facet Luque-Cerpa, Alejandro
Wang, Mengyuan
Carlsson, Emil
Seshia, Sanjit A.
Dubhashi, Devdatt
Torfah, Hazem
contents We introduce a novel framework for learning context-aware runtime monitors for AI-based control ensembles. Machine-learning (ML) controllers are increasingly deployed in (autonomous) cyber-physical systems because of their ability to solve complex decision-making tasks. However, their accuracy can degrade sharply in unfamiliar environments, creating significant safety concerns. Traditional ensemble methods aim to improve robustness by averaging or voting across multiple controllers, yet this often dilutes the specialized strengths that individual controllers exhibit in different operating contexts. We argue that, rather than blending controller outputs, a monitoring framework should identify and exploit these contextual strengths. In this paper, we reformulate the design of safe AI-based control ensembles as a contextual monitoring problem. A monitor continuously observes the system's context and selects the controller best suited to the current conditions. To achieve this, we cast monitor learning as a contextual learning task and draw on techniques from contextual multi-armed bandits. Our approach comes with two key benefits: (1) theoretical safety guarantees during controller selection, and (2) improved utilization of controller diversity. We validate our framework in two simulated autonomous driving scenarios, demonstrating significant improvements in both safety and performance compared to non-contextual baselines.
format Preprint
id arxiv_https___arxiv_org_abs_2601_20666
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Learning Contextual Runtime Monitors for Safe AI-Based Autonomy
Luque-Cerpa, Alejandro
Wang, Mengyuan
Carlsson, Emil
Seshia, Sanjit A.
Dubhashi, Devdatt
Torfah, Hazem
Machine Learning
Artificial Intelligence
Systems and Control
We introduce a novel framework for learning context-aware runtime monitors for AI-based control ensembles. Machine-learning (ML) controllers are increasingly deployed in (autonomous) cyber-physical systems because of their ability to solve complex decision-making tasks. However, their accuracy can degrade sharply in unfamiliar environments, creating significant safety concerns. Traditional ensemble methods aim to improve robustness by averaging or voting across multiple controllers, yet this often dilutes the specialized strengths that individual controllers exhibit in different operating contexts. We argue that, rather than blending controller outputs, a monitoring framework should identify and exploit these contextual strengths. In this paper, we reformulate the design of safe AI-based control ensembles as a contextual monitoring problem. A monitor continuously observes the system's context and selects the controller best suited to the current conditions. To achieve this, we cast monitor learning as a contextual learning task and draw on techniques from contextual multi-armed bandits. Our approach comes with two key benefits: (1) theoretical safety guarantees during controller selection, and (2) improved utilization of controller diversity. We validate our framework in two simulated autonomous driving scenarios, demonstrating significant improvements in both safety and performance compared to non-contextual baselines.
title Learning Contextual Runtime Monitors for Safe AI-Based Autonomy
topic Machine Learning
Artificial Intelligence
Systems and Control
url https://arxiv.org/abs/2601.20666