atlas

Research map / Label-efficient and robust learning / OOD and anomaly detection

LogFormer: A Pre-train and Tuning Pipeline for Log Anomaly Detection

AAAI 2024 · Label-efficient and robust learning › OOD and anomaly detection · approach: Deep one-class and tabular anomaly detection · 70 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes LogFormer, a transformer-based log anomaly detector that pre-trains on a source log domain (BGL) with a Log-Attention module and then transfers to target domains via parallel adapters with frozen encoder weights.

Problem

Log anomaly detection models generalize poorly across log domains and must be retrained for each new domain; log parsing also discards parameter information that may be anomaly-relevant.

Approach

A two-stage pre-train then adapter-tuning pipeline for log anomaly detection, plus Log-Attention that adds learnable biases derived from parsed parameter embeddings to self-attention, so that only a small number of adapter parameters are trained on the target domain.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add source-domain pre-training before target-domain tuning (ablation)LogFormer on BGL · BGLF1Helped
add adapter-based tuning instead of directly fine-tuning the pretrained model (ablation)LogFormer · HDFS and ThunderbirdF1: HDFS: 0.962 -> 0.974 (2 layers); Thunderbird: 0.981 -> 0.987 (2 layers)Helped
add Log-Attention to encode information removed by parsing (ablation)LogFormer_S · HDFS, BGL, and ThunderbirdF1: HDFS: 0.911 -> 0.952; BGL: 0.943 -> 0.974; Thunderbird: 0.935 -> 0.962Helped
increase adapter-tuning encoder layers from 1 to 4 (ablation)LogFormer · HDFS and ThunderbirdF1: HDFS: 0.957 -> 0.981; Thunderbird: 0.972 -> 0.998Helped
increase direct fine-tuning encoder layers from 2 to 4 (ablation)LogFormer_P · HDFSF1: 0.962 -> 0.961No clear effect
increase direct fine-tuning encoder layers from 2 to 4 (ablation)LogFormer_P · ThunderbirdF1: 0.981 -> 0.980No clear effect
replace the parallel adapter with a serial adapter (ablation)LogFormer · HDFS, BGL, and ThunderbirdF1: HDFS: 0.980 -> 0.982; BGL: 0.969 -> 0.971; Thunderbird: 0.988 -> 0.992Mixed
replace the parallel adapter with LoRA (ablation)LogFormer · HDFS, BGL, and ThunderbirdF1: HDFS: 0.980 -> 0.981; BGL: 0.969 -> 0.972; Thunderbird: 0.988 -> 0.993Mixed
use adapter-based tuning rather than training from scratch (ablation)LogFormer on Thunderbird with 5k training examples · Thunderbird low-resource settingF1: 34% improvementsHelped
use BGL rather than Thunderbird as the pre-training source (ablation)LogFormer · HDFS and Thunderbird target domainsconvergence speedHelped
add Chain-of-Thought prompting to ChatGPT (ablation)ChatGPT · HDFS, BGL, and ThunderbirdF1: HDFS: 0.78 -> 0.85; BGL: 0.74 -> 0.83; Thunderbird: 0.81 -> 0.88Helped

Surprising findings

Limitations

Experimental setup

Datasets: HDFS BGL Thunderbird GAIA

Benchmarks: HDFS BGL Thunderbird GAIA

Metrics: Precision Recall F1 score training time testing time

Baselines: SVM DeepLog LogAnomaly LogRobust PLELog ChatGPT

Builds on: Sentence-BERT Drain Parallel adapter LoRA DeepLog

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy