TRANSMISSION // 2611.28611v1

A forward–reverse likelihood comparison for RL anomaly detection

Source published

A simulated benchmark finds that action-aware transition monitoring can flag unusual reinforcement-learning behavior, but a forward-only version performed better on some key measures.

AI-generated conceptual illustration for A forward–reverse likelihood comparison for RL anomaly detection
AI-generated conceptual illustration; not documentary evidence.

Reinforcement-learning agents influence the situations they encounter through their actions. That makes unusual behavior harder to spot than a strange, isolated input. Researchers tested a detector that examines how states change after actions—and found that its forward–reverse likelihood comparison did not improve results over a simpler forward-only model on key measures.

A robot that sees an unfamiliar situation is not the only kind of system that may need to recognize when conditions have changed. A reinforcement-learning (RL) agent also has to account for its own actions: what it does affects what it sees next. That feedback loop complicates out-of-distribution (OOD) detection, the task of identifying conditions that differ from those used to train a system.

Emil Mittag, Richard Dazeley and Peter Vamplew propose Action-Conditioned Transition Irreversibility (ACTI), a detector that looks at transitions rather than treating observations as unrelated snapshots. It fits one model to predict the next state from the current state and action, and another to estimate the previous state from the next state and the same action label. ACTI compares the models’ likelihoods, checks how much that contrast differs from the usual pattern at the same point in an episode, and averages scores over a short window using past and current information only.

Despite the name, this comparison is not a physical reversal of a trajectory. The authors explicitly say the score is not a measure of thermodynamic entropy production; it is a statistical monitoring signal built from learned transition models.

A test designed to avoid misleading alarms

The researchers evaluated ACTI in six simulated environments, including LunarLander, Acrobot, simulated locomotion tasks, and the MinAtar version of Breakout. They compared it with 14 other detectors, for 15 in the benchmark, and tested four anomaly mechanisms that qualified in every environment. These included added state noise, dropped state features, changes in the observed regime, and a stuck actuator. Ten independently trained policies were used in each environment.

Two choices in the evaluation matter. First, the team compared each anomalous score with a clean counterpart at the same timestep. Scores can naturally drift as an episode progresses, so comparing later scores with earlier ones might mistake ordinary progression for a fault. Second, anomaly severities were selected without using detector results, reducing the risk of choosing test conditions that favor a particular method.

Strong benchmark scores, but no advantage from the reverse model

Across the tested settings, ACTI had the highest average matched-time AUROC among the 15 benchmark detectors. AUROC summarizes how well a score separates anomalous from clean examples across thresholds; it does not, by itself, say whether a system will raise a useful alarm at a particular operating threshold. ACTI also outperformed the dynamics-model baseline PEDM on the reported discrimination measures. Its transition scoring took about 1.7 microseconds, compared with about 222 microseconds for PEDM in the researchers’ measurements.

The comparison that most qualifies the headline is with ACTI-Forward, a capacity-matched version using the forward model alone, with the same calibration and smoothing. ACTI did not show a statistically significant advantage in AUROC or false-positive rate at 95% true-positive rate. ACTI-Forward instead had significantly better AUPRC in the reported test and a shorter detection delay. AUPRC summarizes precision and recall across thresholds; its usefulness can depend on the balance of anomalous and clean cases. The authors therefore recommend the forward-only version among the detectors they evaluated.

Other comparisons point to useful parts of the approach. Adding action information produced a modest but consistent AUROC improvement over the state-only variant and shortened detection delay. The researchers’ component analyses also suggest that calibrating scores separately at each timestep and smoothing them over time helped. Smoothing involves a trade-off: a longer window improved AUROC in one reported analysis but delayed alarms.

What the evidence does—and does not—show

The findings concern controlled simulations, not real robots or deployed systems. Only four anomaly mechanisms were included in the main cross-environment comparison; other scenarios failed the study’s qualification criteria or were tested in fewer environments. The authors caution that the results do not establish performance on excluded cases, real hardware faults, compound problems, or gradual real-world changes. The results also do not establish that ACTI and ACTI-Forward are equivalent: a statistically nonsignificant difference is not proof that there is no difference.

The study makes a methodological point alongside its detector results. In tests using within-episode comparisons, several methods appeared to distinguish anomaly labels even on entirely clean trajectories, because normal scores drifted over time. Matched-time evaluation was designed to remove that artifact. This supports careful testing, not a guarantee that any detector will be reliable in a new deployment.

This article is based on an arXiv preprint, which may not have undergone peer review. The results are best read as evidence from a particular benchmark and experimental design, not as proof of safety or broad real-world effectiveness. An OOD alarm can inform a decision to pause or switch systems, but it cannot guarantee that an agent will avoid harm.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.