Skip to main content
QUICK REVIEW

[Paper Review] Large Deviations for Classification Performance Analysis of Machine Learning Systems

Paolo Braca, Leonardo M. Millefiori|arXiv (Cornell University)|Jan 16, 2023
Statistical Methods and InferenceMathematics3 citations
TL;DR

This paper proposes a large deviations-based framework to analyze the exponential decay of classification error probabilities in machine learning binary classifiers. By modeling the decision statistic via a data-driven function learned from training data, it shows that error probabilities vanish as ∼exp(−nI + o(n)), with the rate I derived from the large deviations principle, and validates this using MNIST with both LDP and CLT approximations.

ABSTRACT

We study the performance of machine learning binary classification techniques in terms of error probabilities. The statistical test is based on the Data-Driven Decision Function (D3F), learned in the training phase, i.e., what is thresholded before the final binary decision is made. Based on large deviations theory, we show that under appropriate conditions the classification error probabilities vanish exponentially, as $\sim \exp\left(-n\,I + o(n) ight)$, where $I$ is the error rate and $n$ is the number of observations available for testing. We also propose two different approximations for the error probability curves, one based on a refined asymptotic formula (often referred to as exact asymptotics), and another one based on the central limit theorem. The theoretical findings are finally tested using the popular MNIST dataset.

Motivation & Objective

  • To develop a rigorous mathematical framework for analyzing the asymptotic behavior of error probabilities in machine learning binary classifiers.
  • To characterize the exponential decay rate of classification errors using large deviations principles (LDP), under the assumption that the decision statistic is data-driven and learned from training data.
  • To compare the accuracy of two approximation methods—central limit theorem (CLT) and large deviations principle (LDP)—for estimating error probabilities in finite-sample regimes.
  • To validate the theoretical findings empirically using the MNIST dataset with a fully connected neural network classifier.

Proposed method

  • The decision statistic is modeled as a normalized sum of i.i.d. data-driven functions, $ T^{(n)}_{m{ u}} = \frac{1}{n} \sum_{i=1}^n t_{m{ u}}(x_i) $, where $ t_{m{ u}}(x_i) $ is learned from a labeled training set using a neural network with binary cross-entropy loss.
  • The large deviations principle (LDP) is applied to the decision statistic to derive the exponential decay rate of error probabilities, with the rate function $ I_k(\gamma) $ quantifying the decay under hypothesis $ \mathcal{H}_k $.
  • Two approximations for error probabilities are derived: one based on the central limit theorem (CLT), yielding Gaussian tail approximations, and another based on exact asymptotics from LDP, giving $ \alpha_n \approx \zeta_{n,0}(\gamma) e^{-n I_0(\gamma)} $.
  • The LDP-based approximation is shown to outperform the CLT-based one in accuracy, especially for small $ n $, due to its non-Gaussian tail modeling.
  • The method conditions all convergence and approximation results on a fixed realization of the model parameters $ \bm{\omega} $, reflecting the stochastic nature of training.
  • Empirical validation is performed on the MNIST dataset using a fully connected neural network, with error probabilities computed across varying test sample sizes $ n $.

Experimental results

Research questions

  • RQ1How do classification error probabilities decay as a function of the number of test samples $ n $ in a data-driven binary classifier?
  • RQ2Can the large deviations principle provide a more accurate approximation of error probabilities than the central limit theorem in finite-sample settings?
  • RQ3What is the role of the decision function’s learned parameters $ \bm{\omega} $ in determining the exponential decay rate of error probabilities?
  • RQ4How does model training depth (e.g., number of epochs) affect the error rate decay rate $ I_k(\gamma) $, and can this be captured by the LDP framework?
  • RQ5To what extent do theoretical approximations based on LDP and CLT match empirical error curves on real-world datasets like MNIST?

Key findings

  • Under the large deviations principle, classification error probabilities decay exponentially as $ \sim \exp(-nI + o(n)) $, where $ I $ is the error rate and $ n $ is the number of test samples.
  • The LDP-based approximation $ \zeta_{n,k}(\gamma) e^{-n I_k(\gamma)} $ provides a more accurate estimate of error probabilities than the CLT-based approximation, especially for small $ n $, as confirmed by empirical curves on MNIST.
  • Empirical error probabilities for $ n=1 $ under $ \mathcal{H}_1 $ were reliably computed down to $ \sim 10^{-4} $, and for $ \mathcal{H}_0 $ down to $ \sim 10^{-3} $, due to the fixed dataset size.
  • The rate functions $ I_0(\gamma) $ and $ I_1(\gamma) $ are zero at $ \gamma = \mu_0 $ and $ \gamma = \mu_1 $, respectively, and increase (or decrease) monotonically with $ \gamma $, reflecting the trade-off between type I and type II errors.
  • Models trained for more epochs achieve higher average decay rates $ I_1 $ at the same $ I_0 $, indicating improved performance due to better convergence of the parameter $ \bm{\omega} $, as reflected in the rate function curves.
  • The empirical distributions of the decision statistic closely follow the theoretical Gaussian distributions predicted by the CLT, even for small $ n $, validating the underlying assumptions of the model.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.