Sequential Recommendation for Optimizing Both Immediate Feedback and Long-term Retention

Ziru Liu, Shuchang Liu, Zijian Zhang, Qingpeng Cai, Xiangyu Zhao, Kesen Zhao, Lantao Hu, Peng Jiang, Kun Gai · DOI

Abstract

Modern recommender systems often prioritize immediate engagement metrics like clicks, potentially sacrificing long-term user retention. While Reinforcement Learning (RL) offers a framework for long-term optimization, it frequently suffers from training instabilities known as the "Deadly Triad." We present DT4IER, a Decision Transformer-based framework that treats recommendation as a sequence modeling task. DT4IER incorporates an Adaptive RTG Balancing Block to dynamically weight short-term and long-term rewards based on user features, a Multi-reward Embedding Module for relational reward representation, and a contrastive learning objective to enhance action discriminability. Evaluations on real-world datasets demonstrate that DT4IER significantly improves both recommendation accuracy and user return rates compared to state-of-the-art baselines.

Introduction

Most modern recommender systems (RS) are optimized for immediate feedback, such as clicks or likes. While effective for short-term engagement, this focus can lead to "clickbait" scenarios where users are initially attracted but eventually lose trust and leave the platform. Reinforcement Learning (RL) is the traditional tool for optimizing long-term rewards, but it faces significant instability due to the complex interplay between bootstrapping, off-policy training, and function approximation. Furthermore, in multi-objective settings (e.g., balancing click-through rate vs. return frequency), designing a reward function that reconciles these often-conflicting dynamics is notoriously difficult. DT4IER provides a stable, transformer-based alternative that handles multiple objectives gracefully.

Methodology

The authors propose DT4IER (Decision Transformer for Immediate feedback and long-term Retention). Instead of traditional RL, it treats recommendation as a sequence modeling problem using the Decision Transformer (DT) architecture.

Key Components

  • Adaptive RTG Balancing Block: Rather than using a fixed weight for short-term and long-term rewards, DT4IER uses a Multi-Layer Perceptron (MLP) to generate user-specific weights ($b_s, b_l$) based on their categorical and numerical features. This allows the model to adapt its strategy (e.g., being more "exploratory" for new users vs. "retentive" for loyal ones).
  • Multi-reward Embedding Module: To capture the intricate relationships between different tasks, the model discretizes continuous reward values into bins and uses a high-dimensional encoder to create a unified, relational reward representation.
  • Contrastive Learning Objective: To ensure that actions leading to different reward outcomes are distinctly separable in the embedding space, the authors integrate a contrastive loss term ($\mathcal{L}_{contra}$). This prevents representation collapse and helps the model distinguish high-quality recommendations from mediocre ones.
The overall architecture of DT4IER, highlighting the Embedding Module and the RTG Balancing Block.

Experiments and Results

The model was evaluated on three diverse real-world datasets: Kuairand-Pure (unbiased video exposures), MovieLens-25M (sparse movie ratings), and RetailRocket (e-commerce interactions). DT4IER consistently outperformed state-of-the-art baselines like SASRec, BERT4Rec, and even the retention-oriented DT4Rec across all datasets.

Key Findings

  • Accuracy and Retention: On the Kuairand-Pure dataset, DT4IER showed significant improvements in recommendation accuracy (BLEU and NDCG) and achieved the highest scores in Similarity-Based User Return Score (SB-URS), proving its effectiveness in driving long-term retention.
  • Ablation Study: Removing the adaptive weighting (NAW), the relational reward encoding (NRE), or the contrastive loss (NCL) led to measurable performance drops across all metrics, validating the necessity of each architectural innovation.
Ablation study results showing the contribution of each module to the overall performance across BLEU, NDCG, and SB-URS metrics.

Conclusion

By recasting RL as a supervised sequence modeling task, DT4IER achieves the long-term optimization benefits of RL without the training instability typical of Q-learning. The introduction of contextual reward weighting allows the model to learn that different users require different recommendation strategies to stay engaged. While the current model treats actions as discrete labels, future work will explore scaling to platforms with millions of items and validating these findings through live A/B testing.

Summary updated

BibTeX
@inproceedings{liu2024sequential,
  author = {Ziru Liu and Shuchang Liu and Zijian Zhang and Qingpeng Cai and Xiangyu Zhao and Kesen Zhao and Lantao Hu and Peng Jiang and Kun Gai},
  title = {{Sequential Recommendation for Optimizing Both Immediate Feedback and Long-term Retention}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2024},
  doi = {10.1145/3626772.3657829},
}
Figure