# LogCDM: Interpretable Log Anomaly Detection via Behavioral Graph Drift and Adaptive Signal Fusion

DevFeed: [LogCDM: Interpretable Log Anomaly Detection via Behavioral Graph Drift and Adaptive Signal Fusion](<https://devfeed.tech/articles/logcdm-interpretable-log-anomaly-detection-via-behavioral-graph-drift-and-adaptive-signal-fusion-126309.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.12775>)

Author: Suryansh Talukdar, Taha Sarwat, Jin Soung Yoo

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [Detection engineering](<https://devfeed.tech/topics/detection-engineering.md>), [model architecture](<https://devfeed.tech/topics/model-architecture.md>), [graph theory](<https://devfeed.tech/topics/graph-theory.md>), [Cloud Logging](<https://devfeed.tech/topics/cloud-logging.md>)

Tags: [adaptive](<https://devfeed.tech/tags/adaptive.md>), [alarm](<https://devfeed.tech/tags/alarm.md>), [anomaly-detection](<https://devfeed.tech/tags/anomaly-detection.md>), [attention](<https://devfeed.tech/tags/attention.md>), [bayes](<https://devfeed.tech/tags/bayes.md>), [bert](<https://devfeed.tech/tags/bert.md>), [covariance](<https://devfeed.tech/tags/covariance.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [dataset](<https://devfeed.tech/tags/dataset.md>), [deploy](<https://devfeed.tech/tags/deploy.md>), [detection](<https://devfeed.tech/tags/detection.md>), [distribution](<https://devfeed.tech/tags/distribution.md>), [edge](<https://devfeed.tech/tags/edge.md>), [embedding](<https://devfeed.tech/tags/embedding.md>), [event](<https://devfeed.tech/tags/event.md>), [fusion](<https://devfeed.tech/tags/fusion.md>), [gate](<https://devfeed.tech/tags/gate.md>), [graph](<https://devfeed.tech/tags/graph.md>), [log](<https://devfeed.tech/tags/log.md>), [signal](<https://devfeed.tech/tags/signal.md>)

## AI overview

LogCDM detects anomalous log sessions using three fused signals: a small causal Transformer's next-event surprise, the difference between session and normal-reference transition-graph embeddings, and a transition-drift statistic. The drift is expressed as a frequency-weighted chi-squared divergence, enabling length-standardized scoring and per-edge explanations. A sigmoid gate combines the signals; under a shared-covariance Gaussian model, it is the Bayes posterior. The 8.1-8.8M-parameter model runs without a GPU at inference and scores sessions in 5.5-10.5 ms on a CPU. Reported F1 scores are 0.984 on HDFS, 0.870 on chronologically split BGL, and 0.850 on Thunderbird--within 0.013-0.12 of an 8.1B-parameter LLM evaluated under the same protocol. Structural signals add 0.025-0.030 F1 on BGL and Thunderbird but almost nothing on HDFS.

## Source excerpt

arXiv:2611.12775v1 Announce Type: new Abstract: Log-based anomaly detection is increasingly dominated by large pretrained models, from BERT-scale encoders to 8B-parameter language models, which require GPUs at inference time and are difficult to deploy on the monitoring nodes where logs are produced. We present LogCDM, a compact detector that scores each log session using three complementary signals: the next-event surprise of a small causal Transformer, the distance between a graph-attention embedding of the session's own transition graph and that of a normal reference graph, and a transition-drift statistic that we show is exactly a frequency-weighted chi-squared divergence between transition kernels. The divergence view yields an asymptotic null distribution, a length-standardized score, and a per-edge decomposition that explains each alarm. A sigmoid gate fuses the three signals; under a shared-covariance Gaussian model, this gate is the Bayes posterior, and its learned weights indicate which signal each dataset relies on. With 8.1-8.8M parameters and no GPU required at inference, LogCDM reaches F1 scores of 0.984 on HDFS, 0.870 on chronologically split BGL, and 0.850 on Thunderbird, within 0.013-0.12 of an 8.1B-parameter LLM detector evaluated under the same protocol and above all compact baselines on BGL. It scores a session in 5.5-10.5 ms on a CPU. Ablations show that the structural signals add 0.025-0.030 F1 on BGL and Thunderbird but almost nothing on HDFS, consistent with the learned fusion weights.