{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,23]],"date-time":"2026-10-23T19:18:31Z","timestamp":1792783111300,"version":"4.5.0"},"reference-count":30,"publisher":"Springer Science and Business Media LLC","issue":"9","license":[{"start":{"date-parts":[[2026,8,28]],"date-time":"2026-08-28T00:00:00Z","timestamp":1787875200000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2026,8,28]],"date-time":"2026-08-28T00:00:00Z","timestamp":1787875200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"funder":[{"name":"Fraunhofer-Institut f\u00fcr Kognitive Systeme IKS","id":[{"id":"https:\/\/ror.org\/02fez3815","id-type":"ROR","asserted-by":"crossref"}]}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["Mach Learn"],"published-print":{"date-parts":[[2026,9]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>Detecting anomalous inputs is a critical prerequisite for the safe deployment of reinforcement learning (RL) agents in real-world environments. Although anomaly detection (AD) has been extensively studied in other domains, its application to reinforcement learning remains challenging due to high-dimensional sensory observations and complex temporal dependencies. Existing approaches in this setting are limited and often rely on access to internal representations of trained agents, creating an undesirable coupling between policy and safety mechanisms. In this work, we propose ITRM, a novel approach to anomaly detection in visual reinforcement learning that is fully agent-agnostic and does not require access to policy internals. Our method is based on the observation that deviations from nominal environment dynamics can be identified through discrepancies in the latent representations of a learned world model. Specifically, we leverage predictive components of a recurrent state-space model to generate deterministic latent embeddings that serve as normative references for anomaly detection. Anomalies are detected by comparing predicted latent features against a reference set of nominal embeddings using a similarity-based criterion. Operating in the world model\u2019s latent space allows the detector to capture semantically meaningful deviations. Extensive empirical evaluations and ablation studies demonstrate that the proposed approach achieves strong detection performance. On the Anomaly-Gym benchmark, our method outperforms existing baselines, achieving an average AUROC of 0.853 and an FPR95 of 0.279.<\/jats:p>","DOI":"10.1007\/s10994-026-07126-7","type":"journal-article","created":{"date-parts":[[2026,8,28]],"date-time":"2026-08-28T12:30:58Z","timestamp":1787920258000},"update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":1,"title":["Imagining Trajectories for Anomaly Detection in Reinforcement Learning from Images"],"prefix":"10.1007","volume":"115","author":[{"given":"Tom","family":"Haider","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Karsten","family":"Roscher","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Stephan","family":"G\u00fcnnemann","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2026,8,28]]},"reference":[{"key":"7126_CR1","unstructured":"Amodei, D., Olah, C., Steinhardt, J., Christiano, P., Schulman, J., & Man\u00e9, D. (2016). Concrete problems in AI safety. arXiv preprint. arXiv:1606.06565"},{"key":"7126_CR2","unstructured":"Bergman, L., Cohen, N., & Hoshen, Y. (2020). Deep nearest neighbor anomaly detection. arXiv preprint. arXiv:2002.10445"},{"key":"7126_CR3","doi-asserted-by":"publisher","unstructured":"Breunig, M.M., Kriegel, H.-P., Ng, R.T., & Sander, J. (2000). LOF: Identifying density-based local outliers. In: Proceedings of the 2000 ACM SIGMOD International Conference on Management of Data, (pp. 93\u2013104). https:\/\/doi.org\/10.1145\/342009.335388","DOI":"10.1145\/342009.335388"},{"key":"7126_CR4","unstructured":"Chalapathy, R., & Chawla, S. (2019). Deep learning for anomaly detection: A survey. arXiv preprint. arXiv:1901.03407"},{"issue":"3","key":"7126_CR5","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1145\/1541880.1541882","volume":"41","author":"V Chandola","year":"2009","unstructured":"Chandola, V., Banerjee, A., & Kumar, V. (2009). Anomaly detection: A survey. ACM Computing Surveys (CSUR),41(3), 1\u201358. https:\/\/doi.org\/10.1145\/1541880.1541882","journal-title":"ACM Computing Surveys (CSUR)"},{"key":"7126_CR6","unstructured":"Danesh, M. H., & Fern, A. (2021). Out-of-distribution dynamics detection: RL-relevant benchmarks and results. arXiv preprint arXiv:2107.04982"},{"key":"7126_CR7","unstructured":"Dinh, L., Sohl-Dickstein, J., & Bengio, S. (2017). Density estimation using real-valued non-volume preserving (RealNVP) transformations. International Conference on Learning Representations (ICLR)."},{"issue":"8","key":"7126_CR8","doi-asserted-by":"publisher","first-page":"861","DOI":"10.1016\/j.patrec.2005.10.010","volume":"27","author":"T Fawcett","year":"2006","unstructured":"Fawcett, T. (2006). An introduction to ROC analysis. Pattern Recognition Letters,27(8), 861\u2013874. https:\/\/doi.org\/10.1016\/j.patrec.2005.10.010","journal-title":"Pattern Recognition Letters"},{"key":"7126_CR9","unstructured":"Ha, D., & Schmidhuber, J. (2018). World models. arXiv preprint. arXiv:1803.10122"},{"key":"7126_CR10","unstructured":"Hafner, D., Lillicrap, T., Fischer, I., Villegas, R., Ha, D., Lee, H., & Davidson, J. (2019). Learning latent dynamics for planning from pixels. International Conference on machine learning (pp. 2555\u20132565) PMLR"},{"key":"7126_CR11","doi-asserted-by":"crossref","unstructured":"Haider, T., Gronauer, S., Roscher, K., & G\u00fcnnemann, S. (2026). Anomaly-Gym: A Benchmark for Anomaly Detection in Reinforcement Learning Environments Manuscript under review.","DOI":"10.1007\/s10994-026-07126-7"},{"key":"7126_CR12","doi-asserted-by":"crossref","unstructured":"Haider, T., Roscher, K., Roza, F., & G\u00fcnnemann, S. (2023). Out-of-distribution detection for reinforcement learning agents with probabilistic dynamics models. Proceedings of the 2023 international Conference on autonomous agents and multiagent systems (pp. 851\u2013859).","DOI":"10.65109\/SMZA3592"},{"key":"7126_CR13","unstructured":"Haider, T., Roza, F. S., Eilers, D., Roscher, K., & G\u00fcnnemann, S. (2021). Domain shifts in reinforcement learning: Identifying disturbances in environments. AISafety@IJCAI"},{"key":"7126_CR14","doi-asserted-by":"publisher","unstructured":"Jin, W., Tung, A.K., Han, J., & Wang, W. (2006). Ranking outliers using symmetric neighborhood relationship. In: Pacific-Asia Conference on Knowledge Discovery and Data Mining, vol. 3918, (pp. 577\u2013593). https:\/\/doi.org\/10.1007\/11731139_68. Springer.","DOI":"10.1007\/11731139_68"},{"key":"7126_CR15","unstructured":"Lai, K.-H., Zha, D., Xu, J., Zhao, Y., Wang, G., & Hu, X. (2021). Revisiting time series outlier detection: Definitions and benchmarks. In Thirty-fifth conference on neural information processing systems datasets and benchmarks track (Round 1)."},{"key":"7126_CR16","unstructured":"Lotter, W., Kreiman, G., & Cox, D. (2016). Deep predictive coding networks for video prediction and unsupervised learning. arXiv preprint. arXiv:1605.08104"},{"key":"7126_CR17","unstructured":"Radford, A., Kim, J. W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., & Clark, J and others (2021). Learning transferable visual models from natural language supervision. In International Conference on machine learning (pp. 8748\u20138763) PMLR."},{"key":"7126_CR18","doi-asserted-by":"publisher","unstructured":"Roth, K., Pemula, L., Zepeda, J., Sch\u00f6lkopf, B., Brox, T., & Gehler, P. (2022). Towards total recall in industrial anomaly detection. In Proceedings of the IEEE\/CVF Conference on computer vision and pattern recognition, (pp. 14318\u201314328). https:\/\/doi.org\/10.1109\/CVPR52688.2022.01392","DOI":"10.1109\/CVPR52688.2022.01392"},{"issue":"5","key":"7126_CR19","doi-asserted-by":"publisher","first-page":"756","DOI":"10.1109\/JPROC.2021.3052449","volume":"109","author":"L Ruff","year":"2021","unstructured":"Ruff, L., Kauffmann, J. R., Vandermeulen, R. A., Montavon, G., Samek, W., Kloft, M., Dietterich, T. G., & M\u00fcller, K.-R. (2021). A unifying review of deep and shallow anomaly detection. Proceedings of the IEEE,109(5), 756\u2013795. https:\/\/doi.org\/10.1109\/JPROC.2021.3052449","journal-title":"Proceedings of the IEEE"},{"key":"7126_CR20","unstructured":"Ruff, L., Vandermeulen, R., Goernitz, N., Deecke, L., Siddiqui, S. A., Binder, A., M\u00fcller, E., & Kloft, M. (2018). Deep one-class classification. International Conference on Machine Learning (pp. 4393\u20134402) PMLR."},{"key":"7126_CR21","doi-asserted-by":"publisher","unstructured":"Sakurada, M., & Yairi, T. (2014) Anomaly detection using autoencoders with nonlinear dimensionality reduction. In Proceedings of the MLSDA 2014 2nd workshop on machine learning for sensory data analysis, (pp. 4\u201311). https:\/\/doi.org\/10.1145\/2689746.2689747","DOI":"10.1145\/2689746.2689747"},{"key":"7126_CR22","doi-asserted-by":"crossref","unstructured":"Sedlmeier, A., Gabor, T., Phan, T., Belzner, L., & Linnhoff-Popien, C. (2019). Uncertainty-based out-of-distribution classification in deep reinforcement learning. arXiv preprint. arXiv:2001.00496","DOI":"10.5220\/0008949905220529"},{"key":"7126_CR23","doi-asserted-by":"publisher","unstructured":"Su, Y., Zhao, Y., Niu, C., Liu, R., Sun, W., & Pei, D. (2019). Robust anomaly detection for multivariate time series through stochastic recurrent neural network. In Proceedings of the 25th ACM SIGKDD international conference on knowledge discovery & data mining, (pp. 2828\u20132837). https:\/\/doi.org\/10.1145\/3292500.3330672","DOI":"10.1145\/3292500.3330672"},{"key":"7126_CR24","unstructured":"Sun, Y., Ming, Y., Zhu, X., & Li, Y. (2022). Out-of-distribution detection with deep nearest neighbors. International Conference on machine learning (pp. 20827\u201320840) PMLR."},{"issue":"6","key":"7126_CR25","doi-asserted-by":"publisher","first-page":"1201","DOI":"10.14778\/3514061.3514067","volume":"15","author":"S Tuli","year":"2022","unstructured":"Tuli, S., Casale, G., & Jennings, N. R. (2022). TranAD: Deep transformer networks for anomaly detection in multivariate time series data. Proceedings of the VLDB Endowment,15(6), 1201\u20131214. https:\/\/doi.org\/10.14778\/3514061.3514067","journal-title":"Proceedings of the VLDB Endowment"},{"key":"7126_CR26","unstructured":"Xu, J., Wu, H., Wang, J., & Long, M. (2022). Anomaly transformer: Time series anomaly detection with association discrepancy. International Conference on Learning Representations."},{"issue":"12","key":"7126_CR27","doi-asserted-by":"publisher","first-page":"5635","DOI":"10.1007\/s11263-024-02117-4","volume":"132","author":"J Yang","year":"2024","unstructured":"Yang, J., Zhou, K., Li, Y., & Liu, Z. (2024). Generalized out-of-distribution detection: A survey. International Journal of Computer Vision,132(12), 5635\u20135662. https:\/\/doi.org\/10.1007\/s11263-024-02117-4","journal-title":"International Journal of Computer Vision"},{"key":"7126_CR28","unstructured":"Zhang, H., Sun, K., Kong, L., & M\u00fcller, M. (2024). A distance-based anomaly detection framework for deep reinforcement learning. Transactions on Machine Learning Research."},{"key":"7126_CR29","unstructured":"Zollicoffer, G., Eaton, K., Balloch, J. C., Kim, J., Zhou, W., Wright, R., & Riedl, M. (2025). Novelty detection in reinforcement learning with world models. Forty-Second International Conference on Machine Learning."},{"key":"7126_CR30","unstructured":"Zong, B., Song, Q., Min, M. R., Cheng, W., Lumezanu, C., Cho, D., & Chen, H. (2018). Deep autoencoding gaussian mixture model for unsupervised anomaly detection. International Conference on Learning Representations (ICLR)."}],"container-title":["Machine Learning"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10994-026-07126-7.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/article\/10.1007\/s10994-026-07126-7","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10994-026-07126-7.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,30]],"date-time":"2026-09-30T06:24:24Z","timestamp":1790749464000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/s10994-026-07126-7"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,8,28]]},"references-count":30,"journal-issue":{"issue":"9","published-print":{"date-parts":[[2026,9]]}},"alternative-id":["7126"],"URL":"https:\/\/doi.org\/10.1007\/s10994-026-07126-7","relation":{},"ISSN":["0885-6125","1573-0565"],"issn-type":[{"value":"0885-6125","type":"print"},{"value":"1573-0565","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,8,28]]},"assertion":[{"value":"16 January 2026","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"18 June 2026","order":2,"name":"revised","label":"Revised","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"11 July 2026","order":3,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"28 August 2026","order":4,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"The authors declare no conflict of interest.","order":1,"name":"Ethics","label":"Conflict of interest","group":{"name":"EthicsHeading","label":"Declarations"}}],"article-number":"205"}}