English

$K^4$: Online Log Anomaly Detection Via Unsupervised Typicality Learning

Machine Learning 2026-05-12 v1 Computation and Language Distributed, Parallel, and Cluster Computing

Abstract

Existing Log Anomaly Detection (LogAD) methods are often slow, dependent on error-prone parsing, and use unrealistic evaluation protocols. We introduce K4K^4, an unsupervised and parser-independent framework for high-performance online detection. K4K^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, K4K^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 μ\mus.

Keywords

Cite

@article{arxiv.2507.20051,
  title  = {$K^4$: 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},
  journal= {arXiv preprint arXiv:2507.20051},
  year   = {2026}
}
R2 v1 2026-07-01T04:20:26.287Z