Artificial Intelligence 8 min read

GFN4Rec: Generative Flow Networks for Listwise Recommendation

This paper introduces GFN4Rec, a generative flow network approach for listwise recommendation that models the entire list generation as a probability flow, optimizing list-level reward to simultaneously improve recommendation accuracy and diversity, and validates its effectiveness on multiple datasets and simulators.

Kuaishou Tech
Kuaishou Tech
Kuaishou Tech
GFN4Rec: Generative Flow Networks for Listwise Recommendation

Personalized recommendation systems aim to learn a policy that generates a list of items matching user needs. Compared with pointwise models, listwise methods model inter‑item correlations, improving quality but facing a large combinatorial action space.

Existing generative methods struggle to maintain accuracy while increasing diversity. This work adopts the GFlowNet concept (Yoshua Bengio) to propose GFN4Rec, which models list generation as an autoregressive process in a probability‑flow graph, optimizing the overall list probability to be proportional to its reward.

GFlowNet treats generation as a directed acyclic graph where only leaf nodes receive reward; training matches flow consistency using detailed‑balance or trajectory‑balance equations.

The solution represents list generation as sequential item addition, with a forward probability function determining item selection and a backward function assisting learning. The probability‑flow graph forms a tree, ensuring a unique generation path per list.

GFN4Rec encodes user requests with a transformer, uses masked embeddings for variable list lengths, and feeds the combined representation into both the flow‑evaluation and forward‑probability functions.

Experiments on online simulators and offline datasets show GFN4Rec outperforms collaborative filtering, ListCVAE, and PRM baselines, achieving higher reward, NDCG, and MRR while maintaining diversity.

Ablation studies examine hyper‑parameter effects, balance objectives, and greedy versus exploratory strategies, confirming the model’s robustness.

In summary, GFN4Rec demonstrates that aligning list‑generation probability with reward and leveraging incremental forward modeling effectively balances accuracy and diversity, offering a promising direction for recommender and other generative tasks.

AIGenerative Modelsrecommender systemsGFlowNetlistwise recommendation
Kuaishou Tech
Written by

Kuaishou Tech

Official Kuaishou tech account, providing real-time updates on the latest Kuaishou technology practices.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.