English

Evaluating Black-Box Classifiers via Stable Adaptive Two-Sample Inference

Methodology 2026-04-08 v1

Abstract

We consider the problem of evaluating black-box multi-class classifiers. In the standard setup, we observe class labels Y{0,1,,M1}Y\in \{0,1,\ldots,M-1\} generated according to the conditional distribution YX Multinom(η(X)), Y|X \sim \text{ Multinom}\big(\eta(X)\big), where XX denotes the features and η\eta maps from the feature space to the (M1)(M-1)-dimensional simplex. A black-box classifier is an estimate η^\hat{\eta} for which we make no assumptions about the training algorithm. Given holdout data, our goal is to evaluate the performance of the classifier η^\hat{\eta}. Recent work suggests treating this as a goodness-of-fit problem by testing the hypothesis H0:ρ((X,Y),(X,Y))δH_0: \rho((X,Y),(X',Y')) \le \delta, where ρ\rho is some metric between two distributions, and (X,Y)PX× Multinom(η^(X))(X',Y')\sim P_X\times \text{ Multinom}(\hat\eta(X)). Combining ideas from algorithmic fairness, Neyman-Pearson lemma, and conformal p-values, we propose a new methodology for this testing problem. The key idea is to generate a second sample (X,Y)PX× Multinom(η^(X))(X',Y') \sim P_X \times \text{ Multinom}\big(\hat\eta(X)\big) allowing us to reduce the task to two-sample conditional distribution testing. Using part of the data, we train an auxiliary binary classifier called a distinguisher to attempt to distinguish between the two samples. The distinguisher's ability to differentiate samples, measured using a rank-sum statistic, is then used to assess the difference between η^\hat{\eta} and η\eta . Using techniques from cross-validation central limit theorems, we derive an asymptotically rigorous test under suitable stability conditions of the distinguisher.

Keywords

Cite

@article{arxiv.2604.05470,
  title  = {Evaluating Black-Box Classifiers via Stable Adaptive Two-Sample Inference},
  author = {Yuchen Chen and Jing Lei},
  journal= {arXiv preprint arXiv:2604.05470},
  year   = {2026}
}

Comments

30 pages

R2 v1 2026-07-01T11:56:42.540Z