TL;DR
The paper introduces TS-Haystack, a novel multi-domain benchmark designed to evaluate Time Series Language Models (TSLMs) on long-context retrieval and reasoning tasks spanning up to 24 hours. The authors discover that standard TSLMs suffer severe performance degradation over long horizons, collapsing to near-zero accuracy on complex interval tasks. To solve this, they propose ARTS (Agentic Retrieval for Time-Series), a framework that decouples local signal perception from global reasoning to match or outperform state-of-the-art models on 9 out of 10 benchmark tasks.
What Problem Does This Paper Address?
While Large Language Models (LLMs) have mastered long-context text retrieval, their time-series counterparts—Time Series Language Models (TSLMs)—remain largely untested over long temporal horizons. Real-world applications like continuous ICU monitoring, wearable activity tracking, and industrial IoT generate data spanning hours, days, or weeks.
Current TSLM evaluations focus almost exclusively on short-window classification or forecasting. We don't yet know if these models can reliably locate, count, or compare sparse events hidden inside massive streams of continuous data. This paper addresses this critical gap by extending the popular "needle-in-a-haystack" evaluation paradigm to the time-series domain, systematically diagnosing where and why current architectures fail.
Methods
The authors tackle the problem from two angles: benchmark creation and architectural innovation.
- The TS-Haystack Benchmark: To insert "needles" (target events) into "haystacks" (background signals) without creating artificial anomalies, the authors developed two protocols:
- Semi-synthetic needle insertion: For context-independent data (like steps or appliance usage), target events are seamlessly blended into background recordings using style transfer and cosine blending.
- Natural-segment sampling: For context-dependent data (like ECG anomalies or sleep stages), the benchmark extracts naturally occurring continuous windows along with their native expert annotations.
- ARTS (Agentic Retrieval for Time-Series): To overcome long-context failures, the authors propose a two-stage agentic framework:
- Stage 1 (Classifier Pre-pass): Specialized, domain-specific time-series classifiers scan the entire recording in non-overlapping windows, generating a compact, textual timeline index of predicted labels and confidences.
- Stage 2 (LLM Orchestrator): An LLM (GPT-5.4) reads this symbolic index and iteratively issues tool calls to "zoom in" on ambiguous segments, re-classifying them at higher resolutions before delivering a final answer.
Datasets
The benchmark evaluates models across four diverse, openly available datasets representing over 650,000 hours of multi-channel recordings:
- Capture24: Wrist accelerometer data (100 Hz) for human activity recognition.
- Sleep PSG: 13-channel polysomnography data (100 Hz) tracking sleep stages and arousals.
- LTAF: 2-lead ECG recordings (128 Hz) for long-term atrial fibrillation and arrhythmia detection.
- UK-DALE: Low-rate household power mains data (~0.17 Hz) tracking appliance energy signatures.
TS-Haystack instantiates 10 distinct tasks across these datasets, categorized into direct retrieval, temporal reasoning, multi-step reasoning, and anomaly retrieval.
Key Insights and Ideas
- The Architectural Catch-22: Current TSLMs fall into two camps, both of which fail at scale. Full-resolution adapters pass raw signal patches directly to the LLM, preserving detail but exhausting GPU memory (OOM) within minutes of high-rate data. Fixed-latent methods compress the signal into a fixed number of summary tokens, creating an information bottleneck that completely erases fine-grained temporal details as the context grows.
- Decoupling Perception from Reasoning: The success of the ARTS framework demonstrates that an LLM shouldn't ingest raw, multi-hour waveforms. Instead, treating the LLM as a high-level reasoning orchestrator that queries specialized, narrow deep-learning tools yields far better scalability.
- The "Prior" Trap: Interestingly, single-pass TSLMs occasionally outperformed the agentic framework on specific sequential tasks (like predicting what happened immediately before an event). This suggests that end-to-end training allows TSLMs to internalize dataset-specific transition probabilities (e.g., Sleep Stage N2 typically follows N1), allowing them to guess correctly even when their actual signal perception fails.
Key Results
- Long-Context Collapse: Standard TSLMs show severe accuracy degradation as context length increases. On localization, comparison, and multi-hop tasks, their performance collapses to near-zero once the context window exceeds 1 hour.
- ARTS Dominance: The proposed ARTS framework achieved the highest absolute accuracy in short-context baselines across all datasets and maintained its lead over long horizons, outperforming standard TSLMs on 9 out of 10 tasks.
- The Oracle Ceiling: An oracle baseline that bypassed perception entirely (feeding the ground-truth text annotations directly to the LLM) achieved >90% accuracy across all context lengths. This proves that the benchmark's questions are entirely answerable; the failure of standard TSLMs is purely an architectural representation issue, not an information-theoretic limitation.
Limitations and Future Work
While TS-Haystack covers four major domains, it does not yet include industrial sensor streams or climate data, which represent other massive long-context time-series use cases.
Additionally, because ARTS relies on a frontier commercial API (GPT-5.4) as its orchestrator, it is difficult to perfectly isolate how much of its success stems from the agentic decoupling strategy versus the raw power of the underlying LLM. The authors note that developing open-weights orchestrators at parity with TSLM backbones and introducing exploratory multi-agent sub-structures are vital next steps for the community.
Summary updated