TL;DR
Traditional diffusion-based generative recommenders treat all historical user interactions uniformly, ignoring the fact that human preferences naturally shift over time. This paper introduces TDPM, a framework that disentangles user preferences into stable long-term trends ("period preference") and sudden short-term deviations ("point preference"). By dynamically adjusting token-masking intensity based on these temporal dynamics, TDPM achieves massive performance leaps, improving Hit-Rate@20 by up to 29.21% over state-of-the-art baselines.
What Problem Does This Paper Address?
Generative Recommenders (GRs) are a fresh paradigm in recommendation systems. Instead of using arbitrary item IDs, they represent items using discrete Semantic Indices (SIDs) derived from textual metadata, turning recommendation into a next-token prediction task. Recently, researchers have started using diffusion models as the backbone for GRs due to their powerful generative capabilities.
However, existing diffusion-based GRs have a major flaw: their forward diffusion process treats all past user interactions uniformly. In reality, user preferences are non-stationary and evolve over time. As illustrated in Figure 1, a user might have a highly consistent long-term interest (e.g., buying soccer gear) but occasionally make an abrupt, context-driven purchase (e.g., a gamepad). Standard diffusion models apply noise or token masking indiscriminately, failing to capture these nuanced temporal dynamics and preference shifts.
Methods
The authors propose TDPM (Time-aware Diffusion based on Preference Disentanglement Model), which replaces uniform diffusion with a time-aware token masking strategy.
The architecture consists of three main stages:
- Semantic ID Generation: Item metadata (title, description, category) is converted into dense embeddings using a pretrained LLM (Qwen3-Embedding-8B). These continuous vectors are then compressed into hierarchical, discrete 4-token SIDs using a Residual Quantization K-Means (RQ-KMeans) algorithm.
- User Preference Disentanglement: To capture temporal dynamics, the user profile is split into two components:
- Period Preference ($p_{period}$): Captures stable, long-term interests. It uses a monotonically increasing function over chronological positions, assigning higher masking probabilities to more recent items to force the model to prioritize recent context while retaining long-term awareness.
- Point Preference ($p_{point}$): Captures transient, short-term deviations. It calculates the semantic distance (1 - cosine similarity) between adjacent items. High-deviation items are masked more heavily, forcing the model to learn how to recover from abrupt interest shifts.
- Weighted Fusion & Time-Aware Masking: The two preferences are fused using an adaptive weight ($\lambda$) that dynamically increases across training epochs via a power-law schedule. This ensures the model balances both preferences early on but increasingly anchors to long-term period preferences as training progresses.
During inference, the target item is fully masked, and the model autoregressively predicts the missing tokens using a constrained beam search over a pre-constructed prefix tree (Trie), ensuring only valid item SIDs are generated.
Datasets
The model was evaluated on three public real-world categories from the standard Amazon Product Review dataset:
- Beauty (All Beauty)
- Sports (Sports and Outdoors)
- Toys (Toys and Games)
The authors applied standard 5-core filtering (removing users and items with fewer than 5 interactions) and evaluated the model using a standard leave-one-out data augmentation strategy.
Key Insights and Ideas
- Amplifying Deviations Improves Robustness: By heavily masking items that represent sudden shifts in behavior (point preference), the model acts as an "interest-deviation amplifier." This forces the network to robustly learn user preference dynamics rather than treating sudden deviations as pure noise.
- Long-Term Anchors are Essential: The ablation studies reveal that point preference is only meaningful when built upon a well-established period preference. Without a stable long-term anchor to define the user's baseline profile, the model struggles to interpret short-term deviations reliably.
- Reconciling Diffusion with Sequential Data: Standard diffusion processes are inherently order-agnostic. TDPM successfully bridges the gap between diffusion models and sequential recommendation by turning the forward diffusion process into a time-sensitive, non-uniform masking operation.
Key Results
TDPM significantly outperforms traditional sequential recommenders (like SASRec and BERT4Rec) and existing diffusion-based recommenders (such as PreferDiff and PreferGrow) across all datasets:
- Substantial Metric Boosts: TDPM achieves average improvements of up to 29.21% in Hit-Rate@20 (HR@20) and 25.45% in NDCG@20 compared to the runner-up baselines.
- Ablation Verification: As shown in Figure 5, removing either the point preference or period preference components results in a sharp performance decline, confirming that both long-term anchors and short-term deviation tracking are vital for accurate generation.
Limitations and Future Work
Not discussed in the paper.
Summary updated