arXiv:2610.00978cs.LGOct 2026

Manuscript Offprint

arXiv:2610.00978

Generalist Representation, Specialist Detection: TS-Router for Time-Series Anomaly Detection

Tian Lan, Yifei Gao, Yimeng Lu, Xuming An, Meng Wang, Yue Pan, Wenjun He, Chenghao Liu, Chen Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Tian Lan, Yifei Gao, Yimeng Lu & Xuming An

Department of Industrial Engineering

Tsinghua University

gao-yf@mail.tsinghua.edu.cn

{lant23, luym25, axm24}@mails.tsinghua.edu.cn

Meng Wang, Yue Pan & Wenjun He

Huawei

{wangmeng71, panyue33, hewenjun8}@huawei.com

Chenghao Liu ∗^{*}

Datadog AI Research

Paris, France

twinsken@gmail.com

Chen Zhang ∗^{*}

Department of Industrial Engineering

Tsinghua University

zhangchen01@tsinghua.edu.cn

ABSTRACT

Time-series anomaly detection (TSAD) is difficult to generalize across datasets because heterogeneous temporal dynamics imply different notions of normality and favor different detection criteria. While time-series foundation models provide transferable representations, coupling them with a fixed anomaly-scoring mechanism can overlook this variation. This motivates a different perspective on foundation-model-based TSAD: using foundation models to coordinate specialized anomaly criteria rather than directly imposing a universal one. Based on this view, we propose TS-Router, a generalist-representation, specialist-detection framework that estimates the relative competence of heterogeneous anomaly detectors from pretrained temporal representations and selects suitable specialists for each target series. To avoid relying on specialist-performance labels from real tasks, we derive soft competence supervision from specialists' relative performance on labeled simulated tasks. At deployment, routing requires no target anomaly labels, and only the selected specialists are fitted unsupervisedly on the target series. We bound Top-k set-competence regret under representation coverage and conditional competence stability. Across 16 real-world benchmarks and four complementary evaluation metrics, TS-Router achieves the best overall average rank. Controlled ablations with multiple frozen TSFM encoders further support the use of pretrained representations for competence estimation and adaptive specialist selection. The code is available at https://anonymous.4open.science/r/TS-Router-D8FF.

1 INTRODUCTION

Time-series anomaly detection (TSAD) is a fundamental task in sequential data analysis, with broad applications in industrial monitoring (Nizam et al., 2022; Chen et al., 2022), system operations (Audibert et al., 2020; Guo et al., 2024), health care (Su et al., 2019; Xu et al., 2021), and transportation and energy systems (Deng & Hooi, 2021). TSAD aims to identify observations or subsequences that are inconsistent with the normal behavior of the underlying temporal process, typically in settings

∗^{*}Corresponding authors: Chenghao Liu and Chen Zhang. Chenghao Liu’s contribution was completed prior to joining Datadog.

where anomalies are rare and reliable anomaly annotations are unavailable. Accordingly, reliable TSAD requires two coupled capabilities: modeling the contextual regularities that characterize normal temporal behavior, and assessing whether deviations from these regularities indicate anomalies or merely reflect normal variability (Mueller, 2025; Wang et al., 2025).

Conventional TSAD methods learn normal behavior separately for each target series and score deviations from it. For example, PCA-based detectors fit a low-dimensional subspace and flag observations with large reconstruction errors (Yairi et al., 2001). This target-specific design leads to a one-dataset-one-model paradigm, requiring a detector to be selected, tuned, and fitted for every target. Yet detector suitability varies across series, since different temporal dynamics favor different anomaly criteria. Detector selection therefore depends on domain expertise and repeated trial and error. Automated selection methods alleviate this burden by choosing among candidate detectors based on target characteristics (Zhao et al., 2021; Goswami et al., 2022; Sylligardos et al., 2023; Schmidl et al., 2024). However, they typically rely on handcrafted descriptors, limited historical performance records, or deployment-time candidate evaluation. This exposes a complementary challenge: while detector suitability is target-dependent, inferring such suitability on an unseen series requires a representation of temporal structure that transfers across datasets.

Time-series foundation models (TSFMs) offer a natural way to address this representational challenge by learning transferable temporal representations from large-scale corpora that can be readily applied to new target series. This capability has motivated growing interest in applying models such as MOMENT and TimesFM to TSAD (Goswami et al., 2024; Das et al., 2024). Most existing TSFM-based approaches, however, couple these transferable representations with forecasting or reconstruction objectives and use the resulting error as a fixed anomaly criterion. A recent systematic evaluation shows that such direct adaptations may perform no better than simple local-statistics baselines across diverse time series (Zhu et al., 2026). Rather than negating the value of pretrained temporal representations, these findings suggest that solving the representation problem does not necessarily solve the anomaly-decision problem, raising a more fundamental question: beyond directly defining an anomaly criterion, what role should foundation models play in TSAD?

This question reflects a fundamental difference between forecasting and anomaly detection. Autoregressive forecasting admits a shared objective, such as x1:t↦xt+1:t+H\mathbf{x}_{1:t} \mapsto \mathbf{x}_{t+1:t+H}, where each observed continuation provides supervision, enabling pretraining on abundant unlabeled series. TSAD, in contrast, must determine which departures from normal behavior constitute anomalies, despite scarce annotations and anomaly criteria whose suitability varies across targets. The same pattern may be normal for one series but anomalous for another, and different detectors may capture different forms of deviation. As shown in Figure 1, the relative strengths of representative specialists and the anomaly-specific foundation model TimeRCD (Lan et al., 2025b) vary substantially across domains. Together, these observations motivate conditional specialization and suggest a separation between what can be transferred and what should remain adaptive: temporal representations may generalize across series, whereas the choice of anomaly criterion can benefit from target-dependent adaptation.

Figure

Figure 1: Domain-wise VUS-PR of representative specialists relative to TimeRCD, normalized by TimeRCD performance.

Motivated by this separation, we develop TS-Router. Given an unlabeled target series, a frozen foundation encoder represents its temporal context, and a learned router predicts the relative competence of candidate specialists. Only the selected detectors are then fitted unsupervisedly on the target series, and their normalized anomaly scores are combined for detection. This route-before-fit procedure avoids fitting every candidate at deployment and requires no target anomaly labels. Our main contributions are:

• We introduce a generalist-representation, specialist-detection perspective for TSAD, separating transferable temporal representation from target-dependent anomaly decision and positioning foundation models as coordinators of specialized detection criteria through competence routing.

• We propose TS-Router, which uses transferable temporal representations to estimate heterogeneous detector competence and adaptively select and combine suitable specialists. Without large-scale real anomaly annotations, we derive scalable soft routing supervision from specialists' relative performance on labeled simulated series, and establish a Top-k set-competence regret bound under explicit transfer assumptions.

• Extensive experiments on diverse TSAD benchmarks show that TS-Router achieves the best overall average rank among the evaluated baselines. Controlled routing and representation ablations demonstrate the benefits of adaptive specialist selection and show that the framework is effective with multiple frozen TSFM encoders.

References (39)