A Hybrid Framework for Time Series Anomaly Detection with LLMs

Large Language Models (LLMs) are increasingly explored for time series anomaly detection (TSAD), yet their direct use often remains inferior to methods designed specifically for TSAD. In this work, we study whether this limitation arises primarily from weak forecasting or from insufficient exploitation of forecast residuals. Across LLaMA-3.1-8B-Instruct, Mistral-7B, and DeepSeek-R1-Distill-Qwen-7B, we find that parameter-efficient fine-tuning can improve forecasting accuracy, but does not consistently improve anomaly detection under fixed residual thresholding. The primary driver of detection performance is not forecasting quality, but how the resulting residuals are analyzed and refined in subsequent stages. Motivated by this finding, we propose a Forecaster–Detector–Imputer pipeline that restricts the LLM to forecasting normal temporal behavior, applies classical detectors to the resulting residuals using adaptive windowing and contamination-aware thresholding, and refines candidate detections through imputation via a time-series foundation model followed by a second detection pass. The proposed framework reaches F1 = 0.789 with LLaMA and F1 = 0.785 with Mistral, roughly doubling the zero-shot baselines, with results confirmed on an independent NAB benchmark. These results suggest that LLMs are most effective for TSAD when used as forecasting components within a hybrid residual-analysis pipeline, and that the primary bottleneck lies in post-hoc residual exploitation rather than forecasting quality alone.

Link
https://www.semanticscholar.org/paper/c775f62f9b40d249041413ded2f42499dd3bae88
Found by
Semantic Scholar
Authors
Hakan Akdag, A. T. Bui, Natalie Hußfeldt, G. Heisenberg
Categories
benchmark
Published
2026-11-06
Last seen by the radar
2026-11-08
Citations
0
Influential citations
0
Radar score
26.75 / 100 (how it is scored)
Why it scored so
Matched: benchmark; Primary record: Semantic Scholar
Related links
https://doi.org/10.1145/3799682.3840786
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Semantic Scholar