cs.LGOct 1, 2026

Have an LLM Write Your Anomaly Detector: Autonomous Discovery of Compact, Interpretable Detectors for Time Series

Authors: David Berghaus

Organizations: Lamarr Institute Germany · Fraunhofer IAIS Germany

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.

Figures & tables

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Tiny but Trusted: Efficient Vision-Language Reasoning for Time-Series Anomaly Detection

    May 28, 2026Xiaona Zhou, Muntasir Wahed, Tianjiao Yu +2Time-Series Anomaly DetectionRecent Vision-Language Models

  2. Detecting Time Series Anomalies Like an Expert: A Multi-Agent LLM Framework with Specialized Analyzers

    May 7, 2026Hyeongwon Kang, Jeongseob Kim, Jinwoo Park +1Time-Series Anomaly DetectionInterpretable Anomaly Detection

  3. Detect, Explain, Interpret: An End-to-End Benchmark for Time Series Anomaly Detection, Explainability and Interpretability

    Oct 1, 2026Roberto Stanzione, Jules Barbe, Magali Parrino +2Time-Series Anomaly DetectionTime Series