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, Chuan Yu, Jian Xu, Bo Zheng, Xiangyu Zhao

TL;DR

GFlowGR is a novel fine-tuning framework that treats generative recommendation as a multi-step "flow" problem rather than a simple sequence-to-sequence task. By applying Generative Flow Networks (GFlowNets), the authors provide token-level supervision and value-aware training, leading to significant performance gains in both academic benchmarks and a massive real-world deployment at Taobao.

What Problem Does This Paper Address?

Generative Recommendation (GR) systems use Large Language Models (LLMs) to "write" the identifiers of items they recommend. While powerful, they face a major training bottleneck. Most systems use Supervised Fine-Tuning (SFT), which trains the model to predict exactly one "ground-truth" item. This approach ignores the varying values of different items (e.g., a click vs. a purchase) and fails to utilize the vast set of items a user didn't interact with.

Recent attempts to use Reinforcement Learning (RL) help by introducing rewards, but they typically use "outcome-based" rewards—they reward the model only after it generates the entire item ID. Because item IDs in GR are composed of multiple tokens, this lack of token-level (process-level) supervision creates a credit assignment problem, making it hard for the model to learn why a specific generation path was successful.

Methods

The authors introduce GFlowGR, which reformulates recommendation as navigating a flow network where each step is the generation of a single token. The framework consists of three modular components:

  1. Trajectory Sampler: Instead of just looking at the "correct" item, this component selects a set of items (trajectories) for the model to learn from. It uses four strategies: interaction logs, random sampling, collaborative model (CM)-based sampling, and on-policy sampling (using the LLM's own top-k generations).
  2. Reward Model: This assigns a value to the terminal state of a generation. It combines three signals:
  3. Interaction Signal: (e.g., 10 for a purchase, 1 for a click).
  4. Estimated Score: Scores from a traditional collaborative filtering model.
  5. Business Target: A "format reward" based on how many tokens the generated ID shares with the ground truth.
  6. GFlowNet Loss: The model is trained using either Detailed Balance (DB) or Trajectory Balance (TB) losses. These objectives ensure that the probability of generating a specific item ID is proportional to its reward. Crucially, this provides a "flow" value for every intermediate token, offering the fine-grained supervision that SFT and standard RL lack.

Datasets

The researchers evaluated GFlowGR on three widely-used public recommendation datasets:

  • Yelp: User check-ins at restaurants.
  • Amazon Beauty: Product reviews and metadata.
  • Amazon Instruments: Product reviews and metadata.

They also conducted offline and online evaluations on Taobao’s industrial advertising data, involving hundreds of millions of daily requests.

Key Insights and Ideas

  • Tokens are States: By treating each token in an item ID as a state in a trajectory, the authors can apply GFlowNet principles to "distribute" the final reward back through the generation process.
  • Proportionality vs. Maximization: Unlike standard RL which tries to maximize the probability of the single best item, GFlowNets aim to make generation probability proportional to reward. This naturally encourages the model to generate a diverse set of high-value items rather than collapsing onto one.
  • Curriculum Sampling: The CM-based sampler acts as a curriculum. Early in training, it provides "easy negatives" (irrelevant items); as the model improves, it provides "hard negatives" (items that look relevant but weren't interacted with), stabilizing the learning process.
  • Bridging the Gap: GFlowGR acts as a "plug-in" supplement to SFT. It retains the foundational language capabilities of the LLM while aligning it specifically with the ranking and value-awareness needs of a recommender system.

Key Results

  • State-of-the-Art Performance: GFlowGR consistently outperformed baselines like SFT, DPO, and GRPO across all three public datasets using two different GR backbones (TIGER and LETTER).
  • Industrial Impact: In a large-scale A/B test at Taobao (100 million+ users), GFlowGR led to a 0.43% increase in total revenue and a 1.11% increase in off-homepage search scenarios.
  • Revenue Growth: The system has driven a 1% relative increase in billion-level annual revenue since its deployment in May 2025.
  • Efficiency: While GFlowGR roughly doubles the training time compared to SFT, the authors note this is easily mitigated by scaling GPU resources, and the inference pipeline remains unchanged (no extra latency for users).

Limitations and Future Work

  • Training Complexity: The framework requires a reward model and a trajectory sampler, which adds complexity to the training pipeline compared to vanilla SFT.
  • Computational Cost: The authors acknowledge that GFlowGR is more computationally expensive than SFT (approx. 2.1x training cost), though they argue the revenue gains justify the expense.
  • Tokenization Dependency: The performance is still somewhat tied to the quality of the underlying item tokenizer (e.g., RQ-VAE). Future work could explore tighter integration between GFlowNet training and the tokenization process itself.

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 Chuan Yu 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},
}

Loading related content...

Figure