arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.17026stat.MLcs.LG
收藏

Conformal C2ST:将弱分类器转化为强双样本检验

Conformal C2ST: Turning weak classifiers into strong two-sample tests

Department of Statistics and Data Sciences, University of Texas at Austin, United States(统计与数据科学系,德克萨斯大学奥斯汀分校,美国)

Vansh Bansal, Tianyu Chen, James G. Scott

AI总结:

本文提出基于共形预测的C2ST变体,使任意弱分类器都能产生精确有限样本p值,实现可控第一类错误和温和退化的检验功效,并应用于神经后验估计验证。

摘要:

双样本检验问题是统计学和机器学习中的一项基本任务,旨在判断来自潜在分布$p$和$q$的两组样本是否实际上同分布(即$p=q$)。一种流行且直观的方法是分类器双样本检验(C2ST),其中训练一个分类器来区分来自$p$和$q$的样本。然而,尽管C2ST简单,其可靠性依赖于接近贝叶斯最优的分类器,这一要求很少满足且难以验证。这引发了一个重要的开放问题:弱分类器是否仍能用于双样本检验?我们证明答案是肯定的。基于Hu和Lei(2024)的工作,我们分析了C2ST的两种共形变体,它们将任何训练好的分类器(即使是弱的、有偏的或过拟合的)的分数转化为精确的有限样本p值。我们建立了共形C2ST的两个关键理论性质:(i)有限样本第一类错误控制,以及(ii)非平凡的功效,该功效随训练分类器误差的增加而温和退化。结果是,即使是表现不佳的分类器也能产生强大且可靠的双样本检验。这一通用框架在贝叶斯推断中找到了强大的应用,特别是在验证神经后验估计(NPE)模型时,其中比较学习到的后验近似$q(θ\mid y)$与真实后验$p(θ\mid y)$的任务可以表述为双样本检验。实验上,共形C2ST在此任务的广泛基准测试中优于经典判别检验。我们的结果确立了共形C2ST作为一种实用、理论基础的诊断工具。

英文摘要:

The two-sample testing problem, a fundamental task in statistics and machine learning, seeks to determine whether two sets of samples, drawn from underlying distributions $p$ and $q$, are in fact identically distributed (i.e. whether $p=q$). A popular and intuitive approach is the classifier two-sample test (C2ST), where a classifier is trained to distinguish between samples from $p$ and $q$. Yet despite simplicity of the C2ST, its reliability hinges on access to a near-Bayes-optimal classifier, a requirement that is rarely met and difficult to verify. This raises a major open question: can a weak classifier still be useful for two-sample testing? We show that the answer is a definitive yes. Building on the work of Hu and Lei (2024), we analyze two conformal variants of the C2ST that convert the scores from any trained classifier -- even if weak, biased, or overfit -- into exact, finite-sample p-values. We establish two key theoretical properties of the conformal C2ST: (i) finite-sample Type-I error control, and (ii) non-trivial power that degrades gently in tandem with the error of the trained classifier. The upshot is that even poorly performing classifiers can yield powerful and reliable two-sample tests. This general framework finds a powerful application in Bayesian inference, particularly for validating Neural Posterior Estimation (NPE) models, where the task of comparing a learned posterior approximation $q(θ\mid y)$ to the true posterior $p(θ\mid y)$ can be framed as a two-sample test. Empirically, the Conformal C2ST outperforms classical discriminative tests across a wide range of benchmarks for this task. Our results establish the conformal C2ST as a practical, theoretically grounded diagnostic tool.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑