Skip to content
AI.info

Research

A unified framework for detecting point and collective anomalies in operating system logs via collaborative transformers

Overview Research area: Automated log-based anomaly detection for operating systems, approached as a multimodal deep learning problem using collaborative transformer architectures. Technical level: Ad

A unified framework for detecting point and collective anomalies in operating system logs via collaborative transformers
arXiv
2512.23380
Published
2025-12-29
Authors
Mohammad Nasirzadeh, Jafar Tahmoresnezhad, Parviz Rashidi-Khazaee

AI summary

Overview

Research area: Automated log-based anomaly detection for operating systems, approached as a multimodal deep learning problem using collaborative transformer architectures.

Technical level: Advanced. The paper assumes familiarity with transformer architectures, attention mechanisms, multimodal sentiment analysis (MSA), and deep learning for log analysis.

Scope: The paper proposes CoLog, a unified framework that treats log anomaly detection as a multimodal sentiment analysis problem and simultaneously detects both point and collective anomalies across seven benchmark datasets.

What This Paper Is About

Operating system logs contain two complementary kinds of information: the content of each individual log record (the "semantic modality") and the sequence of records surrounding it (the "sequence modality"). Existing methods mostly use only one of these, while multimodal methods use fusion strategies that struggle to model the interactions between modalities. The goal of this work is to build a single framework that learns how these modalities interact in order to detect both isolated (point) anomalies and patterns of anomalous activity over time (collective anomalies), a pairing that the authors state no prior log anomaly detection work addresses.

Key Contributions

  1. Formulation as multimodal sentiment analysis. CoLog is presented as the first framework to formulate log anomaly detection as a multimodal sentiment analysis problem, where anomalies are interpreted as negative sentiments and normal samples as positive sentiments, enabling detection of both point and collective anomalies in a unified manner.

  2. Collaborative transformer architecture. The framework uses collaborative transformers with multi-head impressed attention and a modality adaptation layer, letting semantic and sequence modalities encode each other and interact while handling the heterogeneity that those interactions produce.

  3. Balancing mechanism for modality contributions. CoLog introduces a mechanism that adaptively weights the contribution of each modality, so modalities with inherent differences are represented in the same representation space rather than one dominating the other.

  4. Broad empirical evaluation and released implementation. CoLog is assessed on seven benchmark datasets for log-based anomaly detection, reported as state-of-the-art, with the implementation released at https://github.com/NasirzadehMoh/CoLog and findings and specialized services also available through the Alarmif website.

Main Findings

  • Aggregate detection performance: Across seven benchmark datasets for log-based anomaly detection, CoLog achieves a mean precision of 99.63%, a mean recall of 99.59%, and a mean F1 score of 99.61% when detecting both point and collective anomalies. The paper reports these means only and does not report per-dataset scores in the provided content.

  • Unified point and collective detection: Existing log anomaly detection works focus on only one type of log anomaly. The paper states that only two techniques outside the log anomaly detection area aim to detect point and collective anomalies in a unified framework: one based on a temporal convolutional network (TCN) with fixed-length sequence anomaly scoring, which may miss certain collective anomalies due to its predetermined sequence length, and one based on an improved local outlier factor (ILOF) that partitions residual sequences into variable-length subsequences using identified point anomalies as boundaries, which the authors say can produce false alarms in long sequences. Neither, the authors state, explicitly learns relationships between modalities.

  • Documented weaknesses of prior multimodal fusion: The paper catalogues nine challenges arising from existing early, intermediate, late fusion, and separate-model approaches: high dimensionality, noise sensitivity, heightened data complexity, compatibility of features, heightened network complexity, balancing contributions, lack of shared information, redundancy, and limited improvement. Early fusion is associated with all but the network-complexity, shared-information, redundancy, and limited-improvement issues; late fusion and separate models are associated with network complexity, lack of shared information, redundancy, and limited improvement.

  • Supervised design avoids error accumulation: Because CoLog is a supervised approach, the paper states it does not face the challenge of accumulating errors, in contrast to methods that build on anomaly scoring.

  • Claimed advantage over unimodal and rule-based methods: Rule-based and regular-expression approaches cannot detect cases where individual log entries appear normal but the whole sequence is abnormal, and machine learning-based approaches cannot track temporal information and require human feature extraction. CoLog is described as not relying on domain expertise or predefined rules and as having a notable ability to extract temporal information.

Methodology in Plain English

The authors treat a log file as having two views of the same data. One view is the text of each individual log entry. The other view is the surrounding sequence of entries, which supplies the context and background for that entry. Two identical entries can appear in different contexts, and the sequence view is what distinguishes them.

CoLog builds both views as "modalities" and then lets them encode each other rather than handling them separately and gluing the results together at the end. A guided-attention mechanism is used so each modality is encoded collaboratively with the others. Transformer blocks then process the output, and the resulting feature vectors from each modality are projected into a higher-dimensional latent space where fusion happens. Because different modalities produce representations with different statistical properties, a modality adaptation layer adjusts the representations from each log modality before or during fusion, and a balancing mechanism controls how much each modality contributes so that neither dominates. The whole pipeline is trained end-to-end and supervised, with anomalies treated as the negative class in a sentiment-style formulation.

Why This Matters

Impact on research. The paper reframes log anomaly detection as a multimodal sentiment analysis problem, borrowing an idea from a different field and applying it to security logs. It argues that the common practice of using a single modality discards useful information, and it presents the fusion challenges of prior multimodal work as a structured comparison. It also targets a gap the authors identify: no prior log anomaly detection work handles point and collective anomalies together, and only two works outside the field attempt a unified treatment.

Real-world applications:

  • Cybersecurity: real-time alerts for unidentified threats, cyberattacks, and fraudulent activity.
  • System monitoring: identifying underlying causes of failures and system malfunctions.
  • Operational efficiency: supporting data-driven decisions and defining reaction thresholds.
  • Troubleshooting and preventive maintenance: point anomalies can signal immediate problems such as a sudden malfunction or attack, while collective anomalies can signal steady performance degradation or persistent security threats.

Industry relevance. The paper positions the framework as suitable for cybersecurity, system monitoring, and operational efficiency, and links research to practice through a public implementation and the Alarmif website, which offers associated specialized services.

Future Directions

  • Reducing reliance on labeled data. CoLog is supervised; the paper notes this avoids error accumulation, but the related work section discusses unsupervised, semi-supervised, and self-supervised alternatives. Extending the collaborative transformer approach to those settings is a natural open question.

  • Handling class imbalance explicitly. Class imbalance is listed as a keyword, and prior sentiment-based log methods such as pylogsentiment addressed it with the Tomek link technique. This is an area where the framework's behavior is not detailed in the provided content.

  • Learning modality relations rather than scoring. The two prior unified point-and-collective methods rely on anomaly scores with fixed-length sequences or local outlier factor computations, and the authors criticize both for not explicitly learning relationships among modalities. Whether the collaborative transformer formulation fully resolves those specific failure modes is a question the truncated content does not answer.

  • Generalization across systems and log formats. The paper notes that logs from different systems use distinct terminology and that log formats change as software evolves. The conclusion section states it offers suggestions for future research, but the specific suggestions are not included in the provided content.

Target Audience

Researchers and practitioners working on log-based anomaly detection, cybersecurity monitoring, and AIOps will benefit most. It is also relevant to deep learning researchers interested in multimodal learning and in transferring techniques such as multimodal sentiment analysis and guided attention into new domains. Readers should be comfortable with transformer architectures, attention mechanisms, and evaluation with precision, recall, and F1.

Authors’ abstract

Log anomaly detection is crucial for preserving the security of operating systems. Depending on the source of log data collection, various information is recorded in logs that can be considered log modalities. In light of this intuition, unimodal methods often struggle by ignoring the different modalities of log data. Meanwhile, multimodal methods fail to handle the interactions between these modalities. Applying multimodal sentiment analysis to log anomaly detection, we propose CoLog, a framework that collaboratively encodes logs utilizing various modalities. CoLog utilizes collaborative transformers and multi-head impressed attention to learn interactions among several modalities, ensuring comprehensive anomaly detection. To handle the heterogeneity caused by these interactions, CoLog incorporates a modality adaptation layer, which adapts the representations from different log modalities. This methodology enables CoLog to learn nuanced patterns and dependencies within the data, enhancing its anomaly detection capabilities. Extensive experiments demonstrate CoLog's superiority over existing state-of-the-art methods. Furthermore, in detecting both point and collective anomalies, CoLog achieves a mean precision of 99.63%, a mean recall of 99.59%, and a mean F1 score of 99.61% across seven benchmark datasets for log-based anomaly detection. The comprehensive detection capabilities of CoLog make it highly suitable for cybersecurity, system monitoring, and operational efficiency. CoLog represents a significant advancement in log anomaly detection, providing a sophisticated and effective solution to point and collective anomaly detection through a unified framework and a solution to the complex challenges automatic log data analysis poses. We also provide the implementation of CoLog at https://github.com/NasirzadehMoh/CoLog.

Read the original paper