User Retention-oriented Recommendation with Decision Transformer

Kesen Zhao, Lixin Zou, Xiangyu Zhao, Maolin Wang, Dawei Yin · DOI

Introduction

Traditional recommender systems are primarily optimized for immediate user actions, such as clicks or likes. However, these short-term metrics often fail to capture long-term user satisfaction and can even lead to "clickbait" scenarios that erode user trust. Optimizing for user retention—the frequency with which a user returns to a platform—is the "holy grail" of recommendation, yet it presents a significant "delayed reward" challenge. While Reinforcement Learning (RL) is the standard tool for such problems, traditional offline RL suffers from instability (the "Deadly Triad") and high evaluation variance. This paper introduces DT4Rec, a framework that redefines recommendation as a sequence-modeling task using Decision Transformers to achieve stable, high-retention policies.

The DT4Rec Framework

DT4Rec shifts the paradigm from value-estimation to sequence modeling. Instead of predicting the expected future value (Q-value) of an action, the model learns to predict the next recommendation given a history of states, actions, and a specific target reward. This approach treats recommendation similarly to a language translation task: given a "prompt" for high retention and a user's history, the model "translates" these inputs into the optimal next item.

The DT4Rec architecture, featuring the Transformer Decision Block and the specialized Embedding Module for reward prompting.

Key Technical Innovations

  • Auto-Discretized Reward Prompt: To help the model understand the mathematical relationship between different reward levels, DT4Rec uses meta-embeddings and weighted aggregation to create a continuous reward prompt.
  • Weighted Contrastive Learning: Real-world datasets are noisy and contain many low-reward trajectories. DT4Rec employs contrastive learning to actively push the model's predictions away from these suboptimal behaviors, ensuring it doesn't accidentally mimic "bad" historical data during inference.
  • Robust Offline Metrics: To address the difficulty of counterfactual evaluation, the authors proposed two new metrics: MB-URS (Model-Based User Return Score) and SB-URS (Similarity-Based). These provide more stable ground for measuring retention without the variance explosions common in traditional methods.

Experimental Results

The framework was evaluated on two large-scale datasets: IQiYi (3 million users, 71 million interactions) and ML-1m (MovieLens). DT4Rec significantly outperformed state-of-the-art baselines, including BERT4Rec and RL-based methods like LIRD.

Performance and Stability

On the IQiYi dataset, DT4Rec achieved an Improved User Retention (IUR) of 26.0%, a substantial jump over the 17.3% achieved by the best RL baseline. Crucially, these gains in long-term retention did not come at the cost of short-term accuracy; the model also showed improvements in standard metrics like NDCG and Hit Rate.

Stability comparison of the proposed MB-URS and ASB-URS metrics against the traditional Reward in Bin (RiB) method, showing significantly lower variance.

Beyond raw performance, the proposed evaluation metrics (MB-URS and SB-URS) demonstrated much higher stability than traditional offline evaluation methods like "Reward in Bin" (RiB). This lower variance makes the results more reliable and reproducible for future research in the field.

Conclusion and Future Work

DT4Rec demonstrates that treating recommendation as a sequence-modeling problem via Decision Transformers effectively bypasses the stability issues of traditional offline RL. By incorporating weighted contrastive learning and specialized reward prompting, the model successfully learns high-retention policies from noisy historical data. Future research will focus on narrowing the inference mismatch gap and validating these offline gains through live A/B testing in production environments.

Summary updated

BibTeX
@inproceedings{zhao2023user,
  author = {Kesen Zhao and Lixin Zou and Xiangyu Zhao and Maolin Wang and Dawei Yin},
  title = {{User Retention-oriented Recommendation with Decision Transformer}},
  booktitle = {The Web Conference},
  year = {2023},
  doi = {10.1145/3543507.3583418},
}
Figure