Rethinking Unsupervised Outlier Detection via Multiple Thresholding

Zhonghang Liu, Panzhong Lu, Guoyang Xie, Zhichao Lu, Wen-Yan Lin · OpenReview

Abstract

In unsupervised image outlier detection (UOD), the primary focus has traditionally been on developing robust outlier scoring functions. However, the subsequent task of thresholding these scores to produce binary labels remains an ill-posed problem due to the non-separable nature of score distributions. This lack of reliable labels prevents detectors from leveraging self-supervision to refine feature representations, often leading to a "mean-shift" problem where outliers contaminate the perceived normal manifold. To address this, we introduce the Multiple Thresholding (Multi-T) module. Multi-T generates two distinct thresholds to isolate high-confidence inliers and outliers from unlabeled datasets. By utilizing uncontaminated inliers to define the manifold and adaptive outliers to enhance feature representation, Multi-T significantly improves existing scoring methods. Notably, this module enables a naive distance-based method to achieve state-of-the-art performance while maintaining high computational efficiency.

Introduction

Unsupervised Outlier Detection (UOD) is the process of identifying anomalous data points within a dataset without the aid of prior labels. While significant research has been dedicated to creating sophisticated scoring functions—ranking points by their "outlier-ness"—the transition from scores to actionable labels (Inlier vs. Outlier) is frequently overlooked.

The challenge lies in the overlap between inlier and outlier distributions. A single, static threshold often fails to capture the nuances of the data, leading to contamination. When outliers are misidentified as inliers, they distort the calculated "normal" manifold, a phenomenon known as the mean-shift problem. Furthermore, without discrete labels during the training phase, models cannot utilize self-supervised learning to improve their underlying feature representations.

The Multi-T Module

The proposed Multiple Thresholding (Multi-T) module is a training-free, plug-and-play enhancement designed to bridge the gap between scoring and labeling. Rather than searching for a single optimal boundary, Multi-T identifies two specific thresholds:

1. Uncontaminated Inliers ($\phi_{in}$)

To establish a clean baseline for "normal" data, Multi-T employs an iterative process. It first sorts the initial outlier scores and applies a linear fit to the distribution to identify the primary inlier cluster. By applying the 3-sigma rule, the module filters out potential noise and outliers until it converges on a set of highly certain, "uncontaminated" inliers. This clean subset is then used to define a more accurate manifold, mitigating the mean-shift problem.

2. Adaptive Outliers ($\phi_{out}$)

Determining the outlier threshold requires an estimation of the outlier ratio within the dataset. Multi-T achieves this by comparing two different data normalization techniques:

  • Ergodic-set Normalization: A stable method that remains consistent regardless of the outlier ratio.
  • Shell Normalization: A method highly sensitive to the presence of outliers.

By calculating the Pearson correlation between the rankings produced by these two methods, the system can implicitly estimate the outlier ratio and set an adaptive threshold ($\phi_{out}$) that adjusts to the specific characteristics of the dataset.

Experimental Evaluation

The effectiveness of Multi-T was evaluated across a diverse range of benchmarks, utilizing both raw pixels and deep features (ResNet-50 and CLIP):

  • Grayscale Datasets: MNIST, Fashion-MNIST.
  • Object/RGB Datasets: STL-10, CIFAR-10, CIFAR-100, and the Internet dataset.
  • Scene Datasets: MIT-Places-Small.

Experiments were conducted across varying outlier contamination ratios (5% to 40%) to test the robustness of the adaptive thresholding logic.

Key Results and Insights

Performance and State-of-the-Art Status

Multi-T acts as a significant force multiplier for existing algorithms. For instance, integrating Multi-T into DeepSVDD improved its AUC on the STL-10 dataset from 0.622 to 0.925. Perhaps most surprisingly, a "naive" distance-to-mean method equipped with Multi-T outperformed complex deep-learning models like Isolation Forest (IF), Local Outlier Factor (LOF), and ECOD, establishing a new state-of-the-art (SOTA) for the tested benchmarks.

Computational Efficiency

Because Multi-T is training-free and relies on statistical operations, it is exceptionally fast. In benchmarks processing 10,000 ResNet-50 samples, Multi-T completed the task in 1.2 seconds on a CPU. In contrast, some baseline deep learning methods, such as LVAD, required over 10 minutes (645 seconds) to process the same data.

The Importance of Labeling

The success of Multi-T suggests that the primary bottleneck in UOD has not been the complexity of neural networks, but rather the logic used for thresholding. By generating high-confidence pseudo-labels, Multi-T allows for a form of self-supervision that was previously missing in unsupervised detection pipelines.

Limitations and Future Work

While Multi-T offers a significant advancement, its performance is inherently tied to the initial ranking accuracy of the scoring function it enhances. If the initial scores fail to provide any separation between classes, thresholding cannot recover the lost information. Additionally, the method currently assumes a relatively cohesive "normal" manifold; it may struggle with datasets where inliers consist of multiple, highly distinct clusters (multi-modal distributions). Future research will explore the application of multiple thresholding to these complex manifolds and multi-class scenarios.

Summary updated

BibTeX
@inproceedings{liu2024rethinking,
  author = {Zhonghang Liu and Panzhong Lu and Guoyang Xie and Zhichao Lu and Wen-Yan Lin},
  title = {{Rethinking Unsupervised Outlier Detection via Multiple Thresholding}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72649-1\_15},
}
Figure