When an autonomous vehicle's controller fails about once in a million episodes, plain simulation cannot tell you how safe it is. You must watch for tens of millions of episodes before failures stop looking like noise. Accelerated samplers handle this by training an "adversary," a learned model of the other traffic that steers the simulation toward crashes. The probability is then corrected with importance weights, which are likelihood ratios that undo the bias the adversary introduced. These samplers work at a single four-way intersection. They model all surrounding agents jointly, though, and that joint model is exactly the object safety verification has learned to avoid. Collisions are local events between pairs of agents, and the scalable verifiers decompose them that way.
We propose to estimate rare failure probabilities with a mixture of small per-agent adversaries. Each adversary perturbs one neighboring agent so that it tends to collide with the ego vehicle, while every other agent behaves normally. Global failure is the union of these pairwise collision events. A mixture estimator that uses all proposals at once gives an unbiased estimate of that union, not merely an upper bound. Because a nominal, unperturbed component is always kept in the mixture, every importance weight is bounded, and the bounded weights yield a finite-sample upper confidence bound on the global failure probability. The same weights also show when the pairwise picture breaks down, that is, when failures need two agents to deviate together. In those cases the method adds a joint proposal for that pair only.
Core Claim
Treating crash probability as a union of pairwise events gives two things. First, the number of samples needed for a fixed relative accuracy grows roughly linearly in the number of surrounding agents, compared with the degradation a monolithic adversary suffers as the joint scene grows. Second, it gives a statistically valid upper confidence bound, which current accelerated samplers do not provide. Concretely, let $P$ be the nominal distribution over trajectories $x$, $F(x)$ the indicator that the ego collides with anyone, and $Q_j$ the proposal under which only agent $j$ is perturbed adversarially. Let $Q_0 = P$ be the defensive nominal component, and let $q_0, \dots, q_N$ be mixture probabilities with $q_0 > 0$. We draw trajectories from the mixture and weight each one as
$$ w(x) = \frac{F(x)\, P(x)}{\sum_{k=0}^{N} q_k Q_k(x)} \le \frac{1}{q_0}. $$
The mean of $w$ is exactly $\Pr[F]$, because the mixture covers the support of $P$. The bound $1/q_0$ lets us apply an empirical-Bernstein inequality to obtain a one-sided bound $\Pr[F] \le \hat p + \text{(variance term)} + O(1/(q_0 n))$ that holds with probability $1-\delta$ over $n$ samples. This inequality adapts to the observed variance, so the bound is tight when the proposals are good. The likelihood ratio involves only the perturbed agent's actions or disturbances, which are low-dimensional with tractable densities. It never involves the full joint scene.
Relation to Prior Work
The method's main competitor, and the paper that motivates it, is Scalable Safety-Critical Policy Evaluation with Accelerated Rare Event Sampling (APE). APE trains a single adversary over the whole environment, using Gaussian-process value estimates and conditional autoregressive flows. It estimates a $1.70\times10^{-6}$ collision probability on the highway-env intersection in about 3,000 steps. Its continuous-state version comes with no finite-sample error bound, and its own authors flag sample degeneracy in high-dimensional joint spaces. We keep its adversarial importance sampling and drop the monolithic adversary.
The decomposition comes from pairwise safety work. Infusing Reachability-Based Safety into Planning and Control for Multi-agent Interactions, Safe Human Robot Navigation in Warehouse Scenario, and Collision Avoidance Verification of Multiagent Systems with Learned Policies each check ego–other pairs independently and combine the results, using intersected reachable sets, pairwise barrier functions, and relative-frame checks respectively. All three reason about worst cases or deterministic sets. We carry the same factorization into probability estimation.
The certificate style is borrowed from Safe Reinforcement Learning via Statistical Model Predictive Shielding. That paper turns rollouts into confidence statements with concentration inequalities, but it samples naively and over the whole state, which is fine there only because its target events are not ultra-rare.
Two papers constrain the design. Assume-Guarantee Reinforcement Learning composes local guarantees into a product lower bound on global safety. That bound inherits every local estimation error and conservatism from the adversarial local games, and the paper offers no way to estimate rare local violation rates. Our estimator targets the global union directly, so local errors do not compound multiplicatively. Formalizing and Falsifying Causal Pathways of Rare Events proves that strong local explanations of a rare event can fail to explain it globally. Its warning applies directly here: pairwise proposals may miss failures produced by coordination, for example when one car forces the ego into another. We take this as the central risk and build a diagnostic for it rather than assuming it away.
Research Program
The first component is the estimator and its bound. Each $Q_j$ is a small conditional flow over agent $j$'s action perturbations, conditioned on the relative ego–agent state. Each is trained by cross-entropy-style adaptive importance sampling toward the conditional distribution of agent $j$'s behavior given an ego–$j$ collision. With this training, the per-agent problems have fixed dimension no matter how crowded the scene is. Mixture weights $q_j$ are set adaptively in proportion to running estimates of $\Pr[E_j]$, with $q_0$ held at a fixed floor so the certificate stays valid. To keep the bound honest, the training rollouts and the certification rollouts are disjoint, which prevents adaptive tuning from contaminating the bound.
The second component addresses coordination. For each sample we record which pairwise events fired and how much weight mass came from the defensive component. A failure reached mainly through $Q_0$, or one with a heavy weight and no single agent responsible, is evidence of a multi-agent pathway. When the effective sample size attributable to such failures falls below a threshold, we fit a joint proposal for the implicated pair and add it to the mixture. This keeps the decomposition minimal and fixes it only where the data show local–global incoherence.
The third component is analysis. We will derive the relative variance of $w$ under ideal pairwise proposals. Its form is governed by how much the events $E_j$ overlap and by the probability mass of coordinated failures. This tells us in advance in which scene regimes the method should beat a joint adversary and in which it should not.
Baselines
The naive reference point is vanilla Monte Carlo under the nominal policy with a Clopper–Pearson upper bound. It is run under the same simulator-step budget as every other method. At $p\approx10^{-6}$ and plausible budgets it will usually observe zero failures, so its bound will be roughly $3/n$. This baseline sets the scale of improvement and is the only other method that gives a valid certificate out of the box.
The strongest existing method is APE (Scalable Safety-Critical Policy Evaluation with Accelerated Rare Event Sampling). Its paper reports convergence in about 3,000 steps on Int-v1 for a true collision probability of $1.70\times10^{-6}$, and the smallest bias among tested methods. No reported numeric bias or variance figure was found on Lacuna, and no APE results for scenes with more vehicles were found on Lacuna. We will rerun APE on identical scenes with the same total simulator steps. Its adversary flow will be given the same hyperparameter search budget as our combined per-agent flows, and its parameter count will be matched to the total of ours. To compare certification fairly, we will attach the same held-out empirical-Bernstein bound to APE's weights after clipping them to the same maximum. We count APE as beaten if, at eight or more surrounding vehicles, our method reaches 10% relative error in at least five times fewer steps while its bounds keep nominal coverage. At four vehicles, we only expect to match APE.
The cross-entropy method with a joint discrete proposal, the CEM_discrete comparison used in the APE paper, is included as a simpler adaptive sampler.
Two ablations isolate the key ingredients. The first is the "sum of pairwise estimates": each $\Pr[E_j]$ is estimated separately with its own proposal, and the estimates are added as a union bound. This tests whether the mixture estimator adds anything beyond decomposition. The second removes the coordination diagnostic and joint-pair proposals. This tests whether incoherence handling matters on scenes built to contain coordinated failures.
Why not just…?
Why not just use a bigger monolithic adversary, as APE does? APE's results are for a small intersection, and its authors identify degeneracy in high-dimensional joint proposals as an open problem. Our scaling experiment, which grows the number of vehicles from 2 to 16 at fixed budget, tests directly whether a capacity-matched joint adversary keeps up. If it does, our efficiency claim fails and only the certificate remains as a contribution. We would report that outcome.
Why not just add up separately estimated pairwise probabilities? This is the most serious threat. If collision events with different agents rarely overlap, the union bound is nearly tight and needs no mixture weighting. It is also a valid upper bound for safety purposes. The ablation will measure the gap. We expect it to be small in sparse traffic and larger in dense platoons, where chain collisions make events overlap. If the gap stays below about 10% everywhere, we will present the simple sum as the recommended estimator. The remaining contribution would then be the bounded-weight certificate and the coordination diagnostic, which the separate-sum approach lacks: each of its pairwise proposals, by construction, never samples failures that need two agents to deviate.
Why not just compose local guarantees with an assume-guarantee product bound? Assume-Guarantee Reinforcement Learning shows the product is a sound lower bound on safety. However, each factor must itself be estimated in the rare-violation regime, and the adversarial local games make it conservative. On the car-platoon task we will compute this bound from Monte Carlo estimates of the per-agent factors and compare its implied failure upper bound with ours.
Why not just run massively parallel Monte Carlo? By Poisson counting, 10% relative error needs about 100 observed failures, or roughly $6\times10^7$ episodes at $p=1.7\times10^{-6}$. That is achievable for cheap simulators and is exactly our ground-truth procedure at moderate rarity. It becomes impractical as $p$ falls or simulators become costly, and the experiments report the crossover point.
Proposed Experiments
The main testbed is the highway-env intersection (Int-v1) used by APE, extended from its default traffic to 2, 4, 8, and 16 surrounding vehicles. The ego policy is fixed, and the traffic noise is tuned so that the true collision probability spans $10^{-4}$ to $10^{-6}$. The second testbed is the car platoon from Compositional Shielding and Reinforcement Learning for Multi-Agent Systems, with 3 to 10 cars, where chain collisions create overlapping pairwise events.
At $p \ge 10^{-5}$, ground truth comes from very large Monte Carlo runs. Below that, it comes from agreement among independent estimators on held-out seeds. The metrics are relative error against ground truth, steps needed to reach 10% relative error, empirical coverage of the 95% upper bound over 100 repeated runs, and tightness, measured as the ratio of the bound to the true value.
The decisive checks are these. First, coverage must stay at or above nominal for every method that claims a bound. Second, steps-to-accuracy must scale near-linearly in the number of agents for our method and visibly worse for APE. Third, we run a stress test with planted coordinated failures, in which collisions require one vehicle to block while another closes. Without the diagnostic, the pairwise mixture should underestimate probability at a fixed budget, which shows up as inflated variance from the defensive component. With the diagnostic and joint-pair proposals, it should recover the correct value. If the diagnostic fails to fire in this planted case, the incoherence result in Formalizing and Falsifying Causal Pathways of Rare Events would be causing silent errors in our method, and that would count as a negative result.
References
- Scalable Safety-Critical Policy Evaluation with Accelerated Rare Event Sampling
- Infusing Reachability-Based Safety into Planning and Control for Multi-agent Interactions
- Safe Human Robot Navigation in Warehouse Scenario
- Collision Avoidance Verification of Multiagent Systems With Learned Policies
- Safe Reinforcement Learning via Statistical Model Predictive Shielding
- Assume-Guarantee Reinforcement Learning
- Formalizing and Falsifying Causal Pathways of Rare Events
- Compositional Shielding and Reinforcement Learning for Multi-Agent Systems