Heat and Matérn Kernels on Matchings
Organizations: University of Edinburgh
Abstract
Applying kernel methods to matchings is challenging due to their discrete, non-Euclidean nature. In this paper, we develop a principled framework for constructing geometric kernels that respect the natural geometry of the space of matchings. To this end, we first provide a complete characterization of stationary kernels, i.e. kernels that respect the inherent symmetries of this space. Because the class of stationary kernels is too broad, we specifically focus on the heat and Matérn kernel families, adding an appropriate inductive bias of smoothness to stationarity. While these families successfully extend widely popular Euclidean kernels to matchings, evaluating them naively incurs a prohibitive super-exponential computational cost. To overcome this difficulty, we introduce and analyze a novel, sub-exponential algorithm leveraging zonal polynomials for efficient kernel evaluation. Finally, motivated by the known bijective correspondence between matchings and phylogenetic trees-a crucial data modality in biology-we explore whether our framework can be seamlessly transferred to the space of trees, establishing novel negative results and identifying a significant open problem.
Figures & tables
| Precomputation time | Query time | Precomputation memory | Query memory | |
| Proposition 1 | ||||
| Explicit formula | ||||
| Our method |
| Wall-clock time (seconds) | ||||||
| Proposition 1 | – | – | – | – | ||
| Explicit formula | – | – | – | – | ||
| Our method | ||||||
| Memory consumption (MB) | ||||||
| Proposition 1 | – | – | – | – | ||
| Method | Small matching distance small tree distance | Small tree distance small matching distance |
| Bijection of Diaconis and Holmes (1998) | No (Prop. 6 ) | No (Prop. 5 ) |
| Embedding of Richman et al. (2026) | No (not invertible) | Yes (Prop. 7 ) |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
Kernel Methods
Kernel methods use similarity functions and reproducing kernel spaces to model nonlinear relationships, quantify uncertainty, and compare data.
See all 233 papers