paper-with-me

홈 › Papers

ContraLog: Log File Anomaly Detection with Contrastive Learning and Masked Language Modeling

2026-02-03 · Simon Dietz, Kai Klede, An Nguyen, Bjoern M Eskofier arxiv

Log files record computational events that reflect system state and behavior, making them a primary source of operational insights in modern computer systems. Automated anomaly detection on logs is therefore critical, yet most established methods rely on log parsers that collapse messages into discrete templates, discarding variable values and semantic content. We propose ContraLog, a parser-free and self-supervised method that reframes log anomaly detection as predicting continuous message embeddings rather than discrete template IDs. ContraLog combines a message encoder that produces rich embeddings for individual log messages with a sequence encoder to model temporal dependencies within sequences. The model is trained with a combination of masked language modeling and contrastive learning to predict masked message embeddings based on the surrounding context. Experiments on the HDFS, BGL, and Thunderbird benchmark datasets empirically demonstrate effectiveness on complex datasets with diverse log messages. Additionally, we find that message embeddings generated by ContraLog carry meaningful information and are predictive of anomalies even without sequence context. These results highlight embedding-level prediction as an approach for log anomaly detection, with potential applicability to other event sequences.

📄 PDF Abstract BibTeX arXiv:2602.03678

Code (0)

등록된 구현이 없습니다.

Tasks

Contrastive LearningAnomaly Detection

Similar Papers 제목 키워드 기반

Masked Contrastive Learning for Anomaly Detection

2021-05-18 · Hyunsoo Cho, Jinseok Seol, Sang-goo Lee

Detecting anomalies is one fundamental aspect of a safety-critical software system, however, it remains a long-standing problem. Numerous branches of works have been proposed to alleviate the complication and have demons…

Anomaly DetectionContrastive LearningSelf-Supervised Learning

Anomaly Detection for Tabular Data with Internal Contrastive Learning

2021-09-29 · ICLR 2022 4 · Tom Shenkar, Lior Wolf

We consider the task of finding out-of-class samples in tabular data, where little can be assumed on the structure of the data. In order to capture the structure of the samples of the single training class, we learn map…

Anomaly DetectionContrastive Learning

Masked Diffusion Modeling for Anomaly Detection

2026-05-28 · Lixing Zhang, Yuchen Liang, Liyan Xie arxiv

Anomaly detection aims to identify samples that deviate from the nominal data distribution and is central to many safety-critical applications. However, developing effective anomaly detection methods for categorical, mix…

Anomaly Detection

Unmasking Anomalies in Road-Scene Segmentation

2023-07-25 · ICCV 2023 1 · Shyam Nandan Rai, Fabio Cermelli, Dario Fontanel, Carlo Masone 외

Anomaly segmentation is a critical task for driving applications, and it is approached traditionally as a per-pixel classification problem. However, reasoning individually about each pixel without considering their conte…

Anomaly DetectionAnomaly SegmentationClassificationContrastive Learning+4

Enhancing Claim Classification with Feature Extraction from Anomaly-Detection-Derived Routine and Peculiarity Profiles

2022-09-26 · Francis Duval, Jean-Philippe Boucher, Mathieu Pigeon

Usage-based insurance is becoming the new standard in vehicle insurance; it is therefore relevant to find efficient ways of using insureds' driving data. Applying anomaly detection to vehicles' trip summaries, we develop…

Anomaly Detection