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

Second-Order Asymptotically Optimal Universal Outlying Sequence Detection with Reject Option

Lin Zhou, Yun Wei, Alfred O. Hero Iii

Abstract

This paper investigates universal outlier hypothesis testing (OHT) with a reject option, where both nominal and anomalous distributions are unknown. We derive second-order asymptotically optimal performance limits, moving beyond first-order error exponents to provide tighter approximations for finite data lengths. Using a threshold-based test based on empirical distributions and the method of types, we characterize the trade-offs between misclassification, false alarms, and false rejections. Numerical simulations validate that our second-order theoretical bounds closely track actual performance in finite-sample regimes.

Introduction

In Outlier Hypothesis Testing (OHT), researchers observe multiple data sequences where most follow a "nominal" distribution and a few follow "anomalous" distributions. A significant challenge arises when neither distribution is known beforehand. Traditional "first-order" limits, which show error probabilities decaying exponentially as sequence length ($n$) increases, are often too coarse to predict performance for finite, real-world datasets.

This paper addresses the "reject option" scenario, where there might be no outliers at all, or an unknown number of outliers with potentially different distributions. By deriving second-order asymptotics, the authors provide a precise mathematical framework to predict the data requirements for reliable anomaly identification while balancing misclassification, false alarms, and false rejections.

Methodology

The authors propose a threshold-based test inspired by universal classification and the method of types.

  1. Scoring Function: A homogeneity measure, $G_i(Q)$, is defined using a linear combination of Kullback-Leibler (KL) divergences to assess the similarity of one sequence to the average of the others.
  2. The Test: A sequence is flagged as an outlier if its score is the minimum among all sequences and exceeds a specific threshold $\lambda$. If no sequence meets this threshold, the null hypothesis (no outliers) is accepted.
  3. Generalized Neyman-Pearson Criterion: The framework fixes the exponential decay rate for misclassification and false alarms while optimizing the "false reject" probability.
  4. Mathematical Tools: To achieve second-order accuracy, the authors employ the multivariate Berry-Esseen theorem and Taylor expansions of KL divergence. This allows error behavior to be characterized using a multivariate Gaussian $Q$-function, providing a tighter approximation for finite data lengths.

Key Insights and Ideas

A central finding is the identification of a Phase Transition. The detection performance is governed by a critical threshold, $GD_M$. If the detection threshold $\lambda$ is below this value, the probability of missing an outlier vanishes as $n$ grows. Conversely, if it is above $GD_M$, outliers will likely be missed.

Figure 1: Detection probability as a function of threshold $\lambda$ for various sequence lengths $n$.

Furthermore, the proposed test is universally optimal, meaning it does not require prior knowledge of the distributions. It effectively "learns" the distributions from the sequences themselves. The performance is governed by a generalized version of the Jensen-Shannon divergence, and the framework remains robust even when the number of outliers is unknown (provided they constitute less than half of the total sequences).

Key Results

The authors derived explicit equations for the second-order term ($O(1/\sqrt{n})$), providing a "ruler" to measure how far practical tests are from theoretical limits. Numerical validation using simulated Bernoulli sources demonstrated that for $n \approx 1000$, the second-order theoretical upper bounds are remarkably tight.

Figure 3: Comparison of simulated error probabilities and theoretical second-order upper bounds.

Theorems in the paper provide the "converse" proof, mathematically demonstrating that no other test can achieve a lower false reject probability than the proposed method while maintaining the same constraints on other error types.

Limitations and Future Work

While the current work provides a robust framework for finite alphabets, several avenues for future research remain:

  • Continuous Distributions: Extending the model to continuous distributions, such as Gaussian noise.
  • Non-I.I.D. Data: Accounting for temporal correlations in real-world time-series data.
  • Sequential Testing: Developing algorithms that decide when enough data has been collected to make a confident decision, rather than using a fixed blocklength.

Summary updated

BibTeX
@article{zhou2020second,
  author = {Lin Zhou and Yun Wei and Alfred O. Hero III},
  title = {{Second-Order Asymptotically Optimal Universal Outlying Sequence Detection with Reject Option}},
  journal = {IEEE Trans. Information Theory},
  year = {2020},
}
Figure