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

Christos Panourgias, Roberto Stanzione, Adrien Petralia, Themis Palpanas, Paul Boniol
10/14/2026
cs.LGcs.AI

No official code found. Best implementation: Hendrix8/RAMSAD (2 stars, MIT, last commit 2026-10-15).

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.

View on arXivView PDF

Code Implementations(1)

Hendrix8/RAMSADCommunity71%
MIT

Official code for "Retrieval Over Training: Similarity search-based Model Selection for Time Series Anomaly Detection" (NeurIPS 2026). RAMSAD selects the best anomaly detector for a new series by retrieving similar series from a knowledge base, with no selector training.

20Sep 28, 20265 days agoMIT
anomaly-detectionfoundation-modelsmodel-selectionneuripsneurips-2026+5 more

Similar Papers

Cite this paper

@article{panourgias2026retrieval,
  title  = {Retrieval Over Training: Similarity search-based Model Selection for Time Series Anomaly Detection},
  author = {Christos Panourgias and Roberto Stanzione and Adrien Petralia and Themis Palpanas and Paul Boniol},
  year   = {2026},
  eprint = {2610.20243},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.20243v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.20243.svg)](https://codeofpaper.com/paper/2610.20243)

Discussion