LogPurge: Log Data Purification for Anomaly Detection via Rule-Enhanced Filtering
Not on the map. Why?
Abstract (arXiv)
Log anomaly detection, which is critical for identifying system failures and preempting security breaches, detects irregular patterns within large volumes of log data, and impacts domains such as service reliability, performance optimization, and database log analysis. Modern log anomaly detection methods rely on training deep learning models on clean, anomaly-free log sequences. However, obtaining such clean log data requires costly and tedious human labeling, and existing automatic cleaning methods fail to fully integrate the specific characteristics and actual semantics of logs in their purification process. In this paper, we propose a cost-aware, rule-enhanced purification framework, LogPurge, that automatically selects a sufficient subset of normal log sequences from contamination log sequences to train a anomaly detection model. Our approach involves a two-stage filtering algorithm: In the first stage, we use a large language model (LLM) to remove clustered anomalous patterns and enhance system rules to improve LLM's understanding of system logs; in the second stage, we utilize a divide-and-conquer strategy that decomposes the remaining contaminated regions into smaller subproblems, allowing each to be effectively purified through the first stage procedure. Our experiments, conducted on two public datasets and one industrial dataset, show that our method significantly removes an average of 98.74% of anomalies while retaining 82.39% of normal samples. Compared to the latest unsupervised log sample selection algorithms, our method achieves F-1 score improvements of 35.7% and 84.11% on the public datasets, and an impressive 149.72% F-1 improvement on the private dataset, demonstrating the effectiveness of our approach.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 16 of its 52 references that are in the map. First posted on arXiv 18 Nov 2025.
Builds on
16 of 52 references.
References · 16
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2025Qwen3 Technical Reportcited by 8,820
- 2018Co-teaching: Robust Training of Deep Neural Networks with Extremely Noisy Labelscited by 1,059
- 2020Combating noisy labels by agreement: A joint training method with co-regularizationcited by 289
- 2021LogBERT: Log Anomaly Detection via BERTcited by 118
- 2021FINE Samples for Learning with Noisy Labelscited by 82
- 2020A Topological Filter for Learning with Label Noisecited by 76
- 2020Loghub: A Large Collection of System Log Datasets for AI-driven Log Analyticscited by 70
- 2022Log-based Anomaly Detection with Deep Learning: How Far Are We?cited by 57
- 2020Self-Attentive Classification-Based Anomaly Detection in Unstructured Logscited by 36
- 2020Multi-Scale One-Class Recurrent Neural Networks for Discrete Event Sequence Anomaly Detectioncited by 19
- 2023CoachLM: Automatic Instruction Revisions Improve the Data Quality in LLM Instruction Tuningcited by 19
4 more
- 2020Robust Learning by Self-Transition for Handling Noisy Labelscited by 18
- 2024LogLM: From Task-based to Instruction-based Automated Log Analysiscited by 15
- 2024Adapting Large Language Models to Log Analysis with Interpretable Domain Knowledgecited by 8
- 2021OneLog: Towards End-to-End Training in Software Log Anomaly Detectioncited by 7
Built on by
Not cited yet.