Adaptive teachers for amortized samplers
Minsu Kim, Sanghyeok Choi, Taeyoung Yun, Emmanuel Bengio, Leo Feng, Jarrid Rector-Brooks, Sungsoo Ahn, Jinkyoo Park, Nikolay Malkin, Yoshua Bengio
TL;DR
This work tackles exploration in amortized inference with generative flow networks (GFlowNets) by introducing an adaptive Teacher that samples high-loss regions to guide the Student toward underexplored modes. The Teacher uses TB-based loss signals to form a reward $R_{\text{Teacher}}(x)$, with a weighted emphasis on undersampled regions and a mixing term with the Student’s reward, controlled by $\alpha$. Through joint Teacher–Student training, a fixed backward policy, and local search to stabilize nonstationarity, the approach achieves improved mode coverage and sample efficiency across discrete and continuous domains including deceptive grids, diffusion-based sampling, and biochemical discovery, outperforming TB, $\epsilon$-exploration, GAFN, PER, and PRT baselines. The results demonstrate enhanced multimodal coverage and faster convergence, indicating broad practical impact for scalable amortized inference in complex, multimodal distributions.
Abstract
Amortized inference is the task of training a parametric model, such as a neural network, to approximate a distribution with a given unnormalized density where exact sampling is intractable. When sampling is implemented as a sequential decision-making process, reinforcement learning (RL) methods, such as generative flow networks, can be used to train the sampling policy. Off-policy RL training facilitates the discovery of diverse, high-reward candidates, but existing methods still face challenges in efficient exploration. We propose to use an adaptive training distribution (the \teacher) to guide the training of the primary amortized sampler (the \student). The \teacher, an auxiliary behavior model, is trained to sample high-loss regions of the \student and can generalize across unexplored modes, thereby enhancing mode coverage by providing an efficient training curriculum. We validate the effectiveness of this approach in a synthetic environment designed to present an exploration challenge, two diffusion-based sampling tasks, and four biochemical discovery tasks demonstrating its ability to improve sample efficiency and mode coverage. Source code is available at https://github.com/alstn12088/adaptive-teacher.
