MetaGFN: Exploring Distant Modes with Adapted Metadynamics for Continuous GFlowNets
Dominic Phillips, Flaviu Cipcigan
TL;DR
The paper tackles exploration in continuous GFlowNets with black-box rewards and introduces Adapted Metadynamics, recasting the reward landscape as a potential $V(x) = - \frac{1}{\beta'} \ln r(x)$ and using a KDE-based marginal potential to guide off-policy exploration, thereby enabling the target distribution $P^{\perp}$ to be learned without reward gradients. It presents MetaGFN, a training framework that couples Adapted Metadynamics with a replay-buffered loop and TB/DB/STB losses, and proves consistency with standard metadynamics in the appropriate limit. Empirically, MetaGFN outperforms several off-policy exploration strategies across multiple continuous environments, including alanine dipeptide, by more reliably discovering distant reward modes and achieving lower L1 error relative to the true reward distribution. The approach highlights a cross-disciplinary bridge from molecular dynamics to generative modeling, offering a practical gradient-free exploration technique for continuous action spaces and suggesting extensions to adaptive CVs and well-tempered variants.
Abstract
Generative Flow Networks (GFlowNets) are a class of generative models that sample objects in proportion to a specified reward function through a learned policy. They can be trained either on-policy or off-policy, needing a balance between exploration and exploitation for fast convergence to a target distribution. While exploration strategies for discrete GFlowNets have been studied, exploration in the continuous case remains to be investigated, despite the potential for novel exploration algorithms due to the local connectedness of continuous domains. Here, we introduce Adapted Metadynamics, a variant of metadynamics that can be applied to arbitrary black-box reward functions on continuous domains. We use Adapted Metadynamics as an exploration strategy for continuous GFlowNets. We show several continuous domains where the resulting algorithm, MetaGFN, accelerates convergence to the target distribution and discovers more distant reward modes than previous off-policy exploration strategies used for GFlowNets.
