{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2607-12523","title":"OOD-RL-Bench: A Benchmark Framework for Out-of-Distribution Detection in Reinforcement Learning","arxiv_id":"2607.12523","date":"2026-07-14","proceeding":null,"authors":["Emil Mittag","Richard Dazeley","Peter Vamplew"],"abstract":"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.","url_abs":"https://arxiv.org/abs/2607.12523","url_pdf":"https://arxiv.org/pdf/2607.12523","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2607.12523","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2607.12523"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/ood-rl-bench/ood-rl-bench","reach":null}],"summary":{"ran":11,"ran_fixture":3,"ran_violates":1,"ran_draft_wrong":2,"unverified":12},"by_repo_kind":{"found_in_text":{"samples":29,"ran":17,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"1f6f194ab884ba83","entry":"AggregatedResult","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1f6f194ab884ba83"}},{"code_sha256_prefix":"7d5314b3bbd8152f","entry":"AnomalyConfig","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7d5314b3bbd8152f"}},{"code_sha256_prefix":"e54bc879db15c08c","entry":"AnomalySpec","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e54bc879db15c08c"}},{"code_sha256_prefix":"11557293ad03cbd4","entry":"DetectionResult","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"11557293ad03cbd4"}},{"code_sha256_prefix":"0a78a2bfb5ce612b","entry":"DetectorConfig","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0a78a2bfb5ce612b"}},{"code_sha256_prefix":"304049d890290246","entry":"EpisodeEvaluation","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"304049d890290246"}},{"code_sha256_prefix":"431034dde087b734","entry":"MetricConfig","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"431034dde087b734"}},{"code_sha256_prefix":"e6e056bb7c66da46","entry":"MetricResult","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e6e056bb7c66da46"}},{"code_sha256_prefix":"d62f8000f7f208cb","entry":"RegistryError","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d62f8000f7f208cb"}},{"code_sha256_prefix":"f89ed0a99412feb7","entry":"Trajectory","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f89ed0a99412feb7"}},{"code_sha256_prefix":"38247e6e9ec1bf4e","entry":"_RegistryStore","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"38247e6e9ec1bf4e"}},{"code_sha256_prefix":"1d5956a5640037a3","entry":"_fast_auprc","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1d5956a5640037a3"}},{"code_sha256_prefix":"63223460956aeb43","entry":"_fast_auroc","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"63223460956aeb43"}},{"code_sha256_prefix":"699cfcfcb68582f2","entry":"_fast_fpr_at_95tpr","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"699cfcfcb68582f2"}},{"code_sha256_prefix":"178a8e749f1067a6","entry":"_json_sanitize","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"178a8e749f1067a6"}},{"code_sha256_prefix":"7edb98faaf0ce7cc","entry":"_metric_value_from_arrays","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7edb98faaf0ce7cc"}},{"code_sha256_prefix":"05464b1a88378334","entry":"_moving_block_sample","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"05464b1a88378334"}},{"code_sha256_prefix":"78f7d2bccc043d53","entry":"BaseAnomalyInjector","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"78f7d2bccc043d53"}},{"code_sha256_prefix":"9efbe03a7851253a","entry":"BaseDetector","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9efbe03a7851253a"}},{"code_sha256_prefix":"e8a2607a060828ab","entry":"BaseMetric","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e8a2607a060828ab"}},{"code_sha256_prefix":"b529a39e5d3ba6fd","entry":"BenchmarkConfig","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b529a39e5d3ba6fd"}},{"code_sha256_prefix":"97835433cf696d46","entry":"BenchmarkReport","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"97835433cf696d46"}},{"code_sha256_prefix":"0e27ba3756bfadf4","entry":"BenchmarkRunner","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0e27ba3756bfadf4"}},{"code_sha256_prefix":"87478d03655653dd","entry":"EvaluationProtocol","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"87478d03655653dd"}},{"code_sha256_prefix":"f3e73bfa41ed3ff1","entry":"Registry","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f3e73bfa41ed3ff1"}},{"code_sha256_prefix":"cad24bffab7efd74","entry":"_anomaly_requires_online_environment","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cad24bffab7efd74"}},{"code_sha256_prefix":"c1ce2debe89e235e","entry":"_check_constructor_params","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c1ce2debe89e235e"}},{"code_sha256_prefix":"382a83b52ac5776f","entry":"_ensure_builtin_components_registered","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"382a83b52ac5776f"}},{"code_sha256_prefix":"73e5896978f9ae19","entry":"_stable_seed","repo":"ood-rl-bench/ood-rl-bench","repo_kind":"found_in_text","path":"ood_rl_bench/core/benchmark.py","file_url":"https://github.com/ood-rl-bench/ood-rl-bench/blob/HEAD/ood_rl_bench/core/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"73e5896978f9ae19"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,795 of the 9,581 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9581,"papers_checked":6795},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}