Robust log anomaly detection based on contrastive learning and multi-scale MASS

被引:0
|
作者
Xuejie Wang
Qilei Cao
Qiaozheng Wang
Zhiying Cao
Xiuguo Zhang
Peipeng Wang
机构
[1] Dalian Maritime University,School of Information Science and Technology
[2] Shandong Technology and Business University,School of Computer Science and Technology
来源
关键词
Natural language processing; Log parsing; Contrastive learning; Anomaly detection; Multi-scale masked sequence to sequence;
D O I
暂无
中图分类号
学科分类号
摘要
System logs are an important data source for performance monitoring and anomaly detection. Analyzing logs for anomaly detection can improve service quality. At present, although machine learning algorithms for anomaly detection can achieve high accuracy, they lack robustness. The detection model cannot dynamically adapt to changes of logs when system logs contain noises owing to the casualness of the operators or log templates update. In face of this challenge, the paper proposes a robust log anomaly detection method based on contrastive learning and multi-scale Masked Sequence to Sequence (MASS). First, a log feature extraction model integrating the BERT model with contrastive learning is proposed. It can extract effective features by pulling two related normal logs together and pushing apart normal and abnormal logs to ensure that the semantic similarity between normal and abnormal log templates is lower than that between normal log templates, effectively remove abnormal log templates and distinguish log categories to which normal log templates and normal noise log templates belong rather than rudely treating the noise log templates as anomalies, which enhances the robustness of anomaly detection. Then, a multi-scale Masked Sequence to Sequence (MSMASS) model is proposed, the Attention mechanism of the MASS model is replaced with multi-scale Attention to fully learn the context information of different scales of the log sequence, which improves the accuracy of anomaly detection. Contrast experiments are conducted with four baseline methods on common datasets, and the results show that the method proposed in this paper is superior to most existing log-based anomaly detection methods in terms of accuracy and robustness.
引用
收藏
页码:17491 / 17512
页数:21
相关论文
共 50 条
  • [1] Robust log anomaly detection based on contrastive learning and multi-scale MASS
    Wang, Xuejie
    Cao, Qilei
    Wang, Qiaozheng
    Cao, Zhiying
    Zhang, Xiuguo
    Wang, Peipeng
    [J]. JOURNAL OF SUPERCOMPUTING, 2022, 78 (16): : 17491 - 17512
  • [2] ANEMONE: Graph Anomaly Detection with Multi-Scale Contrastive Learning
    Jin, Ming
    Liu, Yixin
    Zheng, Yu
    Chi, Lianhua
    Li, Yuan-Fang
    Pan, Shirui
    [J]. PROCEEDINGS OF THE 30TH ACM INTERNATIONAL CONFERENCE ON INFORMATION & KNOWLEDGE MANAGEMENT, CIKM 2021, 2021, : 3122 - 3126
  • [3] Normality Learning-based Graph Anomaly Detection via Multi-Scale Contrastive Learning
    Duan, Jingcan
    Zhang, Pei
    Wang, Siwei
    Hu, Jingtao
    Jin, Hu
    Zhang, Jiaxin
    Zhou, Haifang
    Liu, Xinwang
    [J]. PROCEEDINGS OF THE 31ST ACM INTERNATIONAL CONFERENCE ON MULTIMEDIA, MM 2023, 2023, : 7502 - 7511
  • [4] Graph Anomaly Detection via Multi-Scale Contrastive Learning Networks with Augmented View
    Duan, Jingcan
    Wang, Siwei
    Zhang, Pei
    Zhu, En
    Hu, Jingtao
    Jin, Hu
    Liu, Yue
    Dong, Zhibin
    [J]. THIRTY-SEVENTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, VOL 37 NO 6, 2023, : 7459 - 7467
  • [5] LogEncoder: Log-Based Contrastive Representation Learning for Anomaly Detection
    Qi, Jiaxing
    Luan, Zhongzhi
    Huang, Shaohan
    Fung, Carol
    Yang, Hailong
    Li, Hanlu
    Zhu, Danfeng
    Qian, Depei
    [J]. IEEE TRANSACTIONS ON NETWORK AND SERVICE MANAGEMENT, 2023, 20 (02): : 1378 - 1391
  • [6] Multi-Scale Subgraph Contrastive Learning
    Liu, Yanbei
    Zhao, Yu
    Wang, Xiao
    Geng, Lei
    Xiao, Zhitao
    [J]. PROCEEDINGS OF THE THIRTY-SECOND INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, IJCAI 2023, 2023, : 2215 - 2223
  • [7] Image manipulation detection and localization using multi-scale contrastive learning
    Bai, Ruyi
    [J]. APPLIED SOFT COMPUTING, 2024, 163
  • [8] Multi-scale Contrastive Learning for Gastroenteroscopy Classification
    Li, Dan
    Li, Xuechen
    Peng, Zhibin
    Chen, Wenting
    Shen, Linlin
    Wu, Guangyao
    [J]. 2023 IEEE 36TH INTERNATIONAL SYMPOSIUM ON COMPUTER-BASED MEDICAL SYSTEMS, CBMS, 2023, : 852 - +
  • [9] Multi-scale Anomaly Detection with Wavelets
    Coughlin, Jack
    Perrone, Gian
    [J]. INTERNATIONAL CONFERENCE ON BIG DATA AND INTERNET OF THINGS (BDIOT 2017), 2017, : 102 - 108
  • [10] Contrastive learning-based general Deepfake detection with multi-scale RGB frequency clues
    Dong, Fengkai
    Zou, Xiaoqiang
    Wang, Jiahui
    Liu, Xiyao
    [J]. JOURNAL OF KING SAUD UNIVERSITY-COMPUTER AND INFORMATION SCIENCES, 2023, 35 (04) : 90 - 99