arXiv Science⌕ Search

arXiv subjects

Emil Mittag

Publications and source records attributed to Emil Mittag.

4 recordsLinked to original sources

Action-Conditioned Transition Irreversibility for Out-of-Distribution Detection in Reinforcement Learning

Reinforcement-learning agents shape the observations they encounter; consequently, detecting out-of-distribution (OOD) states requires analysing action-conditioned trajectories rather than treating inputs as independent samples. We propose Action-Conditioned Transition Irreversibility (ACTI), a detector that evaluates forward and backward transition likelihoods, calibrates this comparison against the in-distribution profile at each timestep, and smooths the score over a short window, using no future information. We tested ACTI across six environments and fifteen detectors within OOD-RL-Bench, using the four anomaly mechanisms that qualified in every environment, with ten policy replicates per environment. All primary metrics are matched-time: each score after anomaly onset is compared with a clean twin rollout's score at the same timestep. Our method secured the top macro matched-time AUROC, outperforming the dynamics-model baseline (PEDM), while scoring transitions roughly two orders of magnitude faster. Compared to the state-only variant, ACTI achieved a small but consistent AUROC gain and a shorter detection delay. The capacity-matched forward-only baseline, ACTI-Forward, secured a statistically significant advantage in AUPRC alongside a reduced detection delay. The discrepancy in AUROC did not reach statistical significance. Ablation studies suggest instead that performance improvements stem from action conditioning, calibration at each timestep, and smoothing of the transition-likelihood scores. Based on these results, we recommend using ACTI-Forward.

cs.LG↗

OOD-RL-Bench: A Benchmark Framework for Out-of-Distribution Detection in Reinforcement Learning

Reliable reinforcement learning (RL) agents must maintain operational integrity amidst sensor malfunctions, dynamic disturbances, and slow environmental shifts. The detection of out-of-distribution conditions is pivotal to determining when an agent's observations, transitions, or trajectory dynamics deviate from the assumptions underpinning its policy training. Current out-of-distribution (OOD) detection benchmarks typically evaluate image classifiers or static low-dimensional datasets, failing to account for the complex, action-dependent temporal structure inherent in RL trajectories. To address this gap, we present OOD-RL-Bench, a comprehensive and extensible framework designed to evaluate OOD detectors against categories of anomalies injected into RL trajectories. Detectors and anomaly injectors are integrated through shared interfaces and configuration, which allows new scoring methods and perturbation families to be evaluated without modification of the core benchmark loop. We evaluate the utility of the framework using a Deep Q-Network policy within the LunarLander-v3 environment. We assess the performance of each detector across a suite of anomaly types using matched-time AUROC, matched-time AUPRC, matched-time false-positive rate, detection delay, and segmented-onset metrics. Our analysis reveals significant performance variance across anomaly types: observation perturbations and regime switches are identified with high accuracy by several methods, while observation delay and action-conditioned dynamics remain difficult even when post-onset anomaly scores are compared against clean scores from the same timesteps. We make the framework, trained policy checkpoint, and complete results publicly available as a reproducible artefact.

cs.LG↗

Negative Entropy Production in Oscillatory Processes

Linear irreversible thermodynamics asserts that the instantaneous local spontaneous entropy production is always nonnegative. However for a viscoelastic fluid this is not always the case. Given the fundamental status of the Second Law, this presents a problem. We provide a new derivation of the Second Law, from first principles, which is valid for the appropriately time averaged entropy production allowing the instantaneous entropy production to be negative for short intervals of time. We show that time averages (rather than instantaneous values) of the entropy production are nonnegative. We illustrate this using molecular dynamics simulations of oscillatory shear.

cond-mat.stat-mech↗

Fluctuation Theorem for Hamiltonian Systems - Le Chatelier's Principle

For thermostatted dissipative systems the Fluctuation Theorem gives an analytical expression for the ratio of probabilities that the time averaged entropy production in a finite system observed for a finite time, takes on a specified value compared to the negative of that value. Hitherto it had been thought that the presence of some thermostatting mechanism was an essential component of any system which satisfies a Fluctuation Theorem. In the present paper we show that a Fluctuation Theorem can be derived for purely Hamiltonian systems, with or without applied dissipative fields.

cond-mat.stat-mech↗