NeurIPS 2026QuestionsPapersAreasAboutMarkdown

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

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

NeurIPS page · Open on the map

Category: Graphs, OOD Detection & Medical Imaging › Time Series Anomaly Detection · Type: new method · Keywords: time series anomaly detection, model selection, similarity search, retrieval, out-of-distribution

Summary

RAMSAD is a train-free, retrieval-based framework that selects the best anomaly detector for a new time series by querying a knowledge base of previously observed instances and transferring their performance recommendations.

Explained to a 5-year-old

Sometimes we want to find weird things in data, like a sudden jump in temperature. There are many tools that can do this, but no single tool works best for every kind of data. We made a new way to pick the best tool by looking at similar data we have seen before. It finds the most similar old data and uses the tool that worked well for that. This helps us find problems without having to try many tools.

Explained to a 5-year-old, longer

In many places, like factories or hospitals, we keep track of numbers over time to catch problems early. Detecting unusual patterns in these numbers is called anomaly detection, and it helps keep things running smoothly. Many different methods exist for spotting anomalies, but each works best for some kinds of data and not others. Trying every method on new data can be slow and use a lot of computer power. Researchers wanted a way to choose the best method automatically without testing them all. They noticed that existing selection methods often fail when the new data is very different from what they had before. The new idea is to look at a library of old data that we already know how to handle. For a new series, we compare it to the old ones and find the ones that are most similar. Then we see which detection method worked best for those similar old series. We copy that method's recommendation for the new series. This way we get a good guess without having to train anything new. It makes finding problems faster and easier for many different kinds of time-series data.

For a technical reader

RAMSAD is a train-free framework that selects the most suitable anomaly detector for a new time series by leveraging a stored knowledge base of previously evaluated series. It computes similarity between the incoming series and the stored instances using standard metrics or learned embeddings, retrieves the top-k matches, and transfers their detector performance recommendations. Because no single detector dominates across all time-series distributions, this retrieval-based approach avoids the accuracy drop that traditional model-selection methods suffer in out-of-distribution scenarios. The system can be integrated into existing pipelines as a plug-and-play component, requiring only the ability to compute similarity scores and access to past performance logs. Empirically, RAMSAD provides a strong baseline for model selection in time-series anomaly detection, demonstrating that similarity search alone can serve as an efficient foundation for detector recommendation.

Problem

Selecting the most effective anomaly detector for a given time series is challenging because no single detector consistently outperforms others across diverse data. Existing model selection methods lose accuracy when applied to out-of-distribution time series, limiting their practical utility.

Method

The approach builds a knowledge base of previously evaluated time series and their detector performance. For a new series, it computes similarity to stored instances using standard measures or embeddings, retrieves the top-k matches, and transfers their detector recommendations. This retrieval-based selection operates without any training on the new data.

Contributions

A train-free, retrieval-based framework for model selection that works in out-of-distribution settings and can use various similarity measures. Empirical evidence that similarity-based retrieval provides a robust basis for selecting anomaly detectors across heterogeneous time series.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction