A Distance-based Anomaly Detection Framework for Deep Reinforcement Learning
Not on the map. Why?
Abstract (arXiv)
In deep reinforcement learning (RL) systems, abnormal states pose significant risks by potentially triggering unpredictable behaviors and unsafe actions, thus impeding the deployment of RL systems in real-world scenarios. It is crucial for reliable decision-making systems to have the capability to cast an alert whenever they encounter unfamiliar observations that they are not equipped to handle. In this paper, we propose a novel Mahalanobis distance-based (MD) anomaly detection framework, called textitMDX, for deep RL algorithms. MDX simultaneously addresses random, adversarial, and out-of-distribution (OOD) state outliers in both offline and online settings. It utilizes Mahalanobis distance within class-conditional distributions for each action and operates within a statistical hypothesis testing framework under the Gaussian assumption. We further extend it to robust and distribution-free versions by incorporating Robust MD and conformal inference techniques. Through extensive experiments on classical control environments, Atari games, and autonomous driving scenarios, we demonstrate the effectiveness of our MD-based detection framework. MDX offers a simple, unified, and practical anomaly detection tool for enhancing the safety and reliability of RL systems in real-world applications.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 39 of its 95 references that are in the map. First posted on arXiv 21 Sep 2021.
Builds on
39 of 95 references.
References · 39
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2013Intriguing properties of neural networkscited by 5,114
- 2018Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actorcited by 4,635
- 2015Continuous control with deep reinforcement learningcited by 3,279
- 2015Trust Region Policy Optimizationcited by 2,503
- 2017CARLA: An Open Urban Driving Simulatorcited by 2,431
- 2018Addressing Function Approximation Error in Actor-Critic Methodscited by 2,302
- 2016Asynchronous Methods for Deep Reinforcement Learningcited by 2,218
- 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 1,916
27 more
- 2020Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problemscited by 1,873
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,472
- 2018Experience Replay for Continual Learningcited by 1,074
- 2017Rainbow: Combining Improvements in Deep Reinforcement Learningcited by 774
- 2020Deep Reinforcement Learning for Autonomous Driving: A Surveycited by 698
- 2019Conformal Prediction Under Covariate Shiftcited by 511
- 2017Robust Adversarial Reinforcement Learningcited by 439
- 2020Uncertainty Sets for Image Classifiers using Conformal Predictioncited by 365
- 2017Adversarial Attacks on Neural Network Policiescited by 314
- 2018Learning to Adapt in Dynamic, Real-World Environments Through Meta-Reinforcement Learningcited by 270
- 2020Towards Continual Reinforcement Learning: A Review and Perspectivescited by 268
- 2020Transfer Learning in Deep Reinforcement Learning: A Surveycited by 259
- 2021A Simple Fix to Mahalanobis Distance for Improving Near-OOD Detectioncited by 206
- 2015Actor-Mimic: Deep Multitask and Transfer Reinforcement Learningcited by 176
- 2018ShapeShifter: Robust Physical Adversarial Attack on Faster R-CNN Object Detectorcited by 159
- 2018Meta-Gradient Reinforcement Learningcited by 156
- 2017Robust Deep Reinforcement Learning with Adversarial Attackscited by 152
- 2020Improving Generalization in Reinforcement Learning with Mixture Regularizationcited by 81
- 2019Measuring the Reliability of Reinforcement Learning Algorithmscited by 49
- 2020Evaluating the Performance of Reinforcement Learning Algorithmscited by 35
- 2020Why is the Mahalanobis Distance Effective for Anomaly Detection?cited by 28
- 2019Uncertainty-Based Out-of-Distribution Classification in Deep Reinforcement Learningcited by 15
- 2021Out-of-Distribution Dynamics Detection: RL-Relevant Benchmarks and Resultscited by 14
- 2017Conformal k-NN Anomaly Detector for Univariate Data Streamscited by 13
- 2020Policy Entropy for Out-of-Distribution Classificationcited by 11
- 2020Adversarial Attacks and Detection on Reinforcement Learning-Based Interactive Recommender Systemscited by 9
- 2017Online Robust Principal Component Analysis with Change Point Detectioncited by 4
Built on by
Citing papers per year: 2024: 1; 2025: 1; 2026: 3.
5 papers.
- 2024OIL-AD: An Anomaly Detection Framework for Sequential Decision Sequencescited by 3
- 2026Mahalanobis-Guided Latent OOD Detection for Hybrid ES-DRL Control in Time-Varying Systemscited by 1
- 2025Distributed Detection of Adversarial Attacks in Multi-Agent Reinforcement Learning with Continuous Action Spacecited by 0
- 2026Transformer-Based Reinforcement Learning for Autonomous Orbital Collision Avoidance in Partially Observable Environmentscited by 0
- 2026Think Fast, Plan Selectively: Adaptive Deliberation for Efficient Data-Driven MPCcited by 0
- 2026Think Fast, Plan Selectively: Adaptive Deliberation for Efficient Data-Driven MPC26 Sep 2026
- 2026Mahalanobis-Guided Latent OOD Detection for Hybrid ES-DRL Control in Time-Varying Systems9 Jun 2026
- 2026Transformer-Based Reinforcement Learning for Autonomous Orbital Collision Avoidance in Partially Observable Environments5 Feb 2026
- 2025Distributed Detection of Adversarial Attacks in Multi-Agent Reinforcement Learning with Continuous Action Space21 Aug 2025
- 2024OIL-AD: An Anomaly Detection Framework for Sequential Decision Sequences7 Feb 2024