Have an LLM Write Your Anomaly Detector: Autonomous Discovery of Compact, Interpretable Detectors for Time Series
David Berghaus
Key points
From the paper's conclusion- We use a large language model not as the detector but as the author of one: an autonomous research loop in which the model repeatedly edits a single short NumPy program under a leakage-free objective, keeping the best-scoring detector it finds.
Abstract
Time-series anomaly detection trades off predictive accuracy, computational efficiency, and interpretability. We use a large language model not as the detector but as the author of one: an autonomous research loop in which the model repeatedly edits a single short NumPy program under a leakage-free objective, keeping the best-scoring detector it finds. The loop discovers two compact detectors, one for univariate and one for multivariate series, that describe short windows by their local spectral features and compare them with the training-region distribution through a covariance-aware distance. On the TSB-AD benchmark these detectors lead the field across metrics, ahead of the strongest classical, deep, and foundation-model baselines including Time-RCD, yet they train no network and use no GPU, and the multivariate detector is faster than every similarly performing baseline. LLM-driven program search is thus a practical route to accurate, efficient, and transparent detectors.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- LLM-Generated Feature Pools for Time Series Anomaly DetectionarXiv · 2026
- SMAD: A Semantics-Guided Multi-Agent Framework for Unsupervised Time-Series Anomaly DetectionarXiv · 2026
- Evaluating Language Model Features for Zero-Shot Time-Series Anomaly Detection Under Isolation AssumptionarXiv · 2026
- Future of Time Series Anomaly Detection: From Historical Review to Unified OutlookarXiv · 2026
- Retrieval Over Training: Similarity search-based Model Selection for Time Series Anomaly DetectionarXiv · 2026
- Residual-Tail-Informed Flow Matching for Time Series Anomaly DetectionarXiv · 2026