arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.01687cs.LG
收藏

GFlowNets的局部信用与不完整轨迹的更好训练

Better Training of GFlowNets with Local Credit and Incomplete Trajectories

Mila – Québec AI Institute(米拉-魁北克人工智能研究所);Université de Montréal(蒙特利尔大学);CIFAR(加拿大高等研究院)

Ling Pan, Nikolay Malkin, Dinghuai Zhang, Yoshua Bengio

AI总结:

本文提出利用中间状态的部分奖励重新参数化GFlowNet的状态流函数,实现不完整轨迹下的训练,并加速收敛,在多个模拟中验证了效果。

摘要:

生成流网络(Generative Flow Networks,简称GFlowNets)与蒙特卡洛马尔可夫链方法(因为它们从能量函数指定的分布中采样)、强化学习(因为它们学习一个策略,通过一系列步骤采样组合对象)、生成模型(因为它们学习表示和从分布中采样)以及摊销变分方法(因为它们可以在给定先验和似然的情况下,学习近似和采样原本难以处理的的后验)相关。它们被训练为通过一系列步骤生成对象$x$,其概率与某个奖励函数$R(x)$(或$\exp(-\mathcal{E}(x))$,其中$\mathcal{E}(x)$表示能量函数)成正比,该奖励在生成轨迹结束时给出。与其他仅在结束时给予奖励的强化学习设置一样,当轨迹较长时,训练效率和信用分配可能会受到影响。在之前的GFlowNet工作中,无法从不完整的轨迹(缺少终止状态和相关奖励的计算)中进行学习。在本文中,我们考虑能量函数不仅可以应用于终止状态,还可以应用于中间状态的情况。例如,当能量函数是可加的,且沿轨迹有可用的项时,就可以实现这一点。我们展示了如何重新参数化GFlowNet状态流函数,以利用每个状态已经累积的部分奖励。这使得训练目标可以在即使轨迹不完整的情况下也能应用来更新参数。即使有完整的轨迹可用,能够获得更局部的信用和梯度也被发现可以加速训练收敛,这在许多模拟中得到了证明。

英文摘要:

Generative Flow Networks or GFlowNets are related to Monte-Carlo Markov chain methods (as they sample from a distribution specified by an energy function), reinforcement learning (as they learn a policy to sample composed objects through a sequence of steps), generative models (as they learn to represent and sample from a distribution) and amortized variational methods (as they can be used to learn to approximate and sample from an otherwise intractable posterior, given a prior and a likelihood). They are trained to generate an object $x$ through a sequence of steps with probability proportional to some reward function $R(x)$ (or $\exp(-\mathcal{E}(x))$ with $\mathcal{E}(x)$ denoting the energy function), given at the end of the generative trajectory. Like for other RL settings where the reward is only given at the end, the efficiency of training and credit assignment may suffer when those trajectories are longer. With previous GFlowNet work, no learning was possible from incomplete trajectories (lacking a terminal state and the computation of the associated reward). In this paper, we consider the case where the energy function can be applied not just to terminal states but also to intermediate states. This is for example achieved when the energy function is additive, with terms available along the trajectory. We show how to reparameterize the GFlowNet state flow function to take advantage of the partial reward already accrued at each state. This enables a training objective that can be applied to update parameters even with incomplete trajectories. Even when complete trajectories are available, being able to obtain more localized credit and gradients is found to speed up training convergence, as demonstrated across many simulations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑