Ising on the Graph: Task-specific Graph Subsampling via the Ising Model
Maria Bånkestad, Jennifer R. Andersson, Sebastian Mair, Jens Sjölund
TL;DR
The paper introduces a task-specific graph subsampling framework that casts graph reduction as sampling from an Ising model defined on graph nodes or edges, with a graph neural network parameterizing the external magnetic field $h_\theta$. By training $h_\theta$ end-to-end via a REINFORCE Leave-One-Out gradient estimator, it handles non-differentiable downstream losses and enables end-to-end optimization for diverse tasks. The authors demonstrate the method across image segmentation, graph explainability, 3D mesh sparsification, and sparse approximate matrix inverses, achieving improved task performance and efficient sampling compared to baselines. This approach offers a flexible, task-aware mechanism for reducing graph complexity while preserving downstream utility, with practical implications for speed and interpretability in complex systems.
Abstract
Reducing a graph while preserving its overall properties is an important problem with many applications. Typically, reduction approaches either remove edges (sparsification) or merge nodes (coarsening) in an unsupervised way with no specific downstream task in mind. In this paper, we present an approach for subsampling graph structures using an Ising model defined on either the nodes or edges and learning the external magnetic field of the Ising model using a graph neural network. Our approach is task-specific as it can learn how to reduce a graph for a specific downstream task in an end-to-end fashion without requiring a differentiable loss function for the task. We showcase the versatility of our approach on four distinct applications: image segmentation, explainability for graph classification, 3D shape sparsification, and sparse approximate matrix inverse determination.
