Rethinking Unsupervised Outlier Detection via Multiple Thresholding

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

Abstract

Unsupervised Outlier Detection (UOD) typically focuses on designing scoring functions, often treating the selection of a classification threshold as a secondary concern. However, the overlap between inliers and outliers in the scoring space frequently limits performance. This paper introduces Multi-T, a training-free, plug-and-play module that utilizes multiple thresholds to isolate "pure" subsets of inliers and outliers. By identifying these high-confidence samples, Multi-T enables the use of self-supervision to refine feature representations, significantly boosting the accuracy and robustness of existing UOD frameworks.

Introduction

In Unsupervised Outlier Detection (UOD), the goal is to identify anomalous data points within an unlabeled dataset. Traditional approaches prioritize the development of scoring functions where higher values indicate a greater likelihood of being an outlier. A significant bottleneck in this paradigm is thresholding: because inliers and outliers often overlap significantly in the scoring space, a single threshold rarely achieves clean separation.

Furthermore, the lack of reliable labels during training prevents these methods from utilizing self-supervision—a powerful technique where a model learns from its own predictions to improve feature representations. The authors propose that by rethinking the importance of predicted labels and thresholding, we can unlock latent information within the dataset to enhance even the simplest scoring methods.

The Multi-T Framework

The core contribution of this work is the Multiple Thresholding (Multi-T) module. Instead of searching for a single "perfect" boundary, Multi-T identifies two distinct thresholds to isolate high-confidence samples at both ends of the distribution.

The Multi-T pipeline: from initial scoring to threshold estimation and feature enhancement.

The process involves three key steps:

  1. Identifying Uncontaminated Inliers: Using an iterative statistical analysis of initial scores, the module applies a "3-sigma rule" to filter out potential outliers. This process converges to a "clean" set of inliers that accurately defines the normal data manifold.
  2. Identifying Adaptive Outliers: To find outliers, the method compares two normalization techniques: Ergodic-set Normalization (stable) and Shell Normalization (sensitive to outliers). By measuring the similarity between the rankings produced by these methods, the module implicitly estimates the outlier ratio and sets an adaptive threshold for high-confidence outliers.
  3. Self-Supervised Integration: These identified "pure" sets are used to refine feature representations (e.g., via Shell Normalization) and provide high-quality pseudo-labels for training classic models like DeepSVDD or OCSVM.

Key Insights

  • Labels Drive Refinement: Generating high-confidence labels allows for "self-refinement." For instance, identifying likely outliers enables "Shell Normalization," which projects outliers toward the surface of a hypersphere, increasing their separability.
  • Avoiding the "Gray Area": By focusing on the "clean" ends of the distribution rather than the overlapping middle ground, Multi-T builds a more robust model of normality.
  • Efficiency and Scalability: As a statistical, non-iterative module, Multi-T is extremely fast. It can process 10,000 samples in approximately 1.2 seconds, making it orders of magnitude faster than many deep-learning-based alternatives.

Experimental Results

The authors evaluated Multi-T across various benchmarks, including MNIST, Fashion-MNIST, STL-10, and CIFAR-10, using features from ResNet-50 and CLIP.

Performance comparison (AUC) across varying outlier ratios with and without the Multi-T module.

Key findings include:

  • Significant Performance Gains: Integrating Multi-T with DeepSVDD on the STL-10 dataset improved the AUC from 0.622 to 0.925.
  • Robustness to Contamination: Unlike traditional methods that degrade as the outlier ratio increases, Multi-T maintains stable performance across a wide range of contamination levels.
  • State-of-the-Art Efficiency: A simple distance-based method enhanced by Multi-T achieved SOTA results while maintaining high computational efficiency.

Limitations

While effective, Multi-T has certain dependencies:

  • Initial Ranking: Its success depends on the quality of the initial scoring function; it cannot recover from completely random initial scores.
  • Distribution Assumptions: The statistical "3-sigma" approach assumes a roughly Gaussian-like distribution for inliers, which may be less effective for multi-modal "normal" classes.
  • Data Scale: Statistical rules are generally more reliable on larger datasets where the sample size is sufficient to establish a stable distribution.

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