LogMT: A Self-supervised Log Anomaly Detection Method Based on Multi-Tasks

With the rapid development of software systems, logs have become essential data for monitoring the security and stability of computer systems. Current log anomaly detection methods usually rely on large volumes of labeled data, which can lead to class imbalance and fail to fully leverage the features of log sequences. To address these problems, we propose a novel anomaly detection model LogMT, which performs anomaly detection based on multiple self-supervised tasks. LogMT uses Transformer encoder to extract feature vectors from log event sequences and trains the model through self-supervised tasks for anomaly detection. To better capture the bidirectional context information of log sequences, we introduce the dynamic masked log templates prediction task, which enhances the contextual understanding of the model through predicting masked log templates in the log sequence. In the minimization of outlier factor task, we map log sequence features to a high-dimensional space and cluster similar normal log sequences together, improving the model's capability to distinguish anomaly features. Finally, we conducted extensive experiments on three public datasets, and the experimental results demonstrate the effectiveness and superiority of LogMT.

Authors

Institutions

Publication Details

Published
2025-05-05
DOI
https://doi.org/10.1109/cscwd64889.2025.11033424
Primary Topic
Anomaly Detection Techniques and Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

LogMT: A Self-supervised Log Anomaly Detection Method Based on Multi-Tasks

Wenhui Xie, Qingjian Ni
Anomaly Detection Techniques and Applications
article

LogMT: A Self-supervised Log Anomaly Detection Method Based on Multi-Tasks

Wenhui Xie, Qingjian Ni
article en

Abstract

With the rapid development of software systems, logs have become essential data for monitoring the security and stability of computer systems. Current log anomaly detection methods usually rely on large volumes of labeled data, which can lead to class imbalance and fail to fully leverage the features of log sequences. To address these problems, we propose a novel anomaly detection model LogMT, which performs anomaly detection based on multiple self-supervised tasks. LogMT uses Transformer encoder to extract feature vectors from log event sequences and trains the model through self-supervised tasks for anomaly detection. To better capture the bidirectional context information of log sequences, we introduce the dynamic masked log templates prediction task, which enhances the contextual understanding of the model through predicting masked log templates in the log sequence. In the minimization of outlier factor task, we map log sequence features to a high-dimensional space and cluster similar normal log sequences together, improving the model's capability to distinguish anomaly features. Finally, we conducted extensive experiments on three public datasets, and the experimental results demonstrate the effectiveness and superiority of LogMT.

Southeast University (CN)
Openalex Percentile: Top 93%
Anomaly Detection Techniques and Applications
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.