Skip to main content
QUICK REVIEW

[Paper Review] LogLAB: Attention-Based Labeling of Log Data Anomalies via Weak Supervision

Thorsten Wittkopp, Philipp Wiesner|arXiv (Cornell University)|Nov 2, 2021
Software System Performance and ReliabilityComputer Science34 references7 citations
TL;DR

LogLAB is a weakly supervised, attention-based deep learning model that automates log anomaly labeling using only rough failure time windows from monitoring systems. It achieves F1-scores above 0.98 across three datasets even with large time window inaccuracies, outperforming nine baselines through a custom loss function that handles class imbalance and noisy labels.

ABSTRACT

With increasing scale and complexity of cloud operations, automated detection of anomalies in monitoring data such as logs will be an essential part of managing future IT infrastructures. However, many methods based on artificial intelligence, such as supervised deep learning models, require large amounts of labeled training data to perform well. In practice, this data is rarely available because labeling log data is expensive, time-consuming, and requires a deep understanding of the underlying system. We present LogLAB, a novel modeling approach for automated labeling of log messages without requiring manual work by experts. Our method relies on estimated failure time windows provided by monitoring systems to produce precise labeled datasets in retrospect. It is based on the attention mechanism and uses a custom objective function for weak supervision deep learning techniques that accounts for imbalanced data. Our evaluation shows that LogLAB consistently outperforms nine benchmark approaches across three different datasets and maintains an F1-score of more than 0.98 even at large failure time windows.

Motivation & Objective

  • To address the lack of labeled log data for training supervised anomaly detection models.
  • To automate log message labeling without expert-annotated ground truth, reducing reliance on costly manual labeling.
  • To develop a method that leverages approximate failure time windows from monitoring systems as weak supervision.
  • To improve performance on imbalanced log anomaly labeling by designing a custom loss function that accounts for noisy and inaccurate labels.
  • To evaluate LogLAB against nine baselines across three real-world log datasets under varying levels of labeling uncertainty.

Proposed method

  • LogLAB uses a transformer-based encoder with self-attention to process tokenized log messages.
  • Log messages are tokenized and embedded using learned embeddings, with placeholders replacing sensitive values like hex numbers and timestamps.
  • The model predicts an anomaly score per log message using a feed-forward head on the [CLS] token representation.
  • A custom objective function combines L2 loss for positive samples and inverse-normalized L2 loss for unlabeled samples to handle class imbalance.
  • The loss function is defined as: (1/m) * Σ[(1−ỹi)*||zi||² + ỹi * (|P|/(|P|+|U|))² / ||zi||], where ỹi is the inaccurate label and zi is the model output.
  • The method treats the problem as PU learning, where positive (P) samples are logs outside failure windows and unlabeled (U) samples are logs within them.

Experimental results

Research questions

  • RQ1Can log anomaly labeling be automated using only failure time window estimates from monitoring systems?
  • RQ2How does LogLAB perform compared to established text classification and anomaly detection methods under weak supervision?
  • RQ3To what extent does the custom loss function improve performance on imbalanced, weakly labeled log data?
  • RQ4How robust is LogLAB to increasing uncertainty in failure time window estimates?
  • RQ5Can the model maintain high F1-score even when the majority of samples are noisy or falsely labeled as abnormal?

Key findings

  • LogLAB achieves an F1-score of 0.9995 on the Thunderbird dataset at δ = ±1000ms, significantly outperforming the next best baseline (0.3440).
  • On the BGL dataset, LogLAB maintains an F1-score of 0.9902 at δ = ±15000ms, while other methods drop below 0.98.
  • For the Spirit dataset, LogLAB achieves 0.9825 F1-score at δ = ±15000ms, outperforming the next best method by over 0.46 points.
  • Across all datasets and time windows, LogLAB consistently maintains an F1-score above 0.98, even when the unlabeled set (U) contains up to 3.26 million samples.
  • The custom loss function effectively mitigates performance degradation from class imbalance and noisy labels, enabling stable performance under increasing labeling uncertainty.
  • LogLAB’s performance remains robust even when failure time windows expand to 30 seconds, demonstrating strong generalization to real-world monitoring inaccuracies.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.