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 条
  • [41] Electricity behaviors anomaly detection based on multi-feature fusion and contrastive learning
    Guan, Yongming
    Shi, Yuliang
    Wang, Gang
    Zhang, Jian
    Wang, Xinjun
    Chen, Zhiyong
    Li, Hui
    INFORMATION SYSTEMS, 2025, 127
  • [42] The Robust Multi-Scale Deep-SVDD Model for Anomaly Online Detection of Rolling Bearings
    Kou, Linlin
    Chen, Jiaxian
    Qin, Yong
    Mao, Wentao
    SENSORS, 2022, 22 (15)
  • [43] Real-time surgical tool detection with multi-scale positional encoding and contrastive learning
    Loza, Gerardo
    Valdastri, Pietro
    Ali, Sharib
    HEALTHCARE TECHNOLOGY LETTERS, 2024, 11 (2-3) : 48 - 58
  • [44] Multi-Scale Dynamic Graph Learning for Time Series Anomaly Detection (Student Abstract)
    Jin, Yixuan
    Wei, Yutao
    Cheng, Zhangtao
    Tai, Wenxin
    Xiao, Chunjing
    Zhong, Ting
    THIRTY-EIGTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, VOL 38 NO 21, 2024, : 23523 - 23524
  • [45] Multi-Scale Adversarial Cross-Domain Detection with Robust Discriminative Learning
    Pan, YoungSun
    Ma, Andy J.
    Gao, Yuan
    Wang, JinPeng
    Lin, Yiqi
    2020 IEEE WINTER CONFERENCE ON APPLICATIONS OF COMPUTER VISION (WACV), 2020, : 1313 - 1321
  • [46] Anomaly subspace detection based on a multi-scale Markov random field model
    Goldman, A
    Cohen, I
    2004 23RD IEEE CONVENTION OF ELECTRICAL AND ELECTRONICS ENGINEERS IN ISRAEL, PROCEEDINGS, 2004, : 444 - 447
  • [47] Network traffic anomaly detection method based on multi-scale residual classifier
    Duan, Xueyuan
    Fu, Yu
    Wang, Kun
    COMPUTER COMMUNICATIONS, 2023, 198 : 206 - 216
  • [48] Anomaly subspace detection based on a multi-scale Markov random field model
    Goldman, A
    Cohen, I
    SIGNAL PROCESSING, 2005, 85 (03) : 463 - 479
  • [49] Multi-scale network traffic anomaly detection based on improved genetic algorithm
    Chen, Yiping
    Yuan, Fengshan
    2022 IEEE INTERNATIONAL CONFERENCE ON ELECTRICAL ENGINEERING, BIG DATA AND ALGORITHMS (EEBDA), 2022, : 1362 - 1367
  • [50] Multi-scale anomaly detection algorithm based on infrequent pattern of time series
    Chen, Xiao-Yun
    Zhan, Yan-Yan
    JOURNAL OF COMPUTATIONAL AND APPLIED MATHEMATICS, 2008, 214 (01) : 227 - 237