Too Sure to Be Safe: Model Calibration for Reliable Log Anomaly Detection

Bin Li, Dongdong Wang, Siyang Lu
8/18/2026
cs.LGcs.AIcs.SE

No confident code implementation found for this paper.

Abstract

Online log anomaly detection is critical for maintaining the reliability of large-scale computing systems. Although recent language model-based log anomaly detectors achieve strong detection performance, their confidence estimates remain poorly calibrated.

Show full abstract

We show that these detectors frequently assign excessive confidence to incorrect predictions, particularly for anomalous logs under severe class imbalance. Moreover, confidence on erroneous predictions remains persistently high even when conventional calibration metrics indicate good calibration, creating a critical reliability gap for operational monitoring systems. To address this issue, we propose Log Reconstruction and Distance (LoRD), a lightweight post-hoc calibration framework for reliable log anomaly detection. LoRD learns prediction-route-specific reliability models from latent representations of correctly classified validation samples and estimates prediction reliability through route-wise reconstruction distances. Based on the estimated reliability, LoRD selectively recalibrates high-risk predictions to suppress overconfident errors while preserving reliable predictions. Extensive experiments on four large-scale log benchmark datasets and multiple language model-based detectors demonstrate that LoRD consistently improves confidence reliability and substantially reduces overconfident anomaly-related errors without sacrificing anomaly detection performance.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2026sure,
  title  = {Too Sure to Be Safe: Model Calibration for Reliable Log Anomaly Detection},
  author = {Bin Li and Dongdong Wang and Siyang Lu},
  year   = {2026},
  eprint = {2608.17965},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.17965v4}
}

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/2608.17965.svg)](https://codeofpaper.com/paper/2608.17965)

Discussion