GFlowGR: Fine-tuning Generative Recommendation Frameworks with Generative Flow Networks

Yejing Wang, Shengyu Zhou, Jinyu Lu, Qidong Liu, Xinhang Li, Wenlin Zhang, Feng Li, Pengjie Wang, Jian Xu, Bo Zheng, Xiangyu Zhao · OpenReview

Abstract

Generative recommendations (GR), which usually include item tokenizers and generative Large Language Models (LLMs), have demonstrated remarkable success across a wide range of scenarios. The majority of existing research efforts primarily concentrate on developing powerful item tokenizers or advancing LLM decoding strategies to attain superior performance. However, the critical fine-tuning step in GR frameworks, which is essential for adapting LLMs to recommendation data, remains largely unexplored. Current approaches predominantly rely on either the next-token prediction loss of supervised fine-tuning (SFT) or recommendation-specific direct preference optimization (DPO) strategies. Both methods ignore the exploration of possible positive unobserved samples, which is commonly referred to as the exposure bias problem. To mitigate this problem, this paper treats the GR as a multi-step generation task and constructs a GFlowNets-based fine-tuning framework (GFlowGR). The proposed framework integrates collaborative knowledge from traditional recommender systems to create an adaptive trajectory sampler and a comprehensive reward model. Leveraging the diverse generation property of GFlowNets, along with sampling and heuristic weighting techniques, GFlowGR emerges as a promising approach to mitigate the exposure bias problem. Extensive empirical results on two real-world datasets and with two different GR backbones highlight the effectiveness and robustness of GFlowGR.

Introduction

Generative Recommendation (GR) systems utilize Large Language Models (LLMs) to "write" the identifiers of recommended items. While powerful, these systems face a significant training bottleneck. Most current implementations rely on Supervised Fine-Tuning (SFT), which optimizes the model to predict a single "ground-truth" item. This approach often ignores the varying values of different user interactions (e.g., a click vs. a purchase) and fails to account for the vast space of items a user did not interact with, a phenomenon known as exposure bias.

Furthermore, while Reinforcement Learning (RL) can introduce reward signals, standard methods typically use "outcome-based" rewards, providing feedback only after an entire item ID is generated. Because item IDs in GR are multi-token sequences, this lack of token-level (process-level) supervision creates a credit assignment problem, making it difficult for the model to learn why specific generation paths are successful.

Methodology

GFlowGR addresses these issues by reformulating recommendation as navigating a flow network where each step is the generation of a single token. By treating each token in an item ID as a state in a trajectory, the framework can apply GFlowNet principles to distribute final rewards back through the generation process.

Illustration of the generative recommendation process as a multi-step flow network where tokens represent states.

The GFlowGR framework consists of three primary modular components:

  1. Trajectory Sampler: This component selects a diverse set of items (trajectories) for the model to learn from, rather than just the ground truth. It utilizes strategies including interaction logs, random sampling, collaborative model (CM)-based sampling, and on-policy sampling from the LLM's own generations.
  2. Reward Model: This model assigns a value to the terminal state of a generation by combining interaction signals (e.g., purchase value), estimated scores from traditional collaborative filtering, and business-specific format rewards.
  3. GFlowNet Loss: The model is trained using Detailed Balance (DB) or Trajectory Balance (TB) losses. Unlike standard RL which maximizes the probability of the single best item, GFlowNets ensure that generation probability is proportional to reward, naturally encouraging diversity.
The GFlowGR fine-tuning framework architecture, featuring the Trajectory Sampler and Reward Model.

Experimental Results

The researchers evaluated GFlowGR on three public datasets (Yelp, Amazon Beauty, and Amazon Instruments) and conducted large-scale A/B testing on Taobao’s industrial advertising platform.

Performance and Impact

  • State-of-the-Art Performance: GFlowGR consistently outperformed SFT, DPO, and GRPO baselines across all public datasets using two different GR backbones (TIGER and LETTER).
  • Industrial Scale: In a test involving over 100 million users at Taobao, GFlowGR led to a 0.43% increase in total revenue and a 1.11% increase in off-homepage search scenarios.
  • Revenue Growth: Since its deployment in May 2025, the system has driven a 1% relative increase in billion-level annual revenue.

Conclusion

GFlowGR acts as a powerful supplement to SFT, retaining the foundational language capabilities of LLMs while aligning them with the ranking and value-awareness needs of modern recommender systems. While the framework increases training complexity and computational cost (approximately 2.1x that of SFT), the significant revenue gains in production justify the investment. Future work will explore tighter integration between GFlowNet training and the underlying item tokenization process.

Summary updated

BibTeX
@inproceedings{wang2026gflowgr,
  author = {Yejing Wang and Shengyu Zhou and Jinyu Lu and Qidong Liu and Xinhang Li and Wenlin Zhang and Feng Li and Pengjie Wang and Jian Xu and Bo Zheng and Xiangyu Zhao},
  title = {{GFlowGR: Fine-tuning Generative Recommendation Frameworks with Generative Flow Networks}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2026},
  doi = {10.1145/3805712.3809663},
}
Figure