Skip to Main content Skip to Navigation
Conference papers

Revisiting classifier two-sample tests

Abstract : The goal of two-sample tests is to assess whether two samples, $S P ∼ P n$ and $S Q ∼ Q m$ , are drawn from the same distribution. Perhaps intriguingly, one relatively unexplored method to build two-sample tests is the use of binary classifiers. In particular, construct a dataset by pairing the n examples in S P with a positive label, and by pairing the m examples in $S Q$ with a negative label. If the null hypothesis " $P = Q$ " is true, then the classification accuracy of a binary classifier on a held-out subset of this dataset should remain near chance-level. As we will show, such Classifier Two-Sample Tests (C2ST) learn a suitable representation of the data on the fly, return test statistics in interpretable units, have a simple null distribution, and their predictive uncertainty allow to interpret where P and Q differ. The goal of this paper is to establish the properties, performance, and uses of C2ST. First, we analyze their main theoretical properties. Second, we compare their performance against a variety of state-of-the-art alternatives. Third, we propose their use to evaluate the sample quality of generative models with intractable likelihoods, such as Generative Adversarial Networks (GANs). Fourth, we showcase the novel application of GANs together with C2ST for causal discovery.
Document type :
Conference papers
Complete list of metadata

Cited literature [2 references]  Display  Hide  Download
Contributor : Maxime Oquab Connect in order to contact the contributor
Submitted on : Monday, August 27, 2018 - 6:47:05 PM
Last modification on : Thursday, March 17, 2022 - 10:08:27 AM
Long-term archiving on: : Wednesday, November 28, 2018 - 4:37:21 PM


Files produced by the author(s)


  • HAL Id : hal-01862834, version 1



David Lopez-Paz, Maxime Oquab. Revisiting classifier two-sample tests. International Conference on Learning Representations, Apr 2017, Toulon, France. ⟨hal-01862834⟩



Record views


Files downloads