Generative Flow Networks (GFlowNets) are typically used to sample diverse objects from a target distribution. Morozov and colleagues instead apply them to shortest-path planning. They prove that when the total flow through a non-acyclic GFlowNet is minimized, the forward and backward policies only traverse shortest paths between initial and terminal states.
Based on this, the authors reduce shortest-path finding in any unweighted graph to training a GFlowNet with minimal total flow, which they approximate with flow regularization. This yields a general learning framework for pathfinding rather than a solver tailored to a specific graph.
The method was tested on permutation pathfinding and Rubik's Cubes of various sizes. On the cube, it matched state-of-the-art machine learning approaches in solution length while using a smaller search budget at test time. The paper is available on arXiv as 2603.01786.