Introduction
Modern Information and Communication Technology (ICT) systems generate massive amounts of discrete event sequences, such as system logs. Detecting anomalies in these sequences is vital for security and system health. However, this task faces three major hurdles: data imbalance (anomalies are rare), the discrete nature of log events, and the presence of multi-scale patterns where anomalies may manifest at different temporal granularities.
Methodology: The OC4Seq Framework
The authors introduce OC4Seq (One-Class 4 Sequence), which combines Recurrent Neural Networks (RNNs) with a "one-class" classification objective to learn the boundaries of normal behavior without requiring labeled anomaly data.
The framework operates on two primary scales:
- Global Perspective: A Gated Recurrent Unit (GRU) processes the entire sequence to create a single global representation. The model ensures these vectors fall inside a tight hypersphere in the latent space.
- Local Perspective: Simultaneously, the model uses a sliding window to analyze subsequences. A "LocalGRU" ensures that every small window of activity also fits within its own normal hypersphere.
Discrete events are first mapped into a continuous, low-dimensional latent space via event embedding, allowing the model to capture semantic relationships between different log messages.
Experimental Setup
The model was evaluated on three well-known system log benchmarks:
- RUBiS: Logs from an auction site prototype.
- HDFS: Hadoop Distributed File System logs (11M+ messages).
- BGL: BlueGene/L supercomputer logs, featuring a massive vocabulary of over 1,500 unique log keys.
Results and Discussion
OC4Seq consistently outperformed classic baselines and modern deep learning approaches like DeepLog and DeepSVDD. On the challenging BGL dataset, OC4Seq achieved an F1-score of 0.747, significantly higher than Invariant Mining (0.428) and DeepLog (0.326).
Key insights from the evaluation include:
- Scale Robustness: Optimizing for both global and local scales makes the model significantly more robust to different types of anomalies. Visualization of the latent space confirms that normal sequences cluster tightly, while anomalies are scattered on the periphery.
- Architecture Choice: GRUs and LSTMs performed similarly, with GRUs preferred for their lower computational overhead and structural simplicity.
- Hyperparameter Sensitivity: The parameter $\alpha$ balances local vs. global information. As shown in the PR curves, performance is sensitive to this balance, typically requiring a validation set for optimization.
Conclusion
OC4Seq demonstrates the power of multi-scale one-class modeling for discrete sequences. By focusing on the "shape" of normalcy at both macro and micro levels, it provides a practical solution for real-world anomaly detection where attack data is scarce. Future work may explore dynamic hypersphere centers to adapt to evolving system behaviors and reducing dependency on external log parsers.
Summary updated