SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.02913 · AAAI · 2024

Plug-In Diffusion Model for Sequential Recommendation

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

arXiv · PDF · Open in the Atlas

Code that ran

11 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 4 honoured the contract we drafted, 2 violated it and 1 has no contract verdict; 4 failures of our instrument; 1 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2401.02913.json · badge: /api/ran/2401.02913.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
hulkima/pdrec canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
hulkima/PDRec community
Papers with Code archive
2 ran · 1 no recorded run
FunctionStatusWhere it lives
str2bool Ran
ran, violated the contract we drafted
hulkima/pdrec/PDRec.py
pointer only (licence: NONE); the stored copy get_code serves, from rlqja1107/nl-vsgg, is pointer only (licence: NONE) · get_code("7aef2a8cb287a30b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hulkima/pdrec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GaussianDiffusion Ran
ran on a synthesized input · constructed an object; no result was computed
hulkima/PDRec/models/gaussian_diffusion.py
pointer only (licence: NONE) · get_code("e62215e71895b28f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hulkima/PDRec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

betas_for_alpha_bar Ran
ran, honoured the contract we drafted
hulkima/pdrec/models/gaussian_diffusion.py
pointer only (licence: NONE); the stored copy get_code serves, from NVlabs/DiffPure, is pointer only (licence: NOASSERTION) · get_code("2ab2316ac6fdd869")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hulkima/pdrec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

betas_from_linear_variance Ran
ran; our contract draft was wrong, not the code
hulkima/PDRec/models/gaussian_diffusion.py
pointer only (licence: NONE) · get_code("c26b918effa6b11b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hulkima/PDRec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

del_tensor_ele Ran
ran; our contract draft was wrong, not the code
hulkima/pdrec/utils/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from whbdmu/FOUS, is pointer only (licence: NONE) · get_code("c82f65ece9dedb04")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hulkima/pdrec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

map_into_BCELoss Ran
ran, honoured the contract we drafted
hulkima/pdrec/PDRec.py
pointer only (licence: NONE) · get_code("50d6e75eea7b9b5d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hulkima/pdrec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

min_max_normalize_batch Ran
ran; our contract draft was wrong, not the code
hulkima/pdrec/PDRec.py
pointer only (licence: NONE) · get_code("42645975bfcda05f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hulkima/pdrec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normal_kl Ran
ran, honoured the contract we drafted
hulkima/pdrec/models/gaussian_diffusion.py
pointer only (licence: NONE); the stored copy get_code serves, from facebookresearch/agrol, is pointer only (licence: NOASSERTION) · get_code("cf2798b666b231ca")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hulkima/pdrec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

random_neq Ran
ran, honoured the contract we drafted
hulkima/pdrec/utils/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from nancheng58/recmamba, is pointer only (licence: NONE) · get_code("13e1db5681123f3a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hulkima/pdrec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

scale_withminmax Ran
ran, violated the contract we drafted
hulkima/pdrec/utils/utils.py
pointer only (licence: NONE) · get_code("a1fdd0a61ec53e2d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hulkima/pdrec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

timestep_embedding Ran
ran; our contract draft was wrong, not the code
hulkima/pdrec/models/DNN.py
pointer only (licence: NONE); the stored copy get_code serves, from jackfrost168/cf_diff, is pointer only (licence: NONE) · get_code("3cef9867af2fd687")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hulkima/pdrec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ModelMeanType Not yet run
unverified (harvested, no recorded run)
hulkima/PDRec/models/gaussian_diffusion.py
pointer only (licence: NONE) · get_code("59b88f86a1b9f8a1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hulkima/PDRec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 7 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 4 the same month, 7 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
normal_kl 160 other papers
76 dated earlier, 4 the same month, 78 later, 2 same year, order not determinable · 19 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 157 more not named here
betas_for_alpha_bar
brick of this paper's assembly: scheduler
92 other papers
60 dated earlier, 2 the same month, 28 later, 2 same year, order not determinable · 3 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2102.09672 (2021-02)
Improved Denoising Diffusion Probabilistic Models
and 89 more not named here
random_neq 7 other papers
3 dated earlier, 4 later
1808.09781 (2018-08)
Self-Attentive Sequential Recommendation
2002.07962 (2020-02)
Inductive Representation Learning on Temporal Graphs
2204.06517 (2022-04)
Learning Self-Modulating Attention in Continuous Time Space with Applications to Sequential Recommendation
and 4 more not named here
str2bool 3 other papers
3 later
2409.17476 (2024-09)
Improving the Shortest Plank: Vulnerability-Aware Adversarial Training for Robust Recommender System
2025.findings-emnlp.538 (2025 (year only))
SOLAR: Serendipity Optimized Language Model Aligned for Recommendation
2502.15370 (2025-02)
Weakly Supervised Video Scene Graph Generation via Natural Language Supervision
betas_from_linear_variance
brick of this paper's assembly: scheduler
2 other papers
1 the same month, 1 later
2401.06982 (2024-01)
Denoising Diffusion Recommender Model
2404.14240 (2024-04)
Collaborative Filtering Based on Diffusion Models: Unveiling the Potential of High-Order Connectivity
del_tensor_ele 2 other papers
1 dated earlier, 1 later
2302.03857 (2023-02)
Efficient Adversarial Contrastive Learning via Robustness-Aware Coreset Selection
2405.02832 (2024-05)
Fast One-Stage Unsupervised Domain Adaptive Person Search
timestep_embedding 2 other papers
1 the same month, 1 later
2401.06982 (2024-01)
Denoising Diffusion Recommender Model
2404.14240 (2024-04)
Collaborative Filtering Based on Diffusion Models: Unveiling the Potential of High-Order Connectivity

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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 Diffusionbased 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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2401.02913")
get_code_for_paper("2401.02913")
have("2401.02913")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2401.02913.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2401.02913.svg)](https://syntology.ai/paper/2401.02913)

Connect an agent — have() is free.