NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DRLLog: Deep Reinforcement Learning for Online Log Anomaly Detection

Junwei Zhou, Yuyang Gao, Ying Zhu, Xiangtian Yu, Yanchao Yang, Cheng Tan, Jianwen XiangIEEE Transactions on Network and Service Management 2025

Abstract

System logs record the system’s status and application behavior, providing support for various system management and diagnostic tasks. However, existing methods for log anomaly detection face several challenges, including limitations in recognizing current types of anomalous logs and difficulties in performing online incremental updates to the anomaly detection models. To address these challenges, this paper introduces DRLLog, which applies Deep Reinforcement Learning (DRL) networks to detect anomalous events. DRLLog uses Deep Q Network (DQN) as the agent, with log entries serving as reward signals. By interacting with the environment generated from log data and adopting various action behaviors, it aims to maximize the reward value obtained as feedback. Through this approach, DRLLog achieves learning from historical log data and perception of the current environment, enabling continuous learning and adaptation to different log sequence patterns. Additionally, DRLLog introduces low-rank adaptation by using two low-rank parameter matrices in the fully connected layer of the DQN to represent changes in its weight matrix. During online model learning, only low-rank parameter matrices of the model are updated, effectively reducing the model’s overhead. Furthermore, DRLLog introduces focal loss to focus more on learning the features of anomalous logs, effectively addressing the issue of imbalanced quantities between normal and anomalous logs. We evaluated the performance on widely used log datasets, including HDFS, BGL and ThunderBird, showing an average improvement of 3% in F1-Score compared to baseline methods. During online model learning, DRLLog achieves an average reduction of 90% in parameter count and a significant decrease in training and testing time as well.
BibTeX
@article{zhou2025drllog,
  author = {Junwei Zhou and Yuyang Gao and Ying Zhu and Xiangtian Yu and Yanchao Yang and Cheng Tan and Jianwen Xiang},
  title = {{DRLLog: Deep Reinforcement Learning for Online Log Anomaly Detection}},
  journal = {IEEE Transactions on Network and Service Management},
  year = {2025},
  doi = {10.1109/tnsm.2025.3542595},
}

Loading related content...

Figure