Few-Shot Log Anomaly Detection Based on Matching Networks

被引:0
|
作者
Han, Chunjing [1 ]
Guan, Bohai [1 ,2 ]
Li, Tong [1 ]
Kang, Di [3 ]
Qin, Jifeng [4 ]
Wu, Yulei [5 ]
机构
[1] Chinese Acad Sci, Inst Informat Engn, Key Lab Cyberspace Secur Def, Beijing 100093, Peoples R China
[2] Univ Chinese Acad Sci, Sch Cyber Secur, Beijing 100049, Peoples R China
[3] Natl Confidential Technol Evaluat Ctr, Beijing 100000, Peoples R China
[4] Huanghe Sci & Technol Coll, Zhengzhou 450008, Henan, Peoples R China
[5] Univ Bristol, Fac Engn, Bristol BS8 1QU, England
基金
国家重点研发计划;
关键词
Anomaly detection; Feature extraction; Adaptation models; Computational modeling; Bidirectional control; Data models; Behavioral sciences; Few-shot; log anomaly detection; bert; post-training;
D O I
10.1109/TNSM.2024.3363626
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
In order to address the problem of log anomaly detection in scenarios with limited labeled log datasets, this paper proposes Log-MatchNet, a novel few-shot log anomaly detection method. To tackle issues such as unstructured log data, diversity, and evolution over time, we employ structured processing and log parsing to convert log content information and template ID into vectors. Feature extraction is performed using the BERT model. Additionally, by integrating multiple datasets and conducting post-training on the BERT model for domain adaptation, we obtain BERT_Post , a module with universal feature extraction capabilities in the log domain. Compared to BERT_base and CyBERT, our method demonstrates superior performance in log anomaly detection, especially in situations with limited labeled datasets. With only 2 annotated normal logs and 2 annotated abnormal logs, BERT_Post achieves a remarkable 16.14% increase in F1-score. Addressing the challenge of imbalanced data, we introduce a matching network that learns the similarity scores between input and prototype vectors, showcasing strong generalization capabilities with an average accuracy of 99.6%. In few-shot scenarios, our method, Log-MatchNet outperforms traditional methods and Proto-Siamese network in terms of F1-score. In an unstable log evolution environment, our method exhibits robustness against noisy data, achieving an F1-score of 81.2% even with 20% injected noise. Compared to LogAnMeta, our approach yields a 31.71% increase in F1-score. Experimental results demonstrate the effectiveness of Log-MatchNet in detecting anomalies in the presence of limited labeled log data and its robust performance in log evolution scenarios.
引用
收藏
页码:2909 / 2925
页数:17
相关论文
共 50 条
  • [1] Registration Based Few-Shot Anomaly Detection
    Huang, Chaoqin
    Guan, Haoyan
    Jiang, Aofan
    Zhang, Ya
    Spratling, Michael
    Wang, Yan-Feng
    COMPUTER VISION, ECCV 2022, PT XXIV, 2022, 13684 : 303 - 319
  • [2] Learning Hypersphere for Few-shot Anomaly Detection on Attributed Networks
    Guo, Qiuyu
    Zhao, Xiang
    Fang, Yang
    Yang, Shiyu
    Lin, Xuemin
    Ouyang, Dian
    PROCEEDINGS OF THE 31ST ACM INTERNATIONAL CONFERENCE ON INFORMATION AND KNOWLEDGE MANAGEMENT, CIKM 2022, 2022, : 635 - 645
  • [3] Insulator Anomaly Detection Method Based on Few-Shot Learning
    Wang, Zhaoyang
    Gao, Qiang
    Li, Dong
    Liu, Junjie
    Wang, Hongwei
    Yu, Xiao
    Wang, Yipin
    IEEE ACCESS, 2021, 9 : 94970 - 94980
  • [4] Few-shot online anomaly detection and segmentation
    Wei, Shenxing
    Wei, Xing
    Ma, Zhiheng
    Dong, Songlin
    Zhang, Shaochen
    Gong, Yihong
    KNOWLEDGE-BASED SYSTEMS, 2024, 300
  • [5] Few-Shot Anomaly Detection via Personalization
    Kwak, Sangkyung
    Jeong, Jongheon
    Lee, Hankook
    Kim, Woohyuck
    Seo, Dongho
    Yun, Woojin
    Lee, Wonjin
    Shin, Jinwoo
    IEEE ACCESS, 2024, 12 : 11035 - 11051
  • [6] Prioritized Local Matching Network for Cross-Category Few-Shot Anomaly Detection
    Deng H.
    Luo H.
    Zhai W.
    Cao Y.
    Kang Y.
    IEEE Transactions on Artificial Intelligence, 2024, 5 (09): : 1 - 12
  • [7] Anomaly detection model based on few-shot learning and memory modules
    Li, Zihao
    Wu, Sisi
    Zhang, Yingmiao
    Xu, Wanru
    JOURNAL OF ELECTRONIC IMAGING, 2022, 31 (03)
  • [8] Anomaly Detection via Few-Shot Learning on Normality
    Ando, Shin
    Yamamoto, Ayaka
    MACHINE LEARNING AND KNOWLEDGE DISCOVERY IN DATABASES, ECML PKDD 2022, PT I, 2023, 13713 : 275 - 290
  • [9] Few-Shot Anomaly Detection in Text with Deviation Learning
    Das, Anindya Sundar
    Ajay, Aravind
    Saha, Sriparna
    Bhuyan, Monowar
    NEURAL INFORMATION PROCESSING, ICONIP 2023, PT II, 2024, 14448 : 425 - 438
  • [10] A Gated Few-shot Learning Model For Anomaly Detection
    Huang, Shaohan
    Liu, Yi
    Fung, Carol
    An, Wanhe
    He, Rong
    Zhao, Yining
    Yang, Hailong
    Luan, Zhongzhi
    2020 34TH INTERNATIONAL CONFERENCE ON INFORMATION NETWORKING (ICOIN 2020), 2020, : 505 - 509