arXiv:2607.12523cs.LGcs.AI2026-07

为强化学习中的分布外检测设计了一个可扩展的基准框架。

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

论文配图:OOD-RL-Bench: A Benchmark Framework for Out-of-Distribution Detection in Reinforcement Learning
图 1 · 摘自论文原文
  • 构建了支持多种异常注入的RL轨迹检测框架。
  • 发现观测延迟和动作相关动态异常最难检测。
  • 适合研究鲁棒强化学习与异常检测的学者使用。

可靠的强化学习(RL)智能体需在传感器故障、动态扰动和环境缓慢变化下保持运行稳定。分布外(OOD)检测对于判断智能体的观测、状态转移或轨迹动态是否偏离策略训练假设至关重要。现有OOD检测基准多针对图像分类或静态低维数据集,未能考虑RL轨迹中复杂的、依赖动作的时间结构。为此,我们提出 OOD-RL-Bench,一个全面且可扩展的基准框架,用于评估在RL轨迹中注入各类异常时的检测器性能。通过统一接口与配置,检测器和异常注入器可无缝集成,新方法无需修改核心循环即可测试。我们在 LunarLander-v3 环境中使用 Deep Q-Network 策略进行评估,采用匹配时间的 AUROC、AUPRC、误报率、检测延迟及分段起始等指标,分析多种异常类型的表现。结果表明:观测扰动和模式切换可被多个方法高精度识别,而观测延迟和动作条件动态仍难以检测,即使比较异常发生后的得分与同一时刻正常样本得分亦然。框架、训练好的策略检查点及完整结果均已公开,便于复现。

原文摘要 · Abstract (English)

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.

强化学习异常检测基准测试

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。