Combining Cost-Constrained Runtime Monitors for AI Safety
Tim Tian Hua, James Baskerville, Henri Lemoine, Mia Hopman, Aryan Bhatt, Tyler Tracy
TL;DR
This work tackles cost‑aware runtime monitoring for AI safety by formulating the problem as maximizing recall $P(A=1|B=1)$ under a unified budget $Y$ that covers both monitoring and auditing. It decomposes the policy into monitor invocation and audit allocation, and uses the Neyman–Pearson lemma to guide intervention based on likelihood ratios derived from monitor scores, with an exhaustive search over simple policy classes. Empirical results in backdoored code detection show that likelihood‑ratio based policies outperform naive baselines, and that combining monitors with different costs can yield Pareto improvements across budgets. The framework provides a principled, actionable method for resource allocation in safety monitoring and points to future work on robustness to distribution shifts and joint monitor optimization.
Abstract
Monitoring AIs at runtime can help us detect and stop harmful actions. In this paper, we study how to efficiently combine multiple runtime monitors into a single monitoring protocol. The protocol's objective is to maximize the probability of applying a safety intervention on misaligned outputs (i.e., maximize recall). Since running monitors and applying safety interventions are costly, the protocol also needs to adhere to an average-case budget constraint. Taking the monitors' performance and cost as given, we develop an algorithm to find the best protocol. The algorithm exhaustively searches over when and which monitors to call, and allocates safety interventions based on the Neyman-Pearson lemma. By focusing on likelihood ratios and strategically trading off spending on monitors against spending on interventions, we more than double our recall rate compared to a naive baseline in a code review setting. We also show that combining two monitors can Pareto dominate using either monitor alone. Our framework provides a principled methodology for combining existing monitors to detect undesirable behavior in cost-sensitive settings.
