arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.03489cs.SE
收藏

数据重采样对基于深度学习的日志异常检测的影响:洞见与建议

On the Influence of Data Resampling for Deep Learning-Based Log Anomaly Detection: Insights and Recommendations

Xiaoxue Ma, Huiqi Zou, Pinjia He, Jacky Keung, Yishu Li, Xiao Yu, Federica Sarro

AI总结:

本研究针对深度学习日志异常检测中的类别不平衡问题,首次系统探究数据重采样方法的影响,发现过采样、原始数据重采样效果更优,给出重采样比例建议,为提升检测性能提供参考。

摘要:

众多基于深度学习(DL)的方法在软件日志异常检测(LAD)领域受到关注,但训练数据中的类别不平衡仍是一大挑战——在Thunderbird这类数据集中,异常数据占比通常不足1%。现有的深度学习日志异常检测(DLLAD)方法在严重不平衡的数据集上可能表现不佳。尽管数据重采样在其他软件工程任务中已被证明有效,但尚未在LAD领域得到探索。本研究旨在填补这一空白,从两个不同角度深入分析各类数据重采样方法对现有DLLAD方法的影响。首先,我们评估了这些DLLAD方法在四个具有不同类别不平衡程度的数据集上的性能,并探究了正常数据与异常数据的重采样比例对DLLAD方法的影响。其次,我们在采用正常与异常数据的最优重采样比例时,评估了数据重采样方法的有效性。我们的研究结果表明,过采样方法的表现通常优于欠采样和混合采样方法。对原始数据进行重采样的效果优于在特征空间中进行重采样。这些提升归因于模型对重要token的关注度有所提高。通过探究正常与异常数据的重采样比例,我们建议通过过采样为少数类生成更多数据,同时通过欠采样从多数类中移除较少的数据。总之,本研究为数据重采样方法与DLLAD之间的复杂关系提供了宝贵洞见。通过解决类别不平衡这一挑战,研究人员和从业者可以提升DLLAD的性能。

英文摘要:

Numerous Deep Learning (DL)-based approaches have gained attention in software Log Anomaly Detection (LAD), yet class imbalance in training data remains a challenge, with anomalies often comprising less than 1% of datasets like Thunderbird. Existing DLLAD methods may underperform in severely imbalanced datasets. Although data resampling has proven effective in other software engineering tasks, it has not been explored in LAD. This study aims to fill this gap by providing an in-depth analysis of the impact of diverse data resampling methods on existing DLLAD approaches from two distinct perspectives. Firstly, we assess the performance of these DLLAD approaches across four datasets with different levels of class imbalance, and we explore the impact of resampling ratios of normal to abnormal data on DLLAD approaches. Secondly, we evaluate the effectiveness of the data resampling methods when utilizing optimal resampling ratios of normal to abnormal data. Our findings indicate that oversampling methods generally outperform undersampling and hybrid sampling methods. Data resampling on raw data yields superior results compared to data resampling in the feature space. These improvements are attributed to the increased attention given to important tokens. By exploring the resampling ratio of normal to abnormal data, we suggest generating more data for minority classes through oversampling while removing less data from majority classes through undersampling. In conclusion, our study provides valuable insights into the intricate relationship between data resampling methods and DLLAD. By addressing the challenge of class imbalance, researchers and practitioners can enhance DLLAD performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑