arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.07099cs.LGcs.AI
收藏

重新思考强化学习中的分布外检测:推进评估与检测方法

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

Harvard University(哈佛大学);University of Oxford(牛津大学)

Linas Nasvytis, Kai Sandbrink, Jakob Foerster, Tim Franzmeyer, Christian Schroeder de Witt

AI总结:

针对强化学习测试时的分布外检测问题,本文构建含时间自相关异常的新基准,并提出DEXTER,通过时间序列特征与隔离森林集成实现优于现有方法的检测。

摘要:

尽管强化学习(RL)算法已成功应用于众多序贯决策问题,但其向未预见测试环境的泛化仍是一个重大隐患。本文研究RL中的分布外(OOD)检测问题,其重点是在测试时识别RL智能体在训练环境中未曾遇到的情形。我们首先对RL中OOD检测的术语进行澄清,使其与其他机器学习领域的文献保持一致。随后,我们提出了新的OOD检测基准场景,将具有时间自相关性的异常引入智能体—环境循环的不同组成部分。我们认为,尽管这些场景与现实情形相关,但在当前文献中仍未得到充分研究。实验结果证实了我们的理论预测,表明最先进的OOD检测器无法识别此类异常。为解决这一问题,我们提出一种新颖的OOD检测方法,称为DEXTER(Detection via Extraction of Time Series Representations,通过提取时间序列表示进行检测)。DEXTER将环境观测视为时间序列数据,提取显著的时间序列特征,然后利用隔离森林算法集成来检测异常。我们发现,DEXTER能够在各基准场景中可靠识别异常,并且相较于最先进的OOD检测器以及从统计学中采用的高维变点检测器,均表现出更优性能。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑