cs.LGOct 14, 2026

Retrieval Over Training: Similarity search-based Model Selection for Time Series Anomaly Detection

Authors: Christos Panourgias, Roberto Stanzione, Adrien Petralia, Themis Palpanas, Paul Boniol

Organizations: Université Paris Cité, LIPADE · École Normale Supérieure, Inria

Abstract

Anomaly detection is a fundamental task for time-series analytics, with important implications for the downstream performance of many applications. Despite the large number of anomaly detection methods proposed in the literature, recent benchmark studies have shown that no single detector performs best across highly heterogeneous time series. Therefore, a practical and scalable solution is to develop a model-selection method that, for a given time series, selects the anomaly detector most likely to perform well. Nevertheless, the model selection approaches proposed in the literature suffer from a significant drop in accuracy when applied in Out-of-Distribution (OOD) settings. In this paper, we tackle the aforementioned limitation and propose RAMSAD, a retrieval-based framework for model selection in time-series anomaly detection. Given a new time series, our method queries a knowledge base of previously observed instances, retrieves the top-k most similar series, and transfers detector recommendations from their performance profiles. The framework can operate with standard similarity measures as well as embedding-based representations. Our results show that RAMSAD outperforms existing baselines in In-Distribution (ID) settings and is the most robust selector in OOD, where, when selecting a small subset of detectors, it matches or exceeds ensembles that run the entire detector pool, at a fraction of their cost. Overall, we demonstrate that similarity-based retrieval constitutes a strong and efficient foundation for model selection in time-series anomaly detection.

Figures & tables

Appendix figures & tables15 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. RAMSeS: Robust and Adaptive Model Selection for Time-Series Anomaly Detection Algorithms

    Feb 25, 2026Mohamed Abdelmaksoud, Sheng Ding, Andrey Morozov +1Time-Series Anomaly Detection

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

    Oct 1, 2026Tian Lan, Yifei Gao, Yimeng Lu +6Unsupervised Anomaly DetectionTime-Series Anomaly Detection

  3. IMPACT: Influence Modeling for Open-Set Time Series Anomaly Detection

    Mar 31, 2026Xiaohui Zhou, Yijie Wang, Hongzuo Xu +3Time-Series Anomaly DetectionSynthetic Anomaly Generation