Paper ID: 2305.16358

Differentiable Clustering with Perturbed Spanning Forests

Lawrence Stewart, Francis S Bach, Felipe Llinares López, Quentin Berthet

We introduce a differentiable clustering method based on stochastic perturbations of minimum-weight spanning forests. This allows us to include clustering in end-to-end trainable pipelines, with efficient gradients. We show that our method performs well even in difficult settings, such as data sets with high noise and challenging geometries. We also formulate an ad hoc loss to efficiently learn from partial clustering data using this operation. We demonstrate its performance on several data sets for supervised and semi-supervised tasks.

Submitted: May 25, 2023