A GNN-Based Log Anomaly Detection Framework with Prompt Learning for Edge Computing
Abstract
System logs have been critical for analyzing the operational status and abnormal behavior of highly distributed and heterogeneous edge computing nodes. In edge environments, logs exhibit cross-event and cross-field structural interactions, making it difficult to uncover potential anomaly patterns from isolated events. Moreover, sparse annotations and varying log formats limit the effectiveness of existing methods. To address these challenges, we propose a graph neural network (GNN) anomaly detection framework with prompt learning. It leverages few-shot prompt learning to automatically extract key fields and constructs a weighted directed graph that jointly models semantic embeddings and temporal dependencies, fully representing the structural interactions and semantic associations across events and fields. Furthermore, the framework performs graph-level anomaly detection by jointly optimizing graph representation learning and classification objective within an enhanced one-class directed graph convolutional network, enabling effective identification of global structural anomaly patterns in log graphs. Experimental results demonstrate that the proposed method achieves an average F1-score of 93.3%, surpassing the current state-of-the-art (SOTA) methods by 6.93%.
Fields of Study & Subjects
Software System Performance and Reliability
Cloud Computing and Resource Management
Software-Defined Networks and 5G
Publication details
- Journal / source
- Computers
- Publisher
- MDPI AG
- Volume
- 15
- Issue
- 5
- Pages
- 273–273
- Publication date
- 24 April 2026
- Language
- EN