MEGA Hub

TimeRLM: Recursive Language Models Enable Precise Anomaly Localization in Long-Context Time-Series

Authors

Do you know Nicolas Zumarraga?You can claim authorship or link another user.Do you know Lorenzo Steno?You can claim authorship or link another user.Do you know Ning Wang?You can claim authorship or link another user.Do you know Max Rosenblattl?You can claim authorship or link another user.Do you know Thomas Kaar?You can claim authorship or link another user.Do you know Maxwell A. Xu?You can claim authorship or link another user.Do you know Kevin O'Sullivan?You can claim authorship or link another user.Do you know Markus Kreft?You can claim authorship or link another user.Do you know Elgar Fleisch?You can claim authorship or link another user.Do you know Paul Schmiedmayer?You can claim authorship or link another user.Do you know Patrick Langer?You can claim authorship or link another user.Do you know Robert Jakob?You can claim authorship or link another user.

Abstract

Precise anomaly localization over long-context time series is a crucial task in monitoring applications across clinical care, industrial operations, financial services, and logistics, where brief evidence may hide inside long spans of high-frequency data. Time-Series Language Models (TSLMs) are able to ingest time series data and verbalize findings on anomalies in natural language; however, recent benchmarks report a decrease in retrieval performance at long contexts, mirroring failure modes in text, vision, and audio. In the text domain, Recursive Language Models (RLMs) can recover much of this lost performance by keeping context external to the large language model (LLM), allowing the model to query it through code. We present TimeRLM, an RLM formulation for time-series that sequentially manipulates the signal using code and vision capabilities. We further introduce AnomalyXL, a synthetic long-context anomaly localization benchmark with programmatically injected anomalies that require precise retrieval. We implement five different task categories and two variants: AnomalyXL-MCQ and AnomalyXL-Localize. TimeRLM outperforms every evaluated TSLM and single-pass baseline on four of the five AnomalyXL-Localize tasks, reaching 0.682 IoU on localization and 0.745 on classify-with-evidence, versus at most 0.329 and 0.072 across all baselines. We post-train TimeRLM using reinforcement learning. The resulting model further improves performance and requires approximately one-third as many agent interaction turns as its untrained base model to produce a final answer. On unseen real-world ECG, sleep and software observability recordings, the post-trained TimeRLM retains or improves performance, surpassing TSLMs despite being trained exclusively on synthetic data. Our findings suggest recursive interaction with time-series is an effective approach for long-horizon retrieval.

Community

00

Publication notes

Author note
Open source code and datasets: https://github.com/OpenTSLM/TimeRLM