K⁴: Online Log Anomaly Detection Via Unsupervised Typicality Learning

Weicong Chen, Vikash Singh, Zahra Rahmani, Debargha Ganguly, Mohsen Hariri +1 more
7/26/2025
cs.LGcs.CLcs.DC

No official code found. Best implementation: zazmir/K4-log-anomaly-detection- (0 stars, last commit 2025-08-03).

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 $μ$s.

View on arXivView PDF

Code Implementations(1)

Paper: K4 – Online Log Anomaly Detection via Unsupervised Typicality Learning

00Aug 3, 20251 years ago
log-anomaly-detectiononline-detectionrepresentation-level-typicality-estimationunsupervised-learning

Similar Papers

Cite this paper

@article{chen2025online,
  title  = {K⁴: Online Log Anomaly Detection Via Unsupervised Typicality Learning},
  author = {Weicong Chen and Vikash Singh and Zahra Rahmani and Debargha Ganguly and Mohsen Hariri and Vipin Chaudhary},
  year   = {2025},
  eprint = {2507.20051},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.20051v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.20051.svg)](https://codeofpaper.com/paper/2507.20051)

Discussion