arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.15417cs.LGcs.AI
收藏

$f$-轨迹平衡:一种用于调整GFlowNets、生成模型和LLMs的损失家族,结合on-policy和off-policy数据

$f$-Trajectory Balance: A Loss Family for Tuning GFlowNets, Generative Models, and LLMs with Off- and On-Policy Data

Department of Statistics, University College London, UK(伦敦大学学院统计学系);Valence Labs, London, UK(伦敦Valence实验室)

Jake Fawkes, Jason Hartford

AI总结:

本文提出一种基于$f$-散度的损失家族,通过on-policy和off-policy数据调整生成模型,提升模型覆盖性和泛化能力。

摘要:

在GFlowNets和变分推断中,目标与模型对数概率之间的均方误差被证明是训练生成模型的有效低方差替代损失。该损失具有在on-policy情况下其梯度对应KL散度的梯度,而在off-policy情况下仍保持有效损失且具有相同全局最小值的性质。本文证明该构造可扩展到整个$f$-散度家族,从而得到一系列损失函数,其on-policy梯度对应相应的$f$-散度,但保留相同的全局最小值。具体而言,我们展示了on-policy梯度导致目标与模型对数概率上的翻译不变损失函数与$f$-散度之间的一一对应关系。这种等价性使我们能够设计新的替代损失函数,用于调整广泛类别的生成模型,继承相应$f$-散度的性质,如更广泛的模式覆盖,同时适用于off-policy数据。我们将其应用于各种任务,包括经典合成示例、SynFlowNets分子发现和异步大语言模型(LLM)调整,证明我们的模型在广泛类别的生成模型中保留其预测属性,无论是on-policy还是off-policy数据。

英文摘要:

In GFlowNets and variational inference, it has been shown that the mean square error between target and model log probabilities is an effective, low variance, surrogate loss for training generative models. This loss has the property that when evaluated \emph{on-policy} its gradients correspond to those of the KL divergence, while \emph{off-policy} it remains a valid loss with the same global minimizer. In this work, we demonstrate that this construction can be extended to the whole family of $f$-divergences, leading to a family of losses whose on-policy gradients are that of the corresponding $f$-divergence, but retain the same global minimizer off-policy. Specifically, we show that the on-policy gradients lead to a one to one correspondence between translation invariant loss functions on the target and model log probabilities, and $f$-divergences. This equivalence allows us to design new surrogate loss functions for tuning a wide class of generative models that inherit the properties of the corresponding $f$-divergence, such as being more mode covering, whilst being applicable to off-policy data. We apply our losses on a range of tasks, including classic synthetic examples, SynFlowNets for molecule discovery, and asynchronous large language model (LLM) tuning, demonstrating that our models retain their predicted properties on- and off-policy in a wide class of generative models.

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

↑