K^4: Online Log Anomaly Detection via Unsupervised Typicality Learning

3 months ago 2

[Submitted on 26 Jul 2025]

View PDF HTML (experimental)

Abstract:Existing Log Anomaly Detection (LogAD) methods are often slow, dependent on error-prone parsing, and use unrealistic evaluation protocols. We introduce $K^4$, an unsupervised and parser-independent framework for high-performance online detection. $K^4$ transforms arbitrary log embeddings into compact four-dimensional descriptors (Precision, Recall, Density, Coverage) using efficient k-nearest neighbor (k-NN) statistics. These descriptors enable lightweight detectors to accurately score anomalies without retraining. Using a more realistic online evaluation protocol, $K^4$ sets a new state-of-the-art (AUROC: 0.995-0.999), outperforming baselines by large margins while being orders of magnitude faster, with training under 4 seconds and inference as low as 4 $\mu$s.

Submission history

From: Vikash Singh [view email]
[v1] Sat, 26 Jul 2025 20:24:51 UTC (7,567 KB)

Read Entire Article