Rethinking Out-of-Distribution Detection for Reinforcement Learning: Advancing Methods for Evaluation and Detection

Linas Nasvytis, Kai Sandbrink, Jakob Foerster, Tim Franzmeyer, Christian Schroeder de Witt
4/10/2024
cs.LGcs.AI

No official code found. Best implementation: LinasNas/DEXTER (3 stars, last commit 2024-04-03).

Abstract

While reinforcement learning (RL) algorithms have been successfully applied across numerous sequential decision-making problems, their generalization to unforeseen testing environments remains a significant concern. In this paper, we study the problem of out-of-distribution (OOD) detection in RL, which focuses on identifying situations at test time that RL agents have not encountered in their training environments. We first propose a clarification of terminology for OOD detection in RL, which aligns it with the literature from other machine learning domains. We then present new benchmark scenarios for OOD detection, which introduce anomalies with temporal autocorrelation into different components of the agent-environment loop. We argue that such scenarios have been understudied in the current literature, despite their relevance to real-world situations. Confirming our theoretical predictions, our experimental results suggest that state-of-the-art OOD detectors are not able to identify such anomalies. To address this problem, we propose a novel method for OOD detection, which we call DEXTER (Detection via Extraction of Time Series Representations). By treating environment observations as time series data, DEXTER extracts salient time series features, and then leverages an ensemble of isolation forest algorithms to detect anomalies. We find that DEXTER can reliably identify anomalies across benchmark scenarios, exhibiting superior performance compared to both state-of-the-art OOD detectors and high-dimensional changepoint detectors adopted from statistics.

View on arXivView PDF

Code Implementations(1)

LinasNas/DEXTERCommunity100%

All code and supplementary material for the paper "Rethinking Out-of-Distribution Detection for Reinforcement Learning: Advancing Methods for Evaluation and Detection", published in International Conference on Autonomous Agents and Multiagent Systems (AAMAS) 2024

31Shell, PythonFeb 11, 20242 years ago

Similar Papers

Cite this paper

@article{nasvytis2024rethinking,
  title  = {Rethinking Out-of-Distribution Detection for Reinforcement Learning: Advancing Methods for Evaluation and Detection},
  author = {Linas Nasvytis and Kai Sandbrink and Jakob Foerster and Tim Franzmeyer and Christian Schroeder de Witt},
  year   = {2024},
  eprint = {2404.07099},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.07099v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.07099.svg)](https://codeofpaper.com/paper/2404.07099)

Discussion