LLM-Enhanced Reinforcement Learning for Time Series Anomaly Detection

Bahareh Golchin, Banafsheh Rekabdar, Danielle Justo
1/5/2026
cs.LG

No confident code implementation found for this paper.

Abstract

Detecting anomalies in time series data is crucial for finance, healthcare, sensor networks, and industrial monitoring applications. However, time series anomaly detection often suffers from sparse labels, complex temporal patterns, and costly expert annotation. We propose a unified framework that integrates Large Language Model (LLM)-based potential functions for reward shaping with Reinforcement Learning (RL), Variational Autoencoder (VAE)-enhanced dynamic reward scaling, and active learning with label propagation. An LSTM-based RL agent leverages LLM-derived semantic rewards to guide exploration, while VAE reconstruction errors add unsupervised anomaly signals. Active learning selects the most uncertain samples, and label propagation efficiently expands labeled data. Evaluations on Yahoo-A1 and SMD benchmarks demonstrate that our method achieves state-of-the-art detection accuracy under limited labeling budgets and operates effectively in data-constrained settings. This study highlights the promise of combining LLMs with RL and advanced unsupervised techniques for robust, scalable anomaly detection in real-world applications.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{golchin2026llmenhanced,
  title  = {LLM-Enhanced Reinforcement Learning for Time Series Anomaly Detection},
  author = {Bahareh Golchin and Banafsheh Rekabdar and Danielle Justo},
  year   = {2026},
  eprint = {2601.02511},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.02511v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.02511.svg)](https://codeofpaper.com/paper/2601.02511)

Discussion