Are Two Datasets Close Enough With Statistical Significance? A Kernel Distributional Closeness Testing Approach
Abstract
Lay Summary
Machine learning models are often used on data that are not exactly the same as the data they were trained on. In many cases, small differences between datasets may be acceptable, while large differences may require extra checking, retraining, or model adaptation. This paper studies how to decide, with statistical confidence, whether two datasets are close enough to each other. Existing methods for this problem mainly work for simple discrete data and are less suitable for complex data such as images. We propose a kernel-based method that can compare more complex datasets by measuring not only how different they are, but also how informative that difference is for deciding closeness. Our method provides statistical error control and performs well in experiments on both synthetic and real image datasets. It can help practitioners monitor distribution shifts, compare datasets, and decide when a model may need further validation or adaptation.