A generalizable BERT-GNN hybrid framework for unified log anomaly detection

Logs are essential for monitoring large-scale distributed systems, yet their volume and structural heterogeneity pose substantial challenges for automated analysis. Conventional approaches often struggle to jointly model semantic information and temporal dependencies, which limits feature generalization across diverse environments. We propose Log2graphs, a generalizable framework for unified, unsupervised log analysis. Its core component, the Multi-Graph Autoencoder (MGAE), integrates Bidirectional Encoder Representations from Transformers (BERT) with a Graph Neural Network (GNN). Within MGAE, BERT extracts contextual semantic embeddings from raw log messages, while the GNN captures the chronological and topological correlations among log events. By reconstructing complex multi-graph structures, MGAE transforms sequential dependencies into low-dimensional representations without relying on labeled data. Experiments on widely used benchmark datasets, such as HDFS and BGL, show that the features extracted by MGAE improve downstream anomaly detection performance, outperforming baselines including LogFiT and LogFormer with F1 score gains of up to 11%. To extend benchmark validation to real-world settings with limited labeled datasets (e.g., HPC, Proxifier, and Zookeeper), we introduce a rigorous evaluation strategy using three domain-adaptive, label-free clustering metrics: Silhouette Score, Davies-Bouldin Index, and Calinski-Harabasz Index. This strategy enables quantitative assessment of the learned feature space in unsupervised environments and reduces reliance on ground-truth logs.

Authors

Institutions

Publication Details

Journal
Digital Communications and Networks
Published
2026-04-01
DOI
https://doi.org/10.1016/j.dcan.2026.04.001
Primary Topic
Software System Performance and Reliability
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A generalizable BERT-GNN hybrid framework for unified log anomaly detection

Caihong Wang, Yongsheng Zhao, Du Xu
Digital Communications and Networks
Software System Performance and Reliability
article

A generalizable BERT-GNN hybrid framework for unified log anomaly detection

Caihong Wang, Yongsheng Zhao, Du Xu
article en

Abstract

Logs are essential for monitoring large-scale distributed systems, yet their volume and structural heterogeneity pose substantial challenges for automated analysis. Conventional approaches often struggle to jointly model semantic information and temporal dependencies, which limits feature generalization across diverse environments. We propose Log2graphs, a generalizable framework for unified, unsupervised log analysis. Its core component, the Multi-Graph Autoencoder (MGAE), integrates Bidirectional Encoder Representations from Transformers (BERT) with a Graph Neural Network (GNN). Within MGAE, BERT extracts contextual semantic embeddings from raw log messages, while the GNN captures the chronological and topological correlations among log events. By reconstructing complex multi-graph structures, MGAE transforms sequential dependencies into low-dimensional representations without relying on labeled data. Experiments on widely used benchmark datasets, such as HDFS and BGL, show that the features extracted by MGAE improve downstream anomaly detection performance, outperforming baselines including LogFiT and LogFormer with F1 score gains of up to 11%. To extend benchmark validation to real-world settings with limited labeled datasets (e.g., HPC, Proxifier, and Zookeeper), we introduce a rigorous evaluation strategy using three domain-adaptive, label-free clustering metrics: Silhouette Score, Davies-Bouldin Index, and Calinski-Harabasz Index. This strategy enables quantitative assessment of the learned feature space in unsupervised environments and reduces reliance on ground-truth logs.

Digital Communications and Networks
University of Electronic Science and Technology of China (CN), Sichuan University of Science and Engineering (CN)
Openalex Percentile: Top 17%
Software System Performance and Reliability
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.