English

Anomaly Detection with Test Time Augmentation and Consistency Evaluation

Computer Vision and Pattern Recognition 2022-06-07 v1 Artificial Intelligence

Abstract

Deep neural networks are known to be vulnerable to unseen data: they may wrongly assign high confidence stcores to out-distribuion samples. Recent works try to solve the problem using representation learning methods and specific metrics. In this paper, we propose a simple, yet effective post-hoc anomaly detection algorithm named Test Time Augmentation Anomaly Detection (TTA-AD), inspired by a novel observation. Specifically, we observe that in-distribution data enjoy more consistent predictions for its original and augmented versions on a trained network than out-distribution data, which separates in-distribution and out-distribution samples. Experiments on various high-resolution image benchmark datasets demonstrate that TTA-AD achieves comparable or better detection performance under dataset-vs-dataset anomaly detection settings with a 60%~90\% running time reduction of existing classifier-based algorithms. We provide empirical verification that the key to TTA-AD lies in the remaining classes between augmented features, which has long been partially ignored by previous works. Additionally, we use RUNS as a surrogate to analyze our algorithm theoretically.

Keywords

Cite

@article{arxiv.2206.02345,
  title  = {Anomaly Detection with Test Time Augmentation and Consistency Evaluation},
  author = {Haowei He and Jiaye Teng and Yang Yuan},
  journal= {arXiv preprint arXiv:2206.02345},
  year   = {2022}
}
R2 v1 2026-06-24T11:39:59.979Z