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 条
  • [21] Log-Based Anomaly Detection With Robust Feature Extraction and Online Learning
    Han, Shangbin
    Wu, Qianhong
    Zhang, Han
    Qin, Bo
    Hu, Jiankun
    Shi, Xingang
    Liu, Linfeng
    Yin, Xia
    IEEE TRANSACTIONS ON INFORMATION FORENSICS AND SECURITY, 2021, 16 : 2300 - 2311
  • [22] CLDTLog: System Log Anomaly Detection Method Based on Contrastive Learning and Dual Objective Tasks
    Tian, Gaoqi
    Luktarhan, Nurbol
    Wu, Haojie
    Shi, Zhaolei
    SENSORS, 2023, 23 (11)
  • [23] Multi-Scale Anomaly Detection on Attributed Networks
    Gutierrez-Gomez, Leonardo
    Bovet, Alexandre
    Delvenne, Jean-Charles
    THIRTY-FOURTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, THE THIRTY-SECOND INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE CONFERENCE AND THE TENTH AAAI SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2020, 34 : 678 - 685
  • [24] Multi-Scale Feature Distillation for Anomaly Detection
    Yao, Xincheng
    Li, Ruoqi
    Zhang, Chongyang
    Huang, Kefeng
    Sun, Kaiyu
    2021 27TH INTERNATIONAL CONFERENCE ON MECHATRONICS AND MACHINE VISION IN PRACTICE (M2VIP), 2021,
  • [25] Robust Log-Based Anomaly Detection on Unstable Log Data
    Zhang, Xu
    Xu, Yong
    Lin, Qingwei
    Qiao, Bo
    Zhang, Hongyu
    Dang, Yingnong
    Xie, Chunyu
    Yang, Xinsheng
    Cheng, Qian
    Li, Ze
    Chen, Junjie
    He, Xiaoting
    Yao, Randolph
    Lou, Jian-Guang
    Chintalapati, Murali
    Shen, Furao
    Zhang, Dongmei
    ESEC/FSE'2019: PROCEEDINGS OF THE 2019 27TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, 2019, : 807 - 817
  • [26] Advancing unsupervised anomaly detection with normalizing flow and multi-scale ensemble learning
    Campos-Romero, Miguel
    Carranza-Garcia, Manuel
    Riquelme, Jose C.
    ENGINEERING APPLICATIONS OF ARTIFICIAL INTELLIGENCE, 2024, 137
  • [27] A Novel Network Traffic Anomaly Detection Based on Multi-scale Fusion
    Cheng, Guozhen
    Cheng, Dongnian
    Lei, He
    MEASURING TECHNOLOGY AND MECHATRONICS AUTOMATION, PTS 1 AND 2, 2011, 48-49 : 102 - 105
  • [28] Network Anomaly Detection based on Multi-scale Dynamic Characteristics of Traffic
    Yuan, Jing
    Yuan, Ruixi
    Chen, Xi
    INTERNATIONAL JOURNAL OF COMPUTERS COMMUNICATIONS & CONTROL, 2014, 9 (01) : 101 - 112
  • [29] Research on Visual Anomaly Detection Based on Multi-scale Normalizing Flow
    Mao G.-J.
    Wu X.-Z.
    Xing S.-L.
    Zidonghua Xuebao/Acta Automatica Sinica, 2024, 50 (03): : 640 - 648
  • [30] Multi-scale and Cross-scale Contrastive Learning for Semantic Segmentation
    Pissas, Theodoros
    Ravasio, Claudio S.
    Da Cruz, Lyndon
    Bergeles, Christos
    COMPUTER VISION, ECCV 2022, PT XXIX, 2022, 13689 : 413 - 429