NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PULL: Reactive Log Anomaly Detection Based On Iterative PU Learning

Thorsten Wittkopp, Dominik Scheinert, Philipp Wiesner, Alexander Acker, Odej Kao

TL;DR

This paper introduces PULL, a novel method for detecting anomalies in IT service logs by leveraging "weak supervision" – specifically, imprecise time windows where failures are suspected, rather than perfectly labeled data. PULL uses an iterative learning approach with a Transformer-based model and a custom objective function to achieve state-of-the-art performance, outperforming ten baselines with F1-scores exceeding 0.99.

What Problem Does This Paper Address?

Modern IT services are incredibly complex, making it challenging to detect and diagnose failures. While log data is a rich source of information for troubleshooting, manually analyzing it is time-consuming and often infeasible. Existing anomaly detection methods that achieve high accuracy typically require meticulously labeled training data, which is expensive and difficult to acquire in practice. This paper tackles this challenge by proposing a reactive anomaly detection system that doesn't need perfect labels, instead relying on approximate failure time windows provided by monitoring systems. This approach is particularly valuable for reliability engineers who need to understand past failures to improve system stability.

Methods

PULL employs a multi-stage pipeline for anomaly detection:

  1. Tokenization: Log messages are broken down into individual tokens. Special tokens are introduced for numerical values and hexadecimal strings, and a [CLS] token is prepended to each sequence.
  2. Embedding: Tokens are converted into dense vector representations (embeddings).
  3. Transformer Encoder: A Transformer encoder architecture, enhanced with multi-head self-attention and positional encoding, processes the embeddings. This architecture is adept at capturing contextual relationships between tokens.
  4. Anomaly Score Calculation: The model outputs a vector representation for each log message. The anomaly score is derived from the Euclidean distance of this vector to the zero vector. Larger distances indicate a higher likelihood of anomaly.
  5. Iterative PU Learning: This is the core innovation. Instead of directly labeling based on anomaly scores, PULL uses a PU learning (Positive and Unlabeled) framework.
  6. Weak Supervision: Log messages within the estimated failure time windows are treated as "unlabeled" (U), meaning they are suspected to contain anomalies but aren't definitively labeled as such. All other logs are treated as "positive" (P), meaning they are assumed to be normal.
  7. Novel Objective Function: A custom loss function is designed to handle imbalanced data and the inaccurate labels. It aims to minimize errors for known positive (normal) samples and maximize anomaly scores for unlabeled samples.
  8. Iterative Training: The model is trained iteratively. In each iteration, the anomaly scores from the previous iteration are "smoothed" (using a hyperbolic tangent function after median subtraction) and then used as the inaccurate labels for training the next model. This process refines the model's understanding of anomalies over time.

Datasets

The authors evaluated PULL on three real-world log datasets:

  • BGL: Collected from a BlueGene/L supercomputer system.
  • Spirit: Collected from a Spirit supercomputer system.
  • Thunderbird: Collected from a Thunderbird supercomputer system.

These datasets were originally labeled by experts. For evaluation, the authors created new datasets by defining "unlabeled" (U) sets that included abnormal log events and their surrounding events within varying time windows (±1000ms, ±5000ms, ±10000ms, ±20000ms). The remaining logs formed the "positive" (P) set. The Thunderbird dataset is noted as particularly challenging due to a large U class even for small time windows.

Key Insights and Ideas

  • Leveraging Imprecise Time Windows: The paper demonstrates that even rough estimates of failure times can be highly effective for anomaly detection, significantly reducing the need for perfect, manually labeled data.
  • Iterative Refinement is Crucial: The iterative training strategy is key to PULL's success. It allows the model to progressively refine its understanding of anomalies by learning from its own predictions, effectively correcting initial misclassifications.
  • Transformer's Suitability for Logs: The Transformer architecture, with its attention mechanism, proves effective at understanding the contextual meaning of log messages, even when they are unstructured.
  • PU Learning for Real-World Scenarios: PU learning is a practical approach for scenarios where obtaining perfectly labeled data is prohibitive, making it highly relevant for industrial applications.

Key Results

PULL consistently outperformed ten benchmark methods (including DeepLog, LogRobust, SVM, PCA, and Random Forest) across all evaluated datasets and time windows.

  • High F1-Scores: PULL achieved F1-scores exceeding 0.99 in many scenarios, even with imprecise failure time windows of up to ±10000ms.
  • Robustness to Window Size: While performance generally decreased for larger time windows (larger U sets), PULL maintained a significantly higher performance than baselines. For instance, on the Thunderbird dataset with ±1000ms windows, PULL achieved an F1-score of 0.999, while other methods struggled.
  • Iterative Improvement: The iterative training strategy demonstrably improved PULL's performance, while some baselines either degraded or showed no change.

Limitations and Future Work

  • Assumption of Normal Data: The method assumes that at least 50% of the data is normal. While this is a common assumption in anomaly detection, extreme cases with very few normal samples might pose challenges.
  • Rough Estimates of Failure Times: While PULL works well with imprecise time windows, the quality of these estimates from monitoring systems directly impacts performance.
  • Future Work: The authors suggest incorporating additional data sources to enrich the weakly labeled data and further developing the method to not only localize anomalies but also identify their underlying root causes.

Summary updated

BibTeX
@inproceedings{wittkopp2023pull,
  author = {Thorsten Wittkopp and Dominik Scheinert and Philipp Wiesner and Alexander Acker and Odej Kao},
  title = {{PULL: Reactive Log Anomaly Detection Based On Iterative PU Learning}},
  booktitle = {HICSS},
  year = {2023},
  url = {https://openreview.net/forum?id=9G43u5rH9h},
}
Figure