Papers › Plug-in Diffusion Model for Sequential Recommendation

Plug-in Diffusion Model for Sequential Recommendation

5 Jan 2024arXiv:2401.02913archive 2025-07-28

Haokai Ma, Ruobing Xie, Lei Meng, Xin Chen, Xu Zhang, Leyu Lin, Zhanhui Kang

Pioneering efforts have verified the effectiveness of the diffusion models in exploring the informative uncertainty for recommendation. Considering the difference between recommendation and image synthesis tasks, existing methods have undertaken tailored refinements to the diffusion and reverse process. However, these approaches typically use the highest-score item in corpus for user interest prediction, leading to the ignorance of the user's generalized preference contained within other items, thereby remaining constrained by the data sparsity issue. To address this issue, this paper presents a novel Plug-in Diffusion Model for Recommendation (PDRec) framework, which employs the diffusion model as a flexible plugin to jointly take full advantage of the diffusion-generating user preferences on all items. Specifically, PDRec first infers the users' dynamic preferences on all items via a time-interval diffusion model and proposes a Historical Behavior Reweighting (HBR) mechanism to identify the high-quality behaviors and suppress noisy behaviors. In addition to the observed items, PDRec proposes a Diffusion-based Positive Augmentation (DPA) strategy to leverage the top-ranked unobserved items as the potential positive samples, bringing in informative and diverse soft signals to alleviate data sparsity. To alleviate the false negative sampling issue, PDRec employs Noise-free Negative Sampling (NNS) to select stable negative samples for ensuring effective model optimization. Extensive experiments and analyses on four datasets have verified the superiority of the proposed PDRec over the state-of-the-art baselines and showcased the universality of PDRec as a flexible plugin for commonly-used sequential encoders in different recommendation scenarios. The code is available in https://github.com/hulkima/PDRec.

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="2401.02913")

Code

Syntology Ran 11 of 12 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 3 ran · honoured contract; 1 ran · violated contract; 1 ran · our draft was wrong; 6 ran with no contract checked.

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

hulkima/pdrec officialmentioned in papermentioned on GitHubpytorch 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

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

3ran · honoured contract
1ran · violated contract
1ran · our draft was wrong
6ran
1unverified

Licence: 12 of the 12 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 hulkima/pdrec. “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.

str2bool hulkima/pdrec/PDRec.py official repository ran · violated contract no licence file found · pointer only · 7aef2a8cb287a30b · report
GaussianDiffusion hulkima/PDRec/models/gaussian_diffusion.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · e62215e71895b28f · report
betas_for_alpha_bar hulkima/pdrec/models/gaussian_diffusion.py official repository ran · honoured contract no licence file found · pointer only · 2ab2316ac6fdd869 · report
betas_from_linear_variance hulkima/PDRec/models/gaussian_diffusion.py official repository ran · our draft was wrong no licence file found · pointer only · c26b918effa6b11b · report
del_tensor_ele hulkima/pdrec/utils/utils.py official repository ran fingerprinted no licence file found · pointer only · c82f65ece9dedb04 · report
map_into_BCELoss hulkima/pdrec/PDRec.py official repository ran fingerprinted no licence file found · pointer only · 50d6e75eea7b9b5d · report
min_max_normalize_batch hulkima/pdrec/PDRec.py official repository ran fingerprinted no licence file found · pointer only · 42645975bfcda05f · report
normal_kl hulkima/pdrec/models/gaussian_diffusion.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · cf2798b666b231ca · report
random_neq hulkima/pdrec/utils/utils.py official repository ran · honoured contract no licence file found · pointer only · 13e1db5681123f3a · report
scale_withminmax hulkima/pdrec/utils/utils.py official repository ran no licence file found · pointer only · a1fdd0a61ec53e2d · report
timestep_embedding hulkima/pdrec/models/DNN.py official repository ran fingerprinted no licence file found · pointer only · 3cef9867af2fd687 · report
ModelMeanType hulkima/PDRec/models/gaussian_diffusion.py official repository unverified no licence file found · pointer only · 59b88f86a1b9f8a1 · report

Tasks

Image GenerationModel OptimizationSequential Recommendationmodel

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

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