NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Second-Order Asymptotically Optimal Outlier Hypothesis Testing

Lin Zhou, Yun Wei, Alfred O. Hero Iii

Abstract

This paper revisits the outlier hypothesis testing (OHT) framework, deriving fundamental limits for optimal tests under the generalized Neyman-Pearson criterion. In OHT, an observer must identify outlying sequences from a set where most follow an unknown nominal distribution. We propose a threshold-based test that ensures exponential decay of misclassification and false alarm probabilities. By applying second-order asymptotic analysis, we characterize the false reject probability for finite sequence lengths, proving the optimality of our test for both single and multiple unknown outliers.

Introduction

Outlier Hypothesis Testing (OHT) is a fundamental problem in statistical inference where the goal is to discern anomalous data sequences from a majority of nominal ones. A significant challenge in real-world scenarios is that neither the nominal nor the anomalous distributions are known a priori. While previous research established "first-order" limits—showing that error probabilities vanish exponentially as the sequence length $n$ grows—these results often fail to capture performance nuances for finite $n$. This paper addresses this gap by providing a second-order asymptotic analysis, offering a precise mathematical framework for predicting performance in practical, finite-data settings.

Methodology

The authors propose a universal threshold-based test inspired by the "method of types." The test calculates a homogeneity score for each sequence by comparing its empirical distribution to the average of the others using Kullback-Leibler (KL) divergence.

Decision Rule

A sequence is flagged as an outlier if its score falls below a threshold $\lambda$. If all scores exceed $\lambda$, the system concludes no outlier is present. The study evaluates the trade-off between three primary error types:

  1. Misclassification: Falsely labeling a nominal sequence as an outlier.
  2. False Alarm: Claiming an outlier exists when all sequences are nominal.
  3. False Reject: Failing to detect an outlier when one is present.

The test is optimized under the generalized Neyman-Pearson criterion, minimizing the false reject probability while maintaining fixed exponential decay rates for the other two error types.

Key Insights: The Phase Transition

A central finding of the research is the sharp "phase transition" in detector performance relative to the threshold $\lambda$.

Figure 1: The phase transition of the false reject probability as a function of the threshold λ for various sequence lengths n.

As illustrated in Figure 1, the false reject probability vanishes when $\lambda$ is below a critical value (related to the Jensen-Shannon divergence) and jumps toward unity when it exceeds that value. The second-order analysis provides the $1/\sqrt{n}$ corrections necessary to model this behavior accurately for finite $n$, allowing engineers to determine the exact data volume required for target reliability.

Experimental Validation

The theoretical framework was validated using simulated Bernoulli sources. By testing nominal distributions against various anomalous ones, the authors confirmed that empirical error rates closely follow the predicted second-order limits.

Figure 3: Simulated false alarm probability versus sequence length n, demonstrating adherence to the theoretical exponential upper bound.

As shown in Figure 3, the simulated false alarm probability remains bounded by the theoretical exponential decay rate. Similar results were obtained for misclassification errors, demonstrating that the proposed test is consistent and that the derived bounds are tight even for relatively short sequences ($n \approx 1000$ to $2000$).

Conclusion

This work proves that threshold-based tests are second-order optimal for OHT, even with a small, fixed number of sequences. By moving beyond simple exponential rates, the authors provide the tools needed for precise performance estimation in finite-sample regimes. Future work may extend these principles to continuous alphabets and robust testing scenarios where nominal samples are not perfectly identical.

Summary updated

BibTeX
@article{zhou2020second,
  author = {Lin Zhou and Yun Wei and Alfred O. Hero III},
  title = {{Second-Order Asymptotically Optimal Outlier Hypothesis Testing}},
  journal = {IEEE Trans. Information Theory},
  year = {2020},
}
Figure