LLMDP-U: Compiling LLM Reasoning into Persistent Time-Series Anomaly Detectors
Ziqi Zhu, Guanghui Wang, Zhihao Lin, Hao Huang, Bing Zhu, Ziyuan Li, Yingli Liu, Zhendong Bei, Peiyang He
Abstract
Large language models (LLMs) can adapt anomaly detection to heterogeneous time series, but recent LLM-based detectors keep the model in the scoring loop, coupling score production to repeated context construction and model inference. We introduce LLMDP-U, which uses an LLM as a detector compiler: from a statistical profile of a reference prefix and a numerical interface, it generates and validates a series-specific Python program that emits multiple continuous anomaly scores. The retained program then executes without further LLM calls, and a fixed label-free rank fusion produces the final score. Evaluated offline and transductively on TSB-AD-U Eval-350, Opus-compiled programs achieve 0.5498 Average VUS-PR, a +0.0500 gain over a no-LLM Canonical Program and the third-highest result on the leaderboard. Performance increases from Haiku to Sonnet to Opus under a shared protocol, while a matched-size exhaustive primitive bank does not reproduce the Opus gain. An audit of 1,194 programs reveals recurring profile-conditioned activity, persistence, and value-support mechanisms. Together, these results establish detector programming as a third design point between fixed numerical detectors and recurring foundation-model inference: adaptation is compiled into a persistent, inspectable artifact, while score execution remains numerical.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI, stat.ML
- Comments
- 17 pages, 4 figures. Accepted at the TS-LIMITS Workshop, NeurIPS 2026
Related papers
PVBoost: Posterior-Calibrated Variance Boosting for Time-Series Anomaly Detection
Shared title terminologycs.LGQinghua Liu, John Paparrizos
DREP: Diffusion Response and Evolution Profiles for Multivariate Time Series Anomaly Detection
Shared title terminologycs.LGXu Su, Tao Jin, Guohao Wang et al.
The Price of a Vocabulary: Finite-Sample Laws for Time-Series Tokenization
Shared title terminologycs.LGLining Hu, Ting Liu, Yuzhuo Fu
TS-Edit: A Model Editing Framework for Adversarial Defense in Time-Series Foundation Models
Shared title terminologycs.LGVaibhav Achar, Jathin Shettigar Nagabhushan, Abhishek Bhardwaj et al.
Beyond the Decision Boundary: Explaining Anomaly Detectors through Counterfactuals
Shared title terminologycs.LGLong Tuan Vo, Minh Tri Doan, Xuan Khoa Hoang Thai et al.
Multivariate Time Series Causal Foundation Model with In-Context Learning
Shared title terminologycs.LGMehmet Yigit Balik, Pekka Marttinen, Harri Lähdesmäki