Variable Selection in Maximum Mean Discrepancy for Interpretable Distribution Comparison
Kensuke Mitsuzawa, Motonobu Kanagawa, Stefano Bortoli, Margherita Grossi, Paolo Papotti
TL;DR
This work defines a formal discriminating set of variables that capture all distributional differences between two datasets and proves its uniqueness, enabling a principled ground truth for two-sample variable selection. It then contributes two ARD-based, sparsity-promoting methods to maximise MMD power while downweighting redundant variables, along with two data-driven strategies to select the regularisation parameter and to aggregate results across candidates. The methods are validated on synthetic data and demonstrated on real-world-like applications involving water-pipe leakage and traffic network perturbations, showing improved recall-precision and stability, especially with aggregation. The study advances interpretable distribution comparison by coupling rigorous theory with practical, scalable algorithms for identifying discriminating variables in high-dimensional settings.
Abstract
We study two-sample variable selection: identifying variables that discriminate between the distributions of two sets of data vectors. Such variables help scientists understand the mechanisms behind dataset discrepancies. Although domain-specific methods exist (e.g., in medical imaging, genetics, and computational social science), a general framework remains underdeveloped. We make two separate contributions. (i) We introduce a mathematical notion of the discriminating set of variables: the largest subset containing no variables whose marginals are identical across the two distributions and independent of the remaining variables. We prove this set is uniquely defined and establish further properties, making it a suitable ground truth for theory and evaluation. (ii) We propose two methods for two-sample variable selection that assign weights to variables and optimise them to maximise the power of a kernel two-sample test while enforcing sparsity to downweight redundant variables. To select the regularisation parameter - unknown in practice, as it controls the number of selected variables - we develop two data-driven procedures to balance recall and precision. Synthetic experiments show improved performance over baselines, and we illustrate the approach on two applications using datasets from water-pipe and traffic networks.
