Abstract
Contemporary sequential recommendation methods are becoming more complex, shifting from classification to a diffusion-guided generative paradigm. However, the quality of guidance in the form of user information is often compromised by missing data in the observed sequences, leading to suboptimal generation quality. Existing methods address this by removing locally similar items, but overlook "critical turning points" in user interest, which are crucial for accurately predicting subsequent user intent. To address this, we propose a novel Counterfactual Attention Regulation Diffusion model (CARD), which focuses on amplifying the signal from key interest-turning-point items while concurrently identifying and suppressing noise within the user sequence. CARD consists of (1) a Dual-side Thompson Sampling method to identify sequences undergoing significant interest shift, and (2) a counterfactual attention mechanism for these sequences to quantify the importance of each item. In this manner, CARD provides the diffusion model with a high-quality guidance signal composed of dynamically re-weighted interaction vectors to enable effective generation. Experiments show our method works well on real-world data without being computationally expensive.
Introduction
Sequential recommendation is increasingly shifting from traditional classification methods to generative diffusion models. These models generate the "ideal" next item by iteratively denoising a random vector, guided by the user's historical interaction sequence. However, real-world data is often incomplete due to cross-device usage or tracking failures. If the guidance sequence is incomplete, the diffusion model generates poor recommendations.
Existing solutions generally take two flawed approaches:
- Recovering-based: Attempting to "fill in the blanks" by guessing missing items, which often introduces hallucinations and noise.
- Simulating missingness: Dropping items during training (e.g., TDM) to teach the model to extrapolate. However, dropping "locally similar" items can destroy "bridge" items that signal a shift in user interest.
Methodology: The CARD Model
To address these limitations, we propose the Counterfactual Attention Regulation Diffusion model (CARD). Instead of binary item removal, CARD dynamically re-weights items based on their predictive value through a two-step process.
Routing via Stability Evaluation
CARD first calculates the "stability" of a user's sequence using a Dual-side Thompson Sampling method. If a sequence is highly stable (consistent interests), standard techniques for handling redundancy are applied. If the sequence is low-stability, indicating a potential interest shift, it is routed to a specialized attention mechanism.
Counterfactual Attention
For unstable sequences, CARD determines an item's importance via Prediction Error Reduction (PER). By calculating the prediction error of future items with and without a specific item (the counterfactual), CARD identifies "critical turning points." - Items whose removal causes a significant error spike are amplified as critical context. - Items whose removal has little impact are suppressed as noise.
The resulting re-weighted sequence forms a high-quality guidance vector for the main diffusion model.
Experimental Evaluation
We evaluated CARD on two real-world datasets: Zhihu (knowledge-sharing) and KuaiRec (short-video).
Performance Results
CARD consistently outperformed conventional, recovering-based, and generative baselines. On the Zhihu dataset, CARD achieved a 10.30% relative improvement in HR@20 and a 5.06% improvement in NDCG@20 over the strongest baselines.
Efficiency and Overhead
Despite the complexity of counterfactual attention, CARD's routing mechanism ensures efficiency. It trained faster than the TDM baseline on KuaiRec (2m 40s vs. 3m 30s per epoch). Furthermore, CARD introduces zero inference overhead, as the core diffusion process remains unchanged, making it highly practical for real-world deployment.
Conclusion and Future Work
CARD demonstrates that shifting from similarity-based item removal to causal-impact-based weighting significantly improves diffusion-based recommendations. By identifying and amplifying "critical turning points" in user history, CARD provides robust guidance even in the presence of missing data. Future work may explore adapting this counterfactual attention mechanism to other generative architectures, such as Large Language Model (LLM)-based recommenders, and further optimizing the auxiliary prediction tasks used for error reduction calculations.
Summary updated