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 条
  • [31] Network traffic anomaly detection method based on multi-scale characteristic
    Duan, Xueyuan
    Fu, Yu
    Wang, Kun
    Liu, Taotao
    Li, Bin
    Tongxin Xuebao/Journal on Communications, 2022, 43 (10): : 65 - 76
  • [32] Multi-Scale Contrastive Learning based Weakly Supervised Learning for Remote Sensing Scene Classification
    Peng, Rui
    Zhao, Wenzhi
    Zhang, Liqiang
    Chen, Xuehong
    Journal of Geo-Information Science, 2022, 24 (07) : 1375 - 1390
  • [33] SwissLog: Robust and Unified Deep Learning Based Log Anomaly Detection for Diverse Faults
    Li, Xiaoyun
    Chen, Pengfei
    Jing, Linxiao
    He, Zilong
    Yu, Guangba
    2020 IEEE 31ST INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING (ISSRE 2020), 2020, : 92 - 103
  • [34] Multi-scale Contrastive Learning with Attention for Histopathology Image Classification
    Tan, Jing Wei
    Khoa Tuan Nguyen
    Lee, Kyoungbun
    Jeong, Won-Ki
    MEDICAL IMAGING 2023, 2023, 12471
  • [35] Multi-scale contrastive learning method for PolSAR image classification
    Hua, Wenqiang
    Wang, Chen
    Sun, Nan
    Liu, Lin
    JOURNAL OF APPLIED REMOTE SENSING, 2024, 18 (01)
  • [36] MULTI-SCALE SPARSE CODING WITH ANOMALY DETECTION AND CLASSIFICATION
    Akhondi-Asl, Hojjat
    Nelson, James D. B.
    2016 IEEE STATISTICAL SIGNAL PROCESSING WORKSHOP (SSP), 2016,
  • [37] Anomaly detection with multi-scale pyramid grid templates
    Shifeng Li
    Yan Cheng
    Liuyang Zhao
    Yue Wang
    Multimedia Tools and Applications, 2024, 83 : 9929 - 9947
  • [38] Anomaly detection with multi-scale pyramid grid templates
    Li, Shifeng
    Cheng, Yan
    Zhao, Liuyang
    Wang, Yue
    MULTIMEDIA TOOLS AND APPLICATIONS, 2024, 83 (04) : 9929 - 9947
  • [39] MAD: Multi-Scale Anomaly Detection in Link Streams
    Bautista, Esteban
    Brisson, Laurent
    Bothorel, Cecile
    Smits, Gregory
    PROCEEDINGS OF THE 17TH ACM INTERNATIONAL CONFERENCE ON WEB SEARCH AND DATA MINING, WSDM 2024, 2024, : 38 - 46
  • [40] Multi-Scale Anomaly Detection in Complex Dynamic Networks
    Mahyari, Arash Golibagh
    Aviyente, Selin
    2013 IEEE GLOBAL CONFERENCE ON SIGNAL AND INFORMATION PROCESSING (GLOBALSIP), 2013, : 603 - 606