paper-with-me

홈 › Papers

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

2026-05-14 · Jake Fawkes, Jason Hartford arxiv

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.

📄 PDF Abstract BibTeX arXiv:2605.15417

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Learning GFlowNets from partial episodes for improved convergence and stability

2022-09-26 · Kanika Madan, Jarrid Rector-Brooks, Maksym Korablyov, Emmanuel Bengio 외

Generative flow networks (GFlowNets) are a family of algorithms for training a sequential sampler of discrete objects under an unnormalized target density and have been successfully used for various probabilistic modelin…

Trajectory balance: Improved credit assignment in GFlowNets

2022-01-31 · Nikolay Malkin, Moksh Jain, Emmanuel Bengio, Chen Sun 외

Generative flow networks (GFlowNets) are a method for learning a stochastic policy for generating compositional objects, such as graphs or strings, from a given unnormalized density by sequences of actions, where many po…

Diversity

Stable GFlowNets with Probabilistic Guarantees

2026-05-03 · Zengxiang Lei, Ananth Shreekumar, Jonathan Rosenthal, Ruoyu Song 외 arxiv

Generative Flow Networks (GFlowNets) learn to sample states proportional to an unnormalized reward. Despite their theoretical promise, practical training is often unstable, exhibiting severe loss spikes and mode collapse…

Relative Trajectory Balance is equivalent to Trust-PCL

2025-09-01 · Tristan Deleu, Padideh Nouri, Yoshua Bengio, Doina Precup arxiv

Recent progress in generative modeling has highlighted the importance of Reinforcement Learning (RL) for fine-tuning, with KL-regularized methods in particular proving to be highly effective for both autoregressive and d…

Reinforcement Learning

Avoid What You Know: Divergent Trajectory Balance for GFlowNets

2026-02-19 · Pedro Dall'Antonia, Tiago da Silva, Daniel Csillag, Salem Lahlou 외 arxiv

Generative Flow Networks (GFlowNets) are a flexible family of amortized samplers trained to generate discrete and compositional objects with probability proportional to a reward function. However, learning efficiency is …