# Poster 31497

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/31497

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

I'll present our work with title Evaluating Classifier to Sample Test. As the title suggests, we're going to propose classifier to sample test based on ideas from sequential testing and more precisely e-variables. First, I would like to introduce our problem. We are given a data set D that consists of N independent identically distributed observations X1, Y1, Xn, Yn.
Our goal is to develop a classifier two-sample test that tests the following hypothesis under the null that X and Y come from the same distribution versus the alternative that they don't. Standard classifier two-sample tests do the following. They first partition the data set D into two disjoint sets. The first one we denote by D1 which is the training set and the second one is D2 which is the test set.
Afterwards, we train a classifier or discriminator or the training data, D1, and the classifier learns to distinguish between the samples from X and Y. Then we compute the test statistic, which could be anything, the accuracy or other measure of discrepancy on the test data, D2, and we obtain a p-value, which tells us if X and Y are significantly different.
A key question here is can we utilize the data in a more efficient way rather than simply splitting it once. We borrow ideas from sequential testing. We partition the data set D into M distinct batches. For each batch we train a classifier as before on the previous batches and we compute the p-value on the current batch. In this sequential manner we can update our evidence against the no.
as more data becomes available.
A central concept for our test are conditional e-variables. Conditional e-variables are non-negative measurable maps such that under the null their expectations is bounded by 1. This means that if the null hypothesis is correct, we rather observe smaller e -variables. They can be used for testing with decision rule. We reject the null hypothesis if the e-variables are as big or equal to 1 over alpha, where alpha is the chosen significance level.
Now we're going to show how to construct a e-variable, but first we're going to introduce two random variables C and W where C indicates whether W is a sample from X or a sample from Y. Then we split the data set as before into M distinct batches.
And for each batch m we do the following two things. First we train a model under the alternative on the previous batches. This is nothing else than training a classifier as in the classifier to sample testing approach. Then we train a model under the null hypothesis on the current batch. Note that under the null hypothesis the labels z are independent of the inputs w.
We can construct a conditional e -variable as the ratio of the model under the non-alternative and the model under the no evaluated on the current batch. Furthermore, we can compute the unconditional e-variable which is valid e-variable with respect to the null hypothesis and this is just the product of the batch e-variables. We can use it for statistical testing, meaning that if this e-variable is larger or equal to 1 over alpha, we can reject H0 and stop collecting more data.
To ensure that our test is consistent under the alternative we need to make sure that we reject the null hypothesis with probability 1 as the number of batches grows, that means also the number of samples grows. We make the following modification of the previously presented conditional e-variable so you can see that here the numerator is exchanged with the following convex mixture of them.
model under the alternative with a model under the null. The mixing parameter lambda m can be chosen at each time point m in the following way by solving this optimization problem. In this way we ensure that the resulting e variable is going to lead to a consistent test and this test we call EC2SD standing for E-Value Classifier to Sample Test.
Finally, our experimental results on datasets such as BLOP, MNES and the facial expression data demonstrate the effectiveness of our method. The research shows that easy to SGD reaches maximum statistical power faster than traditional approaches and maintains the type 1 error rate consistently below the predefined significance level. For more experiments and ablation studies please refer to our paper. Thank you very much for your attention.
