arXiv:2610.26193cs.LOOct 2026

Manuscript Offprint

arXiv:2610.26193

Anytime-Valid Monitoring of Robust Stochastic Models

Martin Kurečka, Roman Andriushchenko, Milan Češka, Nicola Paoletti, Petr Novotný

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Martin Kurečka 1^{1}, Roman Andriushchenko 1,2^{1,2}, Milan Česka 2^{2}, Nicola Paoletti 3^{3}, and Petr Novotný 1^{1}

1^{1} Masaryk University, Brno, Czechia

2^{2} Brno University of Technology, Brno, Czechia

3^{3} King's College London, London, UK

Abstract. Formal methods provide a principal approach to obtaining safety guarantees for autonomous agents. Their key bottleneck is their reliance on a formal model (e.g., a Markov decision process) describing the agent-environment interaction. Learning or crafting the model is an error-prone process, which undermines the guarantees offered by formal methods. Robust models account for modelling uncertainty, but may still fail to capture the true environment. This issue can be addressed through runtime model monitoring, which aims to raise an alarm when a likely model-environment discrepancy is detected, while keeping the probability of false alarm bounded. Existing approaches impose various assumptions and do not clearly explain the rationale behind their design choices, leaving the broader design space for these monitors somewhat opaque. In this paper, we formalise the design space of monitors for robust stochastic models through the lens of parameterised sequential betting algorithms, highlighting the importance of observation feature design (choosing what information about the history the monitor uses) and bet design (how rich a family of betting rules the monitor can represent). We show that our framework generalizes the existing approaches, and we use its formalization to propose a new mixture of linear monitors (ML) design. We prove that these ML monitors achieve an asymptotically optimal detection time within the class of linear monitors, making them a principled choice for our monitoring problem. Our experiments confirm that ML monitors significantly reduce detection times compared to existing monitors and can effectively exploit more complex observation features.

1 Introduction

Probabilistic Formal Methods: Promises and Bottlenecks Obtaining safety guarantees on the behavior of autonomous agents is a key objective of both formal methods and AI [15, 44]. Verification of sequential decision-making frameworks offers a well-developed toolbox of methods that can prove an agent's adherence to a specified objective [7, 29]. A key bottleneck of this toolbox is its requirement for a model of the agent-environment system, e.g., in the form of a Markov decision process (MDP). The guarantees offered by such formal methods hold with respect to the model, and any discrepancy between the model and the actual system might weaken or even invalidate the guarantees during real-world deployment. For complex domains and real-world interactions, model construction is inevitably error-prone: a model crafted by an expert, if feasible at all, is susceptible to oversights, while a model learned from real-world data

M. Kurečka et al.

is subject to statistical noise [49]. Consequently, agreement between the model and the modeled system is an important concern in contemporary formal-methods research [23].

Anytime-Valid Model Monitoring A principled way to address model–system discrepancies is runtime model monitoring [23]. A monitor observes the system’s trajectory during deployment and raises an alarm when it detects a significant discrepancy between the model and the observed behavior. It thereby identifies situations in which model-based guarantees might no longer hold, prompting an appropriate response from, e.g., a supervisory safety-control layer or an overseeing authority. A primary requirement of a monitor is that it is anytime α\alpha-valid for a given significance level α\alpha: this means that the probability of a false alarm (i.e., wrongly raising an alarm in the case that the true environment matches the model) along a trajectory sampled from the environment is at most α\alpha. This guarantee concerns the whole, possibly unbounded, run. This makes the monitoring problem an instance of the sequential hypothesis testing framework [40], with the model as the null hypothesis.

Monitoring Robust Models As noted above, a model learned from finite data is unlikely to capture the true environment exactly, due to statistical noise. Thus, monitoring a single learned model is uninformative, since we are a priori nearly certain that an alarm should be raised. However, learning procedures often produce a (potentially infinite) ensemble of models that plausibly contains the true environment. Such ensembles can be represented finitarily, e.g., by a robust or interval MDP, which specifies, for each state-action pair, an uncertainty set of plausible successor distributions [6, 8, 19, 26, 34, 56]. The monitoring task is then to raise an alarm in cases when the true environment is not contained in the ensemble (a composite null case in sequential hypothesis testing [20, 31, 40, 45]).

Our Motivation Several approaches to runtime model monitoring have recently been developed [17, 23, 45] Given this literature, it is natural to ask why further model monitors are necessary. Our key motivation is to formalise the design landscape of model monitors with a focus on effective monitoring of robust models. The existing works impose diverse assumptions on the models or the environment and do not comprehensively expose the rationale behind the design choices of their monitors:

For instance, [45] considers monitoring of robust Markov chains against an ergodic Markovian environment. Their transition-wise monitors estimate the environment transition probabilities in every state and use these estimates to detect model mismatch. While they prove the asymptotic optimality of their monitors w.r.t. the expected alarm raise time, their monitors require a large number of state revisits to produce estimates precise enough to provide evidence of model mismatch. This can delay detection when discrepancies are systematic but small for individual transitions, or in episodic reinforcement learning tasks where each state may be visited only a few times, if at all.

On the other hand, the monitors in [23] observe the value of a fixed scoring rule that measures per-step discrepancies between model predictions and observed outcomes. The scoring rule distills the discrepancies into a single scalar signal pooled across all states, which may enable faster gathering of evidence if the scoring rule consistently captures the mismatch in dynamics. However, we show (Example 3) that a monitor based on scoring rules may be blind to certain misspecifications that are systematic, but are visible only through features that are not correlated with the transition probabilities predicted by the model. As the authors state, their focus is on estimation, 4^{4} and thus the paper does not provide a theoretical analysis of how scoring rule choice may affect detection power. The resulting monitors come without explicit alarm time guarantees and do not support monitoring of robust models out of the box.

The aforementioned approaches can be seen as points on a spectrum of design choices. In this paper, we formalise this spectrum and use the formalization to make principled design choices for a new class of monitors.

References (50)