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

IF 6.3 2区 计算机科学 Q1 TELECOMMUNICATIONS
Digital Communications and Networks Pub Date : 2026-09-01 Epub Date: 2026-04-08 DOI:10.1016/j.dcan.2026.04.001
Caihong Wang, Du Xu, Yongsheng Zhao
{"title":"A generalizable BERT-GNN hybrid framework for unified log anomaly detection","authors":"Caihong Wang,&nbsp;Du Xu,&nbsp;Yongsheng Zhao","doi":"10.1016/j.dcan.2026.04.001","DOIUrl":null,"url":null,"abstract":"<div><div>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.</div></div>","PeriodicalId":48631,"journal":{"name":"Digital Communications and Networks","volume":"12 9","pages":"Pages 1355-1366"},"PeriodicalIF":6.3000,"publicationDate":"2026-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Digital Communications and Networks","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2352864826000477","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/4/8 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"TELECOMMUNICATIONS","Score":null,"Total":0}
引用次数: 0

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.
统一日志异常检测的广义BERT-GNN混合框架
日志对于监视大规模分布式系统是必不可少的,但是它们的数量和结构的异质性给自动化分析带来了实质性的挑战。传统的方法往往难以联合建模语义信息和时间依赖性,这限制了特征在不同环境中的泛化。我们提出Log2graphs,一个统一的、无监督的日志分析的可推广框架。其核心组件多图自编码器(MGAE)集成了来自变压器(BERT)的双向编码器表示和图神经网络(GNN)。在MGAE中,BERT从原始日志消息中提取上下文语义嵌入,而GNN捕获日志事件之间的时间顺序和拓扑相关性。通过重建复杂的多图结构,MGAE将顺序依赖关系转换为低维表示,而不依赖于标记数据。在广泛使用的基准数据集(如HDFS和BGL)上的实验表明,MGAE提取的特征提高了下游异常检测的性能,其F1分数的提高高达11%,优于基线(包括LogFiT和LogFormer)。为了将基准验证扩展到具有有限标记数据集(例如,HPC, Proxifier和Zookeeper)的现实世界设置,我们引入了一种严格的评估策略,使用三个域自适应,无标签聚类指标:Silhouette Score, Davies-Bouldin Index和Calinski-Harabasz Index。该策略可以在无监督环境中对学习到的特征空间进行定量评估,并减少对地面真值日志的依赖。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Digital Communications and Networks
Digital Communications and Networks Computer Science-Hardware and Architecture
CiteScore
12.80
自引率
5.10%
发文量
915
审稿时长
30 weeks
期刊介绍: Digital Communications and Networks is a prestigious journal that emphasizes on communication systems and networks. We publish only top-notch original articles and authoritative reviews, which undergo rigorous peer-review. We are proud to announce that all our articles are fully Open Access and can be accessed on ScienceDirect. Our journal is recognized and indexed by eminent databases such as the Science Citation Index Expanded (SCIE) and Scopus. In addition to regular articles, we may also consider exceptional conference papers that have been significantly expanded. Furthermore, we periodically release special issues that focus on specific aspects of the field. In conclusion, Digital Communications and Networks is a leading journal that guarantees exceptional quality and accessibility for researchers and scholars in the field of communication systems and networks.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书