Modeling User Retention through Generative Flow Networks

Ziru Liu, Shuchang Liu, Bin Yang, Zhenghai Xue, Qingpeng Cai, Xiangyu Zhao, Zijian Zhang, Lantao Hu, Han Li, Peng Jiang · DOI

Introduction

Traditional recommender systems often prioritize immediate user feedback, such as clicks or likes. While effective for short-term engagement, this "click-hungry" approach frequently neglects long-term user retention—the ultimate goal for platform sustainability. Optimizing for retention is challenging due to delayed signals (retention is only known after a user returns), difficult credit assignment (identifying which specific recommendation drove the return), and sparse data.

The GFN4Retention Framework

To address these challenges, the authors propose GFN4Retention, a framework that leverages Generative Flow Networks (GFNs). Unlike standard Reinforcement Learning (RL) which seeks a single optimal path, GFNs learn to sample diverse trajectories with probabilities proportional to their rewards. This makes them inherently better at exploration and more stable in the noisy environments typical of recommendation sessions.

The GFN4Retention architecture consists of a User State Encoding Module, a Flow Estimation Module, and a Learning Objective based on Detailed Balance.

The framework treats recommendation as a generative task where user sessions are modeled as probabilistic flows. A "flow estimator" back-propagates end-of-session retention rewards to intermediate steps, effectively solving the credit assignment problem. A key innovation is the integrated reward design, using a product-based reward $R(S) = R \cdot e^{\alpha \sum r_t}$ to balance immediate rewards ($r_t$) and long-term retention ($R$). This formulation leads to a refined Detailed Balance (DB) loss, ensuring the model optimizes for both engagement and loyalty.

Experimental Results

The model was evaluated using datasets like Kuairand-Pure and MovieLens-1M, alongside the KuaiSim simulator for long-term behavior modeling.

Offline Performance and Stability

In offline tests, GFN4Retention significantly outperformed state-of-the-art RL baselines. On the Kuairand-Pure dataset, it reduced the "Return Time" (the interval until a user returns) by approximately 16%. Crucially, the training process for GFN4Retention proved to be much more stable than traditional RL methods.

Training curves for the Return Day metric show that GFN4Retention (red) achieves lower return times and superior stability compared to baselines like CEM, DIN, and RLUR.

Real-World Impact

A large-scale online A/B test on the Kuaishou platform demonstrated the practical utility of the framework. GFN4Retention led to a statistically significant increase in next-day retention (+0.015%) and total watch time (+0.558%). At the scale of billions of requests, these improvements translate to millions of additional active users.

Conclusion

GFN4Retention represents a shift from optimizing for clicks to optimizing for the holistic user experience. By viewing retention as the cumulative result of session satisfaction and utilizing the diverse sampling capabilities of GFNs, the framework provides a robust solution to the long-standing problem of retention attribution in recommender systems. Future work may involve reducing computational complexity and integrating content-aware models like LLMs.

Summary updated

BibTeX
@inproceedings{liu2024modeling,
  author = {Ziru Liu and Shuchang Liu and Bin Yang and Zhenghai Xue and Qingpeng Cai and Xiangyu Zhao and Zijian Zhang and Lantao Hu and Han Li and Peng Jiang},
  title = {{Modeling User Retention through Generative Flow Networks}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
  doi = {10.1145/3637528.3671531},
}
Figure