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

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

4 Apr 2024arXiv:2404.03637archive 2025-07-28

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

In the landscape of Recommender System (RS) applications, reinforcement learning (RL) has recently emerged as a powerful tool, primarily due to its proficiency in optimizing long-term rewards. Nevertheless, it suffers from instability in the learning process, stemming from the intricate interactions among bootstrapping, off-policy training, and function approximation. Moreover, in multi-reward recommendation scenarios, designing a proper reward setting that reconciles the inner dynamics of various tasks is quite intricate. In response to these challenges, we introduce DT4IER, an advanced decision transformer-based recommendation model that is engineered to not only elevate the effectiveness of recommendations but also to achieve a harmonious balance between immediate user engagement and long-term retention. The DT4IER applies an innovative multi-reward design that adeptly balances short and long-term rewards with user-specific attributes, which serve to enhance the contextual richness of the reward sequence ensuring a more informed and personalized recommendation process. To enhance its predictive capabilities, DT4IER incorporates a high-dimensional encoder, skillfully designed to identify and leverage the intricate interrelations across diverse tasks. Furthermore, we integrate a contrastive learning approach within the action embedding predictions, a strategy that significantly boosts the model's overall performance. Experiments on three real-world datasets demonstrate the effectiveness of DT4IER against state-of-the-art Sequential Recommender Systems (SRSs) and Multi-Task Learning (MTL) models in terms of both prediction accuracy and effectiveness in specific tasks. The source code is accessible online to facilitate replication

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2404.03637")

Code

Syntology Ran 13 of 13 code samples harvested from 1 repository linked to this paper; 0 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 11 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

applied-machine-learning-lab/dt4ier officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 13 ran; 0 honoured the contract we drafted; 0 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
11ran

Licence: 13 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from applied-machine-learning-lab/dt4ier. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

bleu applied-machine-learning-lab/dt4ier/GPT_model_accuracy.py official repository ran no licence file found · pointer only · 177e65070d17ec10 · report
bleu applied-machine-learning-lab/dt4ier/baseline.py official repository ran no licence file found · pointer only · 0b64b2b3b2700f5b · report
bleu_emb_pos applied-machine-learning-lab/dt4ier/GPT_model_accuracy.py official repository ran no licence file found · pointer only · f392f3ea95d61d09 · report
bleu_emb_pos applied-machine-learning-lab/dt4ier/baseline.py official repository ran no licence file found · pointer only · 45b3f2ddcb87a718 · report
get_mem_space applied-machine-learning-lab/dt4ier/gpu_mem_track.py official repository ran no licence file found · pointer only · efa7095cdb85be6c · report
get_parameter_number applied-machine-learning-lab/dt4ier/GPT_trainer_returnscore.py official repository ran · our draft was wrong no licence file found · pointer only · b2fb8159f199e5b8 · report
moving_average applied-machine-learning-lab/dt4ier/rl_utils.py official repository ran fingerprinted no licence file found · pointer only · 326fd6b469512950 · report
sample applied-machine-learning-lab/dt4ier/utils.py official repository ran no licence file found · pointer only · 88b475e1d92e0c14 · report
sequence_mask applied-machine-learning-lab/dt4ier/GPT_model_accuracy.py official repository ran no licence file found · pointer only · 679f1190874eb427 · report
sequence_mask applied-machine-learning-lab/dt4ier/baseline.py official repository ran no licence file found · pointer only · 1fa9d9be43970ce8 · report
top_k_logits applied-machine-learning-lab/dt4ier/utils.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 0f0021cdea13e4da · report
train_off_policy_agent applied-machine-learning-lab/dt4ier/rl_utils.py official repository ran no licence file found · pointer only · 1c191b709c8b5651 · report
train_on_policy_agent applied-machine-learning-lab/dt4ier/rl_utils.py official repository ran no licence file found · pointer only · 6d8e0a5a66591485 · report

Tasks

Contrastive LearningMulti-Task LearningRecommendation SystemsReinforcement Learning (RL)Sequential Recommendation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Contrastive Learning

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections